Commit be56dd13 authored by Christian Persch's avatar Christian Persch

misc: Add functions to get the version at runtime

parent ecf7e0da
......@@ -13631,3 +13631,57 @@ vte_terminal_get_input_enabled (VteTerminal *terminal)
return terminal->pvt->input_enabled;
}
/**
* vte_get_major_version:
*
* Returns the major version of the VTE library at runtime.
* Contrast this with %VTE_MAJOR_VERSION which represents
* the version of the VTE library that the code was compiled
* with.
*
* Returns: the major version
*
* Since: 0.40
*/
guint
vte_get_major_version (void)
{
return VTE_MAJOR_VERSION;
}
/**
* vte_get_minor_version:
*
* Returns the minor version of the VTE library at runtime.
* Contrast this with %VTE_MINOR_VERSION which represents
* the version of the VTE library that the code was compiled
* with.
*
* Returns: the minor version
*
* Since: 0.40
*/
guint
vte_get_minor_version (void)
{
return VTE_MINOR_VERSION;
}
/**
* vte_get_micro_version:
*
* Returns the micro version of the VTE library at runtime.
* Contrast this with %VTE_MICRO_VERSION which represents
* the version of the VTE library that the code was compiled
* with.
*
* Returns: the micro version
*
* Since: 0.40
*/
guint
vte_get_micro_version (void)
{
return VTE_MICRO_VERSION;
}
......@@ -69,4 +69,10 @@
(VTE_MAJOR_VERSION == (major) && VTE_MINOR_VERSION > (minor)) || \
(VTE_MAJOR_VERSION == (major) && VTE_MINOR_VERSION == (minor) && VTE_MICRO_VERSION >= (micro)))
guint vte_get_major_version (void) G_GNUC_CONST;
guint vte_get_minor_version (void) G_GNUC_CONST;
guint vte_get_micro_version (void) G_GNUC_CONST;
#endif /* __VTE_VTE_VERSION_H__ */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment