| libinfinity-0.5 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); guint inf_protocol_get_default_port (void);
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.
guint inf_protocol_get_default_port (void);
Returns the default port on which the infinote daemon listens for new connections.
Returns : |
The default port. |