Server Wait On Clients System - API Documentation  v1.4.2
Server Wait On Clients System.
cmdlineargs.h
Go to the documentation of this file.
1 
14 /* **********************************************************************
15  * *
16  * Changelog *
17  * *
18  * Date Author Version Description *
19  * *
20  * 22/06/2015 MG 1.0.1 First release. *
21  * 10/05/2016 MG 1.0.2 Move header files to include directory. *
22  * 17/07/2016 MG 1.0.3 Move towards kernel coding style. *
23  * 27/09/2016 MG 1.0.4 Further coding style changes. *
24  * Improve in-source documentation. *
25  * Enable cmdlineargs support for multiple *
26  * command line programs in a single *
27  * project. *
28  * 17/11/2017 MG 1.0.5 Add Doxygen comments. *
29  * Add SPDX license tag. *
30  * 18/05/2019 MG 1.0.6 Merge sub-projects into one. *
31  * *
32  ************************************************************************
33  */
34 
35 #ifndef CMDLINEARGS_H
36 #define CMDLINEARGS_H
37 
38 #include <limits.h>
39 
40 #include <portability.h>
41 
42 BEGIN_C_DECLS
43 
48 #define ARG_BUF PATH_MAX
49 
51 struct cla {
52  int is_set;
53  char argument[ARG_BUF];
54 };
55 
56 int process_cla(int argc, char **argv, ...);
57 
58 END_C_DECLS
59 
60 #endif /* ndef CMDLINEARGS_H */
61 
#define ARG_BUF
Use maximum path length as size of argument for want of a more meaningful value.
Definition: cmdlineargs.h:48
int process_cla(int argc, char **argv,...)
Process command line arguments using getopt_long.
Definition: cmdlineargs.c:68
int is_set
Is this option set on the CL.
Definition: cmdlineargs.h:52
Command line argument.
Definition: cmdlineargs.h:51
char argument[ARG_BUF]
Argument to the option.
Definition: cmdlineargs.h:53