libsysutils: Tweak SocketListener and friends
Signed-off-by: San Mehat <san@google.com>
diff --git a/include/sysutils/SocketClient.h b/include/sysutils/SocketClient.h
index 39ec7ae..cde64a5 100644
--- a/include/sysutils/SocketClient.h
+++ b/include/sysutils/SocketClient.h
@@ -15,8 +15,8 @@
int getSocket() { return mSocket; }
+ int sendMsg(int code, char *msg, bool addErrno);
int sendMsg(char *msg);
- int sendMsg(char *msg, char *data);
};
typedef android::List<SocketClient *> SocketClientCollection;
diff --git a/include/sysutils/SocketListener.h b/include/sysutils/SocketListener.h
index be97421..30d050d 100644
--- a/include/sysutils/SocketListener.h
+++ b/include/sysutils/SocketListener.h
@@ -37,8 +37,8 @@
int startListener();
int stopListener();
+ void sendBroadcast(int code, char *msg, bool addErrno);
void sendBroadcast(char *msg);
- void sendBroadcast(char *msg, char *data);
protected:
virtual bool onDataAvailable(SocketClient *c) = 0;