| Top |
| const gchar * | libxfce4session_client_check_version () |
| #define | LIBXFCE4SESSION_CLIENT_CHECK_VERSION() |
| extern const guint | libxfce4session_client_major_version |
| extern const guint | libxfce4session_client_minor_version |
| extern const guint | libxfce4session_client_micro_version |
| #define | LIBXFCE4SESSION_CLIENT_MAJOR_VERSION |
| #define | LIBXFCE4SESSION_CLIENT_MINOR_VERSION |
| #define | LIBXFCE4SESSION_CLIENT_MICRO_VERSION |
const gchar * libxfce4session_client_check_version (guint required_major,guint required_minor,guint required_micro);
Checks that the libxfce4session-client library
in use is compatible with the given version. Generally you would pass in
the constants LIBXFCE4SESSION_CLIENT_MAJOR_VERSION, LIBXFCE4SESSION_CLIENT_MINOR_VERSION and
LIBXFCE4SESSION_CLIENT_MICRO_VERSION as the three arguments to this function; that produces
a check that the library in use is compatible with the version of
libxfce4session-client the extension was
compiled against.
Example 1. Checking the runtime version of the libxfce4session-client library
1 2 3 4 5 6 |
const gchar *mismatch; mismatch = libxfce4session_client_check_version (LIBXFCE4SESSION_CLIENT_MAJOR_VERSION, LIBXFCE4SESSION_CLIENT_MINOR_VERSION, LIBXFCE4SESSION_CLIENT_MICRO_VERSION); if (G_UNLIKELY (mismatch != NULL)) g_error ("Version mismatch: %s", mismatch); |
extern const guint libxfce4session_client_major_version;
A constant that evaluates to the major version of libxfce4session-client.
extern const guint libxfce4session_client_minor_version;
A constant that evaluates to the minor version of libxfce4session-client.
extern const guint libxfce4session_client_micro_version;
A constant that evaluates to the micro version of libxfce4session-client.
#define LIBXFCE4SESSION_CLIENT_MAJOR_VERSION (4)
A macro that evaluates to the major version of libxfce4session-client, in a format that can be used by the C pre-processor.
#define LIBXFCE4SESSION_CLIENT_MINOR_VERSION (21)
A macro that evaluates to the minor version of libxfce4session-client, in a format that can be used by the C pre-processor.