2 * Config file parsing tests.
11 int main(int argc
, char **argv
)
14 GSM_Config cfg
= { "", "", NULL
, NULL
, FALSE
, FALSE
, NULL
, FALSE
, FALSE
, "", "", "", "", "", {0} };
15 INI_Section
*ini
= NULL
;
17 /* Check parameters */
19 printf("Not enough parameters!\nUsage: config config_file\n");
23 error
= GSM_FindGammuRC(&ini
, argv
[1]);
24 gammu_test_result(error
, "GSM_FindGammuRC");
26 error
= GSM_ReadConfig(ini
, &cfg
, 0);
27 gammu_test_result(error
, "GSM_ReadConfig");
29 /* Free config file structures */
32 printf("DEBUG_LEVEL: '%s'\n", cfg
.DebugLevel
);