[maemo-commits] [maemo-commits] r15413 - in projects/haf/trunk/maemo-launcher: . launcher
From: subversion at stage.maemo.org subversion at stage.maemo.orgDate: Wed Apr 16 01:35:30 EEST 2008
- Previous message: [maemo-commits] r15412 - in projects/haf/trunk/maemo-launcher: . launcher
- Next message: [maemo-commits] r15414 - in projects/haf/trunk/maemo-launcher: . launcher
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: guillem Date: 2008-04-16 01:35:30 +0300 (Wed, 16 Apr 2008) New Revision: 15413 Modified: projects/haf/trunk/maemo-launcher/ChangeLog projects/haf/trunk/maemo-launcher/launcher/launcher.c Log: Add new invoked_send_action Modified: projects/haf/trunk/maemo-launcher/ChangeLog =================================================================== --- projects/haf/trunk/maemo-launcher/ChangeLog 2008-04-15 22:35:28 UTC (rev 15412) +++ projects/haf/trunk/maemo-launcher/ChangeLog 2008-04-15 22:35:30 UTC (rev 15413) @@ -1,5 +1,12 @@ 2008-02-21 Guillem Jover <guillem.jover at nokia.com> + * launcher/launcher.c (invoked_send_action): New function. + (invoked_send_pid): Use invoked_send_action instead of single + invoke_send_msg calls. + (invoked_send_exit): Likewise. + +2008-02-21 Guillem Jover <guillem.jover at nokia.com> + * launcher/comm_msg.c (comm_msg_pack_mem): Get rid of cur variable, and change msg->used after having copied the data. (comm_msg_unpack_mem): Likewise. Add a check to make sure it does not Modified: projects/haf/trunk/maemo-launcher/launcher/launcher.c =================================================================== --- projects/haf/trunk/maemo-launcher/launcher/launcher.c 2008-04-15 22:35:28 UTC (rev 15412) +++ projects/haf/trunk/maemo-launcher/launcher/launcher.c 2008-04-15 22:35:30 UTC (rev 15413) @@ -296,10 +296,18 @@ } static bool +invoked_send_action(int fd, int action, int value) +{ + invoke_send_msg(fd, action); + invoke_send_msg(fd, value); + + return true; +} + +static bool invoked_send_pid(int fd, pid_t pid) { - invoke_send_msg(fd, INVOKER_MSG_PID); - invoke_send_msg(fd, pid); + invoked_send_action(fd, INVOKER_MSG_PID, pid); return true; } @@ -342,8 +350,7 @@ static bool invoked_send_exit(int fd, int status) { - invoke_send_msg(fd, INVOKER_MSG_EXIT); - invoke_send_msg(fd, status); + invoked_send_action(fd, INVOKER_MSG_EXIT, status); return true; }
- Previous message: [maemo-commits] r15412 - in projects/haf/trunk/maemo-launcher: . launcher
- Next message: [maemo-commits] r15414 - in projects/haf/trunk/maemo-launcher: . launcher
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]