Turn free functions that take a JdwpState* into member functions.
Change-Id: Idf96803c12e160939dbc98be2df41c35a10987da
diff --git a/src/jdwp/jdwp_adb.cc b/src/jdwp/jdwp_adb.cc
index 3a89f34..bd5e6e6 100644
--- a/src/jdwp/jdwp_adb.cc
+++ b/src/jdwp/jdwp_adb.cc
@@ -118,8 +118,8 @@
* runs in the main thread, before the JDWP thread starts, so it shouldn't
* do anything that might block forever.
*/
-static bool startup(JdwpState* state, const JdwpStartupParams* pParams) {
- JdwpNetState* netState;
+static bool startup(JdwpState* state, const JdwpOptions*) {
+ JdwpNetState* netState;
LOG(VERBOSE) << "ADB transport startup";
@@ -445,7 +445,7 @@
hdr.id = id;
hdr.cmdSet = cmdSet;
hdr.cmd = cmd;
- ProcessRequest(state, &hdr, buf, dataLen, pReply);
+ state->ProcessRequest(&hdr, buf, dataLen, pReply);
if (expandBufGetLength(pReply) > 0) {
ssize_t cc = netState->writePacket(pReply);