Translation update done using Pootle.
[gammu.git] / tests / sizes.c
blob8615cab5886f109f226df53cf17985e98c37f2de
1 /**
2 * Simple test case just showing sizes of some structures.
3 */
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);
12 SIZE(GSM_Phone);
13 SIZE(GSM_Device);
14 SIZE(GSM_Protocol);
15 SIZE(GSM_User);
16 #ifdef GSM_ENABLE_MBUS2
17 SIZE(GSM_Protocol_MBUS2Data);
18 #endif
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);
21 #endif
22 #if defined(GSM_ENABLE_PHONETBLUE) || defined(GSM_ENABLE_IRDAPHONET) || defined(GSM_ENABLE_BLUEPHONET) || defined(GSM_ENABLE_DKU2PHONET)
23 SIZE(GSM_Protocol_PHONETData);
24 #endif
25 #if defined(GSM_ENABLE_AT) || defined(GSM_ENABLE_BLUEAT) || defined(GSM_ENABLE_IRDAAT) || defined(GSM_ENABLE_DKU2AT)
26 SIZE(GSM_Protocol_ATData);
27 #endif
28 #ifdef GSM_ENABLE_ALCABUS
29 SIZE(GSM_Protocol_ALCABUSData);
30 #endif
31 #if defined(GSM_ENABLE_IRDAOBEX) || defined(GSM_ENABLE_BLUEOBEX) || defined(GSM_ENABLE_ATOBEX)
32 SIZE(GSM_Protocol_OBEXData);
33 #endif
34 #if defined(GSM_ENABLE_BLUEGNAPBUS) || defined(GSM_ENABLE_IRDAGNAPBUS)
35 SIZE(GSM_Protocol_GNAPBUSData);
36 #endif
37 #ifdef GSM_ENABLE_NOKIA3320
38 SIZE(GSM_Phone_N3320Data);
39 #endif
40 #ifdef GSM_ENABLE_NOKIA3650
41 SIZE(GSM_Phone_N3650Data);
42 #endif
43 #ifdef GSM_ENABLE_NOKIA650
44 SIZE(GSM_Phone_N650Data);
45 #endif
46 #ifdef GSM_ENABLE_NOKIA6110
47 SIZE(GSM_Phone_N6110Data);
48 #endif
49 #ifdef GSM_ENABLE_NOKIA6510
50 SIZE(GSM_Phone_N6510Data);
51 #endif
52 #ifdef GSM_ENABLE_NOKIA7110
53 SIZE(GSM_Phone_N7110Data);
54 #endif
55 #ifdef GSM_ENABLE_ATGEN
56 SIZE(GSM_Phone_ATGENData);
57 #endif
58 #ifdef GSM_ENABLE_ALCATEL
59 SIZE(GSM_Phone_ALCATELData);
60 #endif
61 #ifdef GSM_ENABLE_ATOBEX
62 SIZE(GSM_Phone_ATOBEXData);
63 #endif
64 #ifdef GSM_ENABLE_OBEXGEN
65 SIZE(GSM_Phone_OBEXGENData);
66 #endif
67 #ifdef GSM_ENABLE_GNAPGEN
68 SIZE(GSM_Phone_GNAPGENData);
69 #endif
70 SIZE(GSM_Phone_DUMMYData);
71 SIZE(GSM_File);
72 SIZE(GSM_SMSFolders);
73 return 0;