http://marcin-wiacek.fkn.pl/english/zips/mygnokii.tar.gz
[gnokii.git] / Docs / developers / gnokii / gnokii.txt
1 NOTE for command line gnokii:
2
3 --netmonitordata\r
4 \r\r
5         we have used two data structure, defined in gnokii.h :\r
6 \r
7         PARAM_INFO_MON wich is a single linked recursive list of pointers,\r
8         each pointers contain the complete description of one netmonitor param.\r
9 \r
10         ///////////////////////////////////////////////////////////////////////\r
11         // start->next->next->next-> ...->next->NULL\r
12         //           |     |     |           |\r
13         //           V     V     V           V\r
14         //          par0  par1  par2        parN\r
15         ///////////////////////////////////////////////////////////////////////\r
16         \r
17         OUT_INFO_MON, contains parameters as specified\r
18         from the command line and an array of data pointers requested by user,\r
19         each one point to a single PARAM_INFO_MON\r
20         for optimization reason, also we filled in one array of required screen.\r
21 \r
22 \r
23         this the block diagram of program:\r
24         \r
25         PARAM_INFO_MON *info:\r
26         OUT_INFO_MON *out:\r
27 \r
28         netmonitordata()\r
29 \r
30                 check for -S option, assign filename\r
31         \r
32                 check for -I option, assign filename\r
33                 \r
34                 autodetect_phonemodel_phone_version()   This is TO DO\r
35         \r
36                 info = get_min_param_info()             // nedeed here, so later we can check args param\r
37         \r
38                                                         // here we check command line arguments\r
39                 if -I option\r
40 \r
41                         for each line\r
42                         do\r
43                                 parse_check(f_argc, f_argv, info, file, line)\r
44                         done\r
45                 else\r
46                         parse_check(argc, argv, info, NULL, 0)\r
47                 fi\r
48 \r
49                 \r
50                                                         // HERE, ALL IS CHECKED\r
51         \r
52                                                         // here we make OUT_INFO_MON\r
53                 if -I option\r
54 \r
55                         for each line\r
56                         do\r
57                                 out = parse_process(f_argc, f_argv, info, file, line)\r
58 \r
59                                 nmd_output(out)\r
60 \r
61                                 free(out)\r
62                         done\r
63                 else\r
64                         out = parse_process(argc, argv, info, NULL, 0)\r
65 \r
66                         nmd_output(out)\r
67 \r
68                         free(out)\r
69                 fi\r