summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSan Mehat <san@google.com>2009-05-20 17:36:18 -0700
committerThe Android Open Source Project <initial-contribution@android.com>2009-05-20 17:36:18 -0700
commite7ada793925148cbc2f034d353c4d414bc4a082c (patch)
treea37e947ba3a63c0d44e78ad3af6b3b2b0d817f11 /include
parent13dee24501962f41c7d73ea6d6f34d1609f5967f (diff)
parentdb017545796747115b8797f03e662b0f398a7c7b (diff)
downloadsystem_core-e7ada793925148cbc2f034d353c4d414bc4a082c.zip
system_core-e7ada793925148cbc2f034d353c4d414bc4a082c.tar.gz
system_core-e7ada793925148cbc2f034d353c4d414bc4a082c.tar.bz2
am db017545: libsysutils: const correctness fixes + remove some debugging
Merge commit 'db017545796747115b8797f03e662b0f398a7c7b' * commit 'db017545796747115b8797f03e662b0f398a7c7b': libsysutils: const correctness fixes + remove some debugging
Diffstat (limited to 'include')
-rw-r--r--include/sysutils/FrameworkClient.h4
-rw-r--r--include/sysutils/SocketClient.h4
-rw-r--r--include/sysutils/SocketListener.h4
3 files changed, 6 insertions, 6 deletions
diff --git a/include/sysutils/FrameworkClient.h b/include/sysutils/FrameworkClient.h
index 1eb112a..0ef0753 100644
--- a/include/sysutils/FrameworkClient.h
+++ b/include/sysutils/FrameworkClient.h
@@ -13,8 +13,8 @@ public:
FrameworkClient(int sock);
virtual ~FrameworkClient() {}
- int sendMsg(char *msg);
- int sendMsg(char *msg, char *data);
+ int sendMsg(const char *msg);
+ int sendMsg(const char *msg, const char *data);
};
typedef android::List<FrameworkClient *> FrameworkClientCollection;
diff --git a/include/sysutils/SocketClient.h b/include/sysutils/SocketClient.h
index cde64a5..469dd9d 100644
--- a/include/sysutils/SocketClient.h
+++ b/include/sysutils/SocketClient.h
@@ -15,8 +15,8 @@ public:
int getSocket() { return mSocket; }
- int sendMsg(int code, char *msg, bool addErrno);
- int sendMsg(char *msg);
+ int sendMsg(int code, const char *msg, bool addErrno);
+ int sendMsg(const char *msg);
};
typedef android::List<SocketClient *> SocketClientCollection;
diff --git a/include/sysutils/SocketListener.h b/include/sysutils/SocketListener.h
index 30d050d..68dcb8f 100644
--- a/include/sysutils/SocketListener.h
+++ b/include/sysutils/SocketListener.h
@@ -37,8 +37,8 @@ public:
int startListener();
int stopListener();
- void sendBroadcast(int code, char *msg, bool addErrno);
- void sendBroadcast(char *msg);
+ void sendBroadcast(int code, const char *msg, bool addErrno);
+ void sendBroadcast(const char *msg);
protected:
virtual bool onDataAvailable(SocketClient *c) = 0;