| libinfinity-0.4 Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
#include <libinfinity/common/inf-protocol.h> const gchar * inf_protocol_get_version (void); gboolean inf_protocol_parse_version (const gchar *version, guint *major, guint *minor, GError **error);
const gchar * inf_protocol_get_version (void);
Returns the version of the Infinote protocol implemented by this version of libinfinity.
Returns : |
The supported infinote version. |
gboolean inf_protocol_parse_version (const gchar *version, guint *major, guint *minor, GError **error);
Splits the given version string into it's major and minor version number.
If the string is badly formatted then the function returns FALSE, error
is set and major and minor are left untouched.
It is guaranteed that, if version is inf_protocol_get_version(), the
function does not fail.