Version number querying functions, definitions, and macros.
More...
Version number querying functions, definitions, and macros.
This set of API calls returns two different version numbers related to libsigrokdecode. The "package version" is the release version number of the libsigrokdecode tarball in the usual "major.minor.micro" format, e.g. "0.1.0".
The "library version" is independent of that; it is the libtool version number in the "current:revision:age" format, e.g. "2:0:0". See http://www.gnu.org/software/libtool/manual/libtool.html#Libtool-versioning for details.
Both version numbers (and/or individual components of them) can be retrieved via the API calls at runtime, and/or they can be checked at compile/preprocessor time using the respective macros.
char* srd_buildinfo_host_get |
( |
void |
| ) |
|
GSList* srd_buildinfo_libs_get |
( |
void |
| ) |
|
int srd_lib_version_age_get |
( |
void |
| ) |
|
Get the "age" part of the libsigrokdecode library version number.
- Returns
- The "age" library version number.
- Since
- 0.1.0
Definition at line 131 of file version.c.
int srd_lib_version_current_get |
( |
void |
| ) |
|
Get the "current" part of the libsigrokdecode library version number.
- Returns
- The "current" library version number.
- Since
- 0.1.0
Definition at line 107 of file version.c.
int srd_lib_version_revision_get |
( |
void |
| ) |
|
Get the "revision" part of the libsigrokdecode library version number.
- Returns
- The "revision" library version number.
- Since
- 0.1.0
Definition at line 119 of file version.c.
const char* srd_lib_version_string_get |
( |
void |
| ) |
|
Get the libsigrokdecode library version number as a string.
- Returns
- The library version number string. The returned string is static and thus should NOT be free'd by the caller.
- Since
- 0.1.0
Definition at line 144 of file version.c.
int srd_package_version_major_get |
( |
void |
| ) |
|
Get the major libsigrokdecode package version number.
- Returns
- The major package version number.
- Since
- 0.1.0
Definition at line 58 of file version.c.
int srd_package_version_micro_get |
( |
void |
| ) |
|
Get the micro libsigrokdecode package version number.
- Returns
- The micro package version number.
- Since
- 0.1.0
Definition at line 82 of file version.c.
int srd_package_version_minor_get |
( |
void |
| ) |
|
Get the minor libsigrokdecode package version number.
- Returns
- The minor package version number.
- Since
- 0.1.0
Definition at line 70 of file version.c.
const char* srd_package_version_string_get |
( |
void |
| ) |
|
Get the libsigrokdecode package version number as a string.
- Returns
- The package version number string. The returned string is static and thus should NOT be free'd by the caller.
- Since
- 0.1.0
Definition at line 95 of file version.c.