[maemo-commits] [maemo-commits] r15119 - in projects/haf/trunk/maemo-launcher: . launcher

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Fri Jan 25 19:35:58 EET 2008
Author: guillem
Date: 2008-01-25 19:35:57 +0200 (Fri, 25 Jan 2008)
New Revision: 15119

Modified:
   projects/haf/trunk/maemo-launcher/ChangeLog
   projects/haf/trunk/maemo-launcher/launcher/comm_msg.c
   projects/haf/trunk/maemo-launcher/launcher/comm_msg.h
Log:
Add new comm_msg_reset function


Modified: projects/haf/trunk/maemo-launcher/ChangeLog
===================================================================
--- projects/haf/trunk/maemo-launcher/ChangeLog	2008-01-25 17:31:01 UTC (rev 15118)
+++ projects/haf/trunk/maemo-launcher/ChangeLog	2008-01-25 17:35:57 UTC (rev 15119)
@@ -1,5 +1,10 @@
 2008-01-25  Guillem Jover  <guillem.jover at nokia.com>
 
+	* launcher/comm_msg.h (comm_msg_reset): New function declaration.
+	* launcher/comm_msg.c (comm_msg_reset): New function.
+
+2008-01-25  Guillem Jover  <guillem.jover at nokia.com>
+
 	* launcher/prog.h (sprog_t): Make filename member const.
 	(set_progname): Make progname argument const.
 	* launcher/prog.c (set_progname): Likewise.

Modified: projects/haf/trunk/maemo-launcher/launcher/comm_msg.c
===================================================================
--- projects/haf/trunk/maemo-launcher/launcher/comm_msg.c	2008-01-25 17:31:01 UTC (rev 15118)
+++ projects/haf/trunk/maemo-launcher/launcher/comm_msg.c	2008-01-25 17:35:57 UTC (rev 15119)
@@ -96,6 +96,14 @@
   return true;
 }
 
+bool
+comm_msg_reset(comm_msg_t *msg)
+{
+  msg->used = msg->read = 0;
+
+  return true;
+}
+
 static bool
 comm_msg_pack_mem(comm_msg_t *msg, const void *buf, uint32_t size)
 {

Modified: projects/haf/trunk/maemo-launcher/launcher/comm_msg.h
===================================================================
--- projects/haf/trunk/maemo-launcher/launcher/comm_msg.h	2008-01-25 17:31:01 UTC (rev 15118)
+++ projects/haf/trunk/maemo-launcher/launcher/comm_msg.h	2008-01-25 17:35:57 UTC (rev 15119)
@@ -36,6 +36,7 @@
 comm_msg_t *comm_msg_new(uint32_t size);
 bool comm_msg_destroy(comm_msg_t *msg);
 bool comm_msg_grow(comm_msg_t *msg);
+bool comm_msg_reset(comm_msg_t *msg);
 
 bool comm_msg_send(int fd, comm_msg_t *msg);
 bool comm_msg_recv(int fd, comm_msg_t *msg);


More information about the maemo-commits mailing list