2 * Simple test case just showing sizes of some structures.
5 #include "../libgammu/gsmstate.h" /* Needed for state machine internals */
7 #define SIZE(name) printf("Size of " #name " = %ld (%ld MiB)\n", (long) sizeof(name), (long) sizeof(name) / (1024 * 1024));
9 int main(int argc UNUSED
, char **argv UNUSED
)
11 SIZE(GSM_StateMachine
);
16 #ifdef GSM_ENABLE_MBUS2
17 SIZE(GSM_Protocol_MBUS2Data
);
19 #if defined(GSM_ENABLE_FBUS2) || defined(GSM_ENABLE_FBUS2IRDA) || defined(GSM_ENABLE_FBUS2DLR3) || defined(GSM_ENABLE_DKU5FBUS2) || defined(GSM_ENABLE_FBUS2PL2303) || defined(GSM_ENABLE_FBUS2BLUE) || defined(GSM_ENABLE_BLUEFBUS2)
20 SIZE(GSM_Protocol_FBUS2Data
);
22 #if defined(GSM_ENABLE_PHONETBLUE) || defined(GSM_ENABLE_IRDAPHONET) || defined(GSM_ENABLE_BLUEPHONET) || defined(GSM_ENABLE_DKU2PHONET)
23 SIZE(GSM_Protocol_PHONETData
);
25 #if defined(GSM_ENABLE_AT) || defined(GSM_ENABLE_BLUEAT) || defined(GSM_ENABLE_IRDAAT) || defined(GSM_ENABLE_DKU2AT)
26 SIZE(GSM_Protocol_ATData
);
28 #ifdef GSM_ENABLE_ALCABUS
29 SIZE(GSM_Protocol_ALCABUSData
);
31 #if defined(GSM_ENABLE_IRDAOBEX) || defined(GSM_ENABLE_BLUEOBEX) || defined(GSM_ENABLE_ATOBEX)
32 SIZE(GSM_Protocol_OBEXData
);
34 #if defined(GSM_ENABLE_BLUEGNAPBUS) || defined(GSM_ENABLE_IRDAGNAPBUS)
35 SIZE(GSM_Protocol_GNAPBUSData
);
37 #ifdef GSM_ENABLE_NOKIA3320
38 SIZE(GSM_Phone_N3320Data
);
40 #ifdef GSM_ENABLE_NOKIA3650
41 SIZE(GSM_Phone_N3650Data
);
43 #ifdef GSM_ENABLE_NOKIA650
44 SIZE(GSM_Phone_N650Data
);
46 #ifdef GSM_ENABLE_NOKIA6110
47 SIZE(GSM_Phone_N6110Data
);
49 #ifdef GSM_ENABLE_NOKIA6510
50 SIZE(GSM_Phone_N6510Data
);
52 #ifdef GSM_ENABLE_NOKIA7110
53 SIZE(GSM_Phone_N7110Data
);
55 #ifdef GSM_ENABLE_ATGEN
56 SIZE(GSM_Phone_ATGENData
);
58 #ifdef GSM_ENABLE_ALCATEL
59 SIZE(GSM_Phone_ALCATELData
);
61 #ifdef GSM_ENABLE_ATOBEX
62 SIZE(GSM_Phone_ATOBEXData
);
64 #ifdef GSM_ENABLE_OBEXGEN
65 SIZE(GSM_Phone_OBEXGENData
);
67 #ifdef GSM_ENABLE_GNAPGEN
68 SIZE(GSM_Phone_GNAPGENData
);
70 SIZE(GSM_Phone_DUMMYData
);