diff options
author | Android (Google) Code Review <android-gerrit@google.com> | 2009-06-15 14:41:33 -0700 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-06-15 14:41:33 -0700 |
commit | 338df9da548644ee6d70c5da3af9be1a028d8a58 (patch) | |
tree | d60ec3b0f9b8b658f6627522ad6122ee5fda335d /include | |
parent | 6df2e9fc2e04fc1e908935190837675d6f7599a6 (diff) | |
parent | 2d0a6ca27c6f75eb0ec881fe4ad0b4f478d941c0 (diff) | |
download | system_core-338df9da548644ee6d70c5da3af9be1a028d8a58.zip system_core-338df9da548644ee6d70c5da3af9be1a028d8a58.tar.gz system_core-338df9da548644ee6d70c5da3af9be1a028d8a58.tar.bz2 |
am 2d0a6ca2: Merge change 4227 into donut
Merge commit '2d0a6ca27c6f75eb0ec881fe4ad0b4f478d941c0'
* commit '2d0a6ca27c6f75eb0ec881fe4ad0b4f478d941c0':
nexctl: Refactor so Nexus can be tested from scripts easily.
libsysutils: Move to a null terminated string protocol using space as a field separator.
Diffstat (limited to 'include')
-rw-r--r-- | include/sysutils/FrameworkCommand.h | 2 | ||||
-rw-r--r-- | include/sysutils/FrameworkListener.h | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/include/sysutils/FrameworkCommand.h b/include/sysutils/FrameworkCommand.h index 5b50247..6c1fca6 100644 --- a/include/sysutils/FrameworkCommand.h +++ b/include/sysutils/FrameworkCommand.h @@ -29,7 +29,7 @@ public: FrameworkCommand(const char *cmd); virtual ~FrameworkCommand() { } - virtual int runCommand(SocketClient *c, char *data) = 0; + virtual int runCommand(SocketClient *c, int argc, char **argv) = 0; const char *getCommand() { return mCommand; } }; diff --git a/include/sysutils/FrameworkListener.h b/include/sysutils/FrameworkListener.h index 8a83c33..4e3d396 100644 --- a/include/sysutils/FrameworkListener.h +++ b/include/sysutils/FrameworkListener.h @@ -22,6 +22,8 @@ class SocketClient; class FrameworkListener : public SocketListener { +public: + static const int CMD_ARGS_MAX = 8; private: FrameworkCommandCollection *mCommands; @@ -34,6 +36,6 @@ protected: virtual bool onDataAvailable(SocketClient *c); private: - void dispatchCommand(SocketClient *c, char *cmd); + void dispatchCommand(SocketClient *c, char *data); }; #endif |