Add version information functions to the VAPI
This commit is contained in:
parent
65d2f39dcd
commit
9e7b4f29a8
@ -18,4 +18,35 @@
|
|||||||
|
|
||||||
[CCode (cprefix = "Matrix", gir_namespace = "Matrix", gir_version = "0.0", lower_case_cprefix = "matrix_")]
|
[CCode (cprefix = "Matrix", gir_namespace = "Matrix", gir_version = "0.0", lower_case_cprefix = "matrix_")]
|
||||||
namespace Matrix {
|
namespace Matrix {
|
||||||
|
/**
|
||||||
|
* The major version number of the Matrix.org GLib SDK.
|
||||||
|
*/
|
||||||
|
[CCode (cheader_filename = "matrix-version.h", cname = "MATRIX_GLIB_MAJOR_VERSION")]
|
||||||
|
public const int GLIB_MAJOR_VERSION;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The micro (patch) version number of the Matrix.org GLib SDK.
|
||||||
|
*/
|
||||||
|
[CCode (cheader_filename = "matrix-version.h", cname = "MATRIX_GLIB_MINOR_VERSION")]
|
||||||
|
public const int GLIB_MINOR_VERSION;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The minor version number of the Matrix.org GLib SDK.
|
||||||
|
*/
|
||||||
|
[CCode (cheader_filename = "matrix-version.h", cname = "MATRIX_GLIB_MICRO_VERSION")]
|
||||||
|
public const int GLIB_MICRO_VERSION;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Check that the Matrix.org GLib SDK in use is compatible with
|
||||||
|
* the given version.
|
||||||
|
*
|
||||||
|
* @param required_major the required major version
|
||||||
|
* @param required_minor the required minor version
|
||||||
|
* @param required_micro the required micro version
|
||||||
|
* @return {{{true}}} if the required version is satisfied; {{{false}}} otherwise.
|
||||||
|
*/
|
||||||
|
[CCode (cheader_filename = "matrix-version.h", cname = "matrix_glib_check_version")]
|
||||||
|
public bool glib_check_version(uint required_major,
|
||||||
|
uint required_minor,
|
||||||
|
uint required_micro);
|
||||||
}
|
}
|
||||||
|
@ -28,24 +28,6 @@
|
|||||||
* Version information for the Matrix.org GLib SDK.
|
* Version information for the Matrix.org GLib SDK.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
|
||||||
* MATRIX_GLIB_MAJOR_VERSION:
|
|
||||||
*
|
|
||||||
* The major version number of the Matrix.org GLib SDK.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* MATRIX_GLIB_MINOR_VERSION:
|
|
||||||
*
|
|
||||||
* The minor version number of the Matrix.org GLib SDK.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* MATRIX_GLIB_MICRO_VERSION:
|
|
||||||
*
|
|
||||||
* The micro (patch) version number of the Matrix.org GLib SDK.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* MATRIX_GLIB_CHECK_VERSION:
|
* MATRIX_GLIB_CHECK_VERSION:
|
||||||
* @major: the major version to check for
|
* @major: the major version to check for
|
||||||
@ -58,18 +40,6 @@
|
|||||||
* Returns: TRUE if the required version is satisfied; FALSE otherwise.
|
* Returns: TRUE if the required version is satisfied; FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
|
||||||
* matrix_glib_check_version:
|
|
||||||
* @required_major: the required major version
|
|
||||||
* @required_minor: the required minor version
|
|
||||||
* @required_micro: the required micro version
|
|
||||||
*
|
|
||||||
* Check that the Matrix.org GLib SDK in use is compatible with the
|
|
||||||
* given version.
|
|
||||||
*
|
|
||||||
* Returns: TRUE if the required version is satisfied; FALSE otherwise.
|
|
||||||
*/
|
|
||||||
|
|
||||||
gboolean
|
gboolean
|
||||||
matrix_glib_check_version(guint required_major,
|
matrix_glib_check_version(guint required_major,
|
||||||
guint required_minor,
|
guint required_minor,
|
||||||
|
Loading…
Reference in New Issue
Block a user