r3504 - trunk/src/target/gsm/include/gsmd
mickey at sita.openmoko.org
mickey at sita.openmoko.org
Sun Nov 25 21:07:10 CET 2007
Author: mickey
Date: 2007-11-25 21:07:09 +0100 (Sun, 25 Nov 2007)
New Revision: 3504
Modified:
trunk/src/target/gsm/include/gsmd/usock.h
Log:
gsmd: start with gsmd_msg_auxdata union
Using a union here (similar to gsmd_evt_auxdata) allows for compiler checks and
is much less prone to fail than using pointer arithmetics.
Modified: trunk/src/target/gsm/include/gsmd/usock.h
===================================================================
--- trunk/src/target/gsm/include/gsmd/usock.h 2007-11-24 19:03:43 UTC (rev 3503)
+++ trunk/src/target/gsm/include/gsmd/usock.h 2007-11-25 20:07:09 UTC (rev 3504)
@@ -583,6 +583,19 @@
u_int8_t data[];
} __attribute__((packed));
+struct gsmd_msg_auxdata {
+ union {
+ struct {
+ struct gsmd_signal_quality sigq;
+ } signal;
+ struct {
+ char name[16];
+ } current_operator;
+ /* add more here please */
+ } u;
+ u_int8_t data[0];
+} __attribute__ ((packed));
+
#ifdef __GSMD__
#include <gsmd/usock.h>
More information about the commitlog
mailing list