ostreee-version.h.in: Added Since: version annotations
This is especially interesting for the versioning symbols themselves, as it is an indicator of when applications using introspection information can start to use a symbol in the library to check if they have a recent enough version of OSTree to use. Closes: #932 Approved by: cgwalters
This commit is contained in:
1 parent
9529e8d435
commit
3e3a0f0766
1 file changed
+12
@@ -32,6 +32,8 @@
|
|||||||
* OSTREE_YEAR_VERSION:
|
* OSTREE_YEAR_VERSION:
|
||||||
*
|
*
|
||||||
* ostree year version component (e.g. 2017 if %OSTREE_VERSION is 2017.2)
|
* ostree year version component (e.g. 2017 if %OSTREE_VERSION is 2017.2)
|
||||||
|
*
|
||||||
|
* Since: 2017.4
|
||||||
*/
|
*/
|
||||||
#define OSTREE_YEAR_VERSION (@YEAR_VERSION@)
|
#define OSTREE_YEAR_VERSION (@YEAR_VERSION@)
|
||||||
|
|
||||||
@@ -39,6 +41,8 @@
|
|||||||
* OSTREE_RELEASE_VERSION:
|
* OSTREE_RELEASE_VERSION:
|
||||||
*
|
*
|
||||||
* ostree release version component (e.g. 2 if %OSTREE_VERSION is 2017.2)
|
* ostree release version component (e.g. 2 if %OSTREE_VERSION is 2017.2)
|
||||||
|
*
|
||||||
|
* Since: 2017.4
|
||||||
*/
|
*/
|
||||||
#define OSTREE_RELEASE_VERSION (@RELEASE_VERSION@)
|
#define OSTREE_RELEASE_VERSION (@RELEASE_VERSION@)
|
||||||
|
|
||||||
@@ -46,6 +50,8 @@
|
|||||||
* OSTREE_VERSION
|
* OSTREE_VERSION
|
||||||
*
|
*
|
||||||
* ostree version.
|
* ostree version.
|
||||||
|
*
|
||||||
|
* Since: 2017.4
|
||||||
*/
|
*/
|
||||||
#define OSTREE_VERSION (@VERSION@)
|
#define OSTREE_VERSION (@VERSION@)
|
||||||
|
|
||||||
@@ -54,6 +60,8 @@
|
|||||||
*
|
*
|
||||||
* ostree version, encoded as a string, useful for printing and
|
* ostree version, encoded as a string, useful for printing and
|
||||||
* concatenation.
|
* concatenation.
|
||||||
|
*
|
||||||
|
* Since: 2017.4
|
||||||
*/
|
*/
|
||||||
#define OSTREE_VERSION_S "@VERSION@"
|
#define OSTREE_VERSION_S "@VERSION@"
|
||||||
|
|
||||||
@@ -65,6 +73,8 @@
|
|||||||
*
|
*
|
||||||
* ostree version, encoded as an hexadecimal number, useful for
|
* ostree version, encoded as an hexadecimal number, useful for
|
||||||
* integer comparisons.
|
* integer comparisons.
|
||||||
|
*
|
||||||
|
* Since: 2017.4
|
||||||
*/
|
*/
|
||||||
#define OSTREE_VERSION_HEX \
|
#define OSTREE_VERSION_HEX \
|
||||||
(OSTREE_ENCODE_VERSION (OSTREE_YEAR_VERSION, OSTREE_RELEASE_VERSION))
|
(OSTREE_ENCODE_VERSION (OSTREE_YEAR_VERSION, OSTREE_RELEASE_VERSION))
|
||||||
@@ -76,6 +86,8 @@
|
|||||||
*
|
*
|
||||||
* Compile-time version checking. Evaluates to %TRUE if the version
|
* Compile-time version checking. Evaluates to %TRUE if the version
|
||||||
* of ostree is equal or greater than the required one.
|
* of ostree is equal or greater than the required one.
|
||||||
|
*
|
||||||
|
* Since: 2017.4
|
||||||
*/
|
*/
|
||||||
#define OSTREE_CHECK_VERSION(year,release) \
|
#define OSTREE_CHECK_VERSION(year,release) \
|
||||||
(OSTREE_YEAR_VERSION > (year) || \
|
(OSTREE_YEAR_VERSION > (year) || \
|
||||||
|
|||||||
Reference in new issue
Block a user