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