libgphoto2 photo camera library (libgphoto2) Internals
2.5.23
gphoto2-version.c
Go to the documentation of this file.
1
24
#include "config.h"
25
26
#include <stdlib.h>
27
28
#include <
gphoto2/gphoto2-version.h
>
29
30
const
char
**
gp_library_version
(
GPVersionVerbosity
verbose)
31
{
32
/* we could also compute/parse the short strings from the long
33
ones, but the current method is easier for now :-) */
34
static
const
char
*shrt[] =
35
{
36
PACKAGE_VERSION,
37
#ifdef INCOMPLETE_CAMLIB_SET
38
"INCOMPLETE CAMLIB SET ("
39
INCOMPLETE_CAMLIB_SET
40
")"
,
41
#else
42
"all camlibs"
,
43
#endif
44
#ifdef HAVE_CC
45
HAVE_CC,
46
#else
47
"unknown cc"
,
48
#endif
49
#ifdef HAVE_LTDL
50
"ltdl"
,
51
#else
52
"no ltdl"
,
53
#endif
54
#ifdef HAVE_LIBEXIF
55
"EXIF"
,
56
#else
57
"no EXIF"
,
58
#endif
59
NULL
60
};
61
static
const
char
*verb[] =
62
{
63
PACKAGE_VERSION,
64
#ifdef INCOMPLETE_CAMLIB_SET
65
"INCOMPLETE CAMLIB SET ("
66
INCOMPLETE_CAMLIB_SET
67
")"
,
68
#else
69
"all camlibs"
,
70
#endif
71
#ifdef HAVE_CC
72
HAVE_CC
" (C compiler used)"
,
73
#else
74
"unknown (C compiler used)"
,
75
#endif
76
#ifdef HAVE_LTDL
77
"ltdl (for portable loading of camlibs)"
,
78
#else
79
"no ltdl (for portable loading of camlibs)"
,
80
#endif
81
#ifdef HAVE_LIBEXIF
82
"EXIF (for special handling of EXIF files)"
,
83
#else
84
"no EXIF (for special handling of EXIF files)"
,
85
#endif
86
NULL
87
};
88
return
((verbose ==
GP_VERSION_VERBOSE
)?verb:shrt);
89
}
90
91
/*
92
* Local Variables:
93
* c-file-style:"linux"
94
* indent-tabs-mode:t
95
* End:
96
*/
gphoto2-version.h
GP_VERSION_VERBOSE
@ GP_VERSION_VERBOSE
Definition:
gphoto2-port-version.h:26
gp_library_version
const char ** gp_library_version(GPVersionVerbosity verbose)
Definition:
gphoto2-version.c:30
GPVersionVerbosity
GPVersionVerbosity
Definition:
gphoto2-port-version.h:24
libgphoto2
gphoto2-version.c
Generated by
1.8.18