+++ /dev/null
-NOTE for command line gnokii:
-
---netmonitordata\r
-\r\r
- we have used two data structure, defined in gnokii.h :\r
-\r
- PARAM_INFO_MON wich is a single linked recursive list of pointers,\r
- each pointers contain the complete description of one netmonitor param.\r
-\r
- ///////////////////////////////////////////////////////////////////////\r
- // start->next->next->next-> ...->next->NULL\r
- // | | | |\r
- // V V V V\r
- // par0 par1 par2 parN\r
- ///////////////////////////////////////////////////////////////////////\r
- \r
- OUT_INFO_MON, contains parameters as specified\r
- from the command line and an array of data pointers requested by user,\r
- each one point to a single PARAM_INFO_MON\r
- for optimization reason, also we filled in one array of required screen.\r
-\r
-\r
- this the block diagram of program:\r
- \r
- PARAM_INFO_MON *info:\r
- OUT_INFO_MON *out:\r
-\r
- netmonitordata()\r
-\r
- check for -S option, assign filename\r
- \r
- check for -I option, assign filename\r
- \r
- autodetect_phonemodel_phone_version() This is TO DO\r
- \r
- info = get_min_param_info() // nedeed here, so later we can check args param\r
- \r
- // here we check command line arguments\r
- if -I option\r
-\r
- for each line\r
- do\r
- parse_check(f_argc, f_argv, info, file, line)\r
- done\r
- else\r
- parse_check(argc, argv, info, NULL, 0)\r
- fi\r
-\r
- \r
- // HERE, ALL IS CHECKED\r
- \r
- // here we make OUT_INFO_MON\r
- if -I option\r
-\r
- for each line\r
- do\r
- out = parse_process(f_argc, f_argv, info, file, line)\r
-\r
- nmd_output(out)\r
-\r
- free(out)\r
- done\r
- else\r
- out = parse_process(argc, argv, info, NULL, 0)\r
-\r
- nmd_output(out)\r
-\r
- free(out)\r
- fi\r