Return the version info as a string.
This commit is contained in:
parent
0976932501
commit
fed4e562ee
@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
#include "version.h"
|
#include "version.h"
|
||||||
|
|
||||||
void
|
const char *
|
||||||
dc_version (dc_version_t *version)
|
dc_version (dc_version_t *version)
|
||||||
{
|
{
|
||||||
if (version) {
|
if (version) {
|
||||||
@ -30,4 +30,6 @@ dc_version (dc_version_t *version)
|
|||||||
version->micro = DC_VERSION_MICRO;
|
version->micro = DC_VERSION_MICRO;
|
||||||
version->extra = DC_VERSION_EXTRA;
|
version->extra = DC_VERSION_EXTRA;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return DC_VERSION;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -26,6 +26,7 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif /* __cplusplus */
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
|
#define DC_VERSION "@DC_VERSION_MAJOR@.@DC_VERSION_MINOR@.@DC_VERSION_MICRO@"
|
||||||
#define DC_VERSION_MAJOR @DC_VERSION_MAJOR@
|
#define DC_VERSION_MAJOR @DC_VERSION_MAJOR@
|
||||||
#define DC_VERSION_MINOR @DC_VERSION_MINOR@
|
#define DC_VERSION_MINOR @DC_VERSION_MINOR@
|
||||||
#define DC_VERSION_MICRO @DC_VERSION_MICRO@
|
#define DC_VERSION_MICRO @DC_VERSION_MICRO@
|
||||||
@ -38,7 +39,7 @@ typedef struct dc_version_t {
|
|||||||
const char *extra;
|
const char *extra;
|
||||||
} dc_version_t;
|
} dc_version_t;
|
||||||
|
|
||||||
void
|
const char *
|
||||||
dc_version (dc_version_t *version);
|
dc_version (dc_version_t *version);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user