Server Wait On Clients System - Full Internal Documentation
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
* 08/07/2015 MG 1.0.1 First release. *
21
* 09/05/2016 MG 1.0.2 Move header files to include directory. *
22
* 13/06/2016 MG 1.0.3 Adopt convention of using void in empty *
23
* function parameter lists. *
24
* 17/07/2016 MG 1.0.4 Move towards kernel coding style. *
25
* 07/05/2017 MG 1.0.5 Add --wait as a command line argument. *
26
* 12/11/2017 MG 1.0.6 Add Doxygen comments. *
27
* Add SPDX license tag. *
28
* 22/05/2018 MG 1.0.7 Make more generic for copy and paste *
29
* re-usability by using function with a *
30
* variable number of arguments. *
31
* 18/05/2019 MG 1.0.8 Merge sub-projects into one. *
32
* 27/03/2020 MG 1.0.9 Move into swocclient sub-directory as *
33
* the directory hierarchy needs to be the *
34
* same accross the source tree for *
35
* temporary libraries to work based on *
36
* the search in configure.ac. *
37
* *
38
************************************************************************
39
*/
40
41
#ifndef CMDLINEARGS_H
42
#define CMDLINEARGS_H
43
44
#include <limits.h>
45
46
#include <portability.h>
47
48
BEGIN_C_DECLS
49
55
#define ARG_BUF PATH_MAX
56
58
struct
cla
{
59
int
is_set
;
60
char
argument
[
ARG_BUF
];
61
};
62
63
int
process_cla
(
int
argc,
char
**argv, ...);
64
65
int
cpyarg
(
char
*flagarg,
char
*srcarg);
66
67
END_C_DECLS
68
69
#endif
/* ndef CMDLINEARGS_H */
70
process_cla
int process_cla(int argc, char **argv,...)
Process command line arguments using getopt_long.
Definition:
cmdlineargs.c:68
cla::argument
char argument[ARG_BUF]
Argument to the option.
Definition:
cmdlineargs.h:53
cla
Command line argument.
Definition:
cmdlineargs.h:51
ARG_BUF
#define ARG_BUF
Argument buffer size.
Definition:
cmdlineargs.h:55
cpyarg
int cpyarg(char *flagarg, char *srcarg)
Definition:
cmdlineargs.c:240
cla::is_set
int is_set
Is this option set on the CL.
Definition:
cmdlineargs.h:52
src
prg
c
src
cli-prg
swocclient
cmdlineargs.h
Generated by
1.8.20