project_files/frontlib/ipc/ipcbase.c
changeset 7271 5608ac657362
parent 7234 613998625a3c
child 7314 6171f0bad318
--- a/project_files/frontlib/ipc/ipcbase.c	Thu Jun 21 21:32:12 2012 +0200
+++ b/project_files/frontlib/ipc/ipcbase.c	Mon Jun 25 00:42:07 2012 +0200
@@ -73,10 +73,6 @@
 	}
 }
 
-static bool isMessageReady(flib_ipcbase *ipc) {
-	return ipc->readBufferSize >= ipc->readBuffer[0]+1;
-}
-
 static void receiveToBuffer(flib_ipcbase *ipc) {
 	if(ipc->sock) {
 		int size = flib_socket_nbrecv(ipc->sock, ipc->readBuffer+ipc->readBufferSize, sizeof(ipc->readBuffer)-ipc->readBufferSize);
@@ -89,6 +85,10 @@
 	}
 }
 
+static bool isMessageReady(flib_ipcbase *ipc) {
+	return ipc->readBufferSize >= ipc->readBuffer[0]+1;
+}
+
 int flib_ipcbase_recv_message(flib_ipcbase *ipc, void *data) {
 	if(!ipc || !data) {
 		flib_log_e("null parameter in flib_ipcbase_recv_message");
@@ -183,10 +183,6 @@
 	return flib_ipcbase_send_raw(ipc, sendbuf, len+1);
 }
 
-int flib_ipcbase_send_messagestr(flib_ipcbase *ipc, char *data) {
-	return flib_ipcbase_send_message(ipc, data, strlen(data));
-}
-
 void flib_ipcbase_accept(flib_ipcbase *ipc) {
 	if(!ipc) {
 		flib_log_e("null parameter in flib_ipcbase_accept");