This source file includes following definitions.
- version_etc_hook
- argp_version_setup
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 #include <config.h>
18 #include <version-etc.h>
19 #include <argp.h>
20 #include <argp-version-etc.h>
21
22 static const char *program_canonical_name;
23 static const char * const *program_authors;
24
25 static void
26 version_etc_hook (FILE *stream, struct argp_state *state)
27 {
28 version_etc_ar (stream, program_canonical_name, PACKAGE_NAME, VERSION,
29 program_authors);
30 }
31
32 void
33 argp_version_setup (const char *name, const char * const *authors)
34 {
35 argp_program_version_hook = version_etc_hook;
36 program_canonical_name = name;
37 program_authors = authors;
38 }