[maemo-commits] [maemo-commits] r15416 - in projects/haf/trunk/maemo-launcher: . launcher
From: subversion at stage.maemo.org subversion at stage.maemo.orgDate: Wed Apr 16 01:35:37 EEST 2008
- Previous message: [maemo-commits] r15415 - in projects/haf/trunk/maemo-launcher: . launcher
- Next message: [maemo-commits] r15417 - in projects/haf/trunk/maemo-launcher: . launcher
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: guillem Date: 2008-04-16 01:35:36 +0300 (Wed, 16 Apr 2008) New Revision: 15416 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: Move struct comm_msg definition from .h to .c file Modified: projects/haf/trunk/maemo-launcher/ChangeLog =================================================================== --- projects/haf/trunk/maemo-launcher/ChangeLog 2008-04-15 22:35:34 UTC (rev 15415) +++ projects/haf/trunk/maemo-launcher/ChangeLog 2008-04-15 22:35:36 UTC (rev 15416) @@ -1,5 +1,10 @@ 2008-02-21 Guillem Jover <guillem.jover at nokia.com> + * launcher/comm_msg.h (struct comm_msg): Move definition to ... + * launcher/comm_msg.c: ... here. + +2008-02-21 Guillem Jover <guillem.jover at nokia.com> + * launcher/comm_msg.h (struct comm_msg): Add a size_max member. (comm_msg_new): Add a size_max argument. * launcher/comm_msg.c: Include <assert.h>. Modified: projects/haf/trunk/maemo-launcher/launcher/comm_msg.c =================================================================== --- projects/haf/trunk/maemo-launcher/launcher/comm_msg.c 2008-04-15 22:35:34 UTC (rev 15415) +++ projects/haf/trunk/maemo-launcher/launcher/comm_msg.c 2008-04-15 22:35:36 UTC (rev 15416) @@ -34,6 +34,14 @@ #define WORD_MASK (~(WORD_SIZE - 1)) #define WORD_ALIGN(x) (((x) + WORD_SIZE - 1) & WORD_MASK) +struct comm_msg { + uint32_t size; + uint32_t size_max; + uint32_t used; + uint32_t read; + char *buf; +}; + comm_msg_t * comm_msg_new(uint32_t size, size_t size_max) { Modified: projects/haf/trunk/maemo-launcher/launcher/comm_msg.h =================================================================== --- projects/haf/trunk/maemo-launcher/launcher/comm_msg.h 2008-04-15 22:35:34 UTC (rev 15415) +++ projects/haf/trunk/maemo-launcher/launcher/comm_msg.h 2008-04-15 22:35:36 UTC (rev 15416) @@ -26,13 +26,7 @@ #include <stdint.h> #include <stdbool.h> -typedef struct comm_msg { - uint32_t size; - uint32_t size_max; - uint32_t used; - uint32_t read; - char *buf; -} comm_msg_t; +typedef struct comm_msg comm_msg_t; comm_msg_t *comm_msg_new(uint32_t size, uint32_t size_max); bool comm_msg_destroy(comm_msg_t *msg);
- Previous message: [maemo-commits] r15415 - in projects/haf/trunk/maemo-launcher: . launcher
- Next message: [maemo-commits] r15417 - in projects/haf/trunk/maemo-launcher: . launcher
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]