Checks that the libxfce4windowing library in use is compatible with the given version.
Generally you would pass in the constants MAJOR_VERSION, MINOR_VERSION and MICRO_VERSION as the three arguments to this function; that produces a check that the library in use is compatible with the version of libxfce4windowing the extension was compiled against.
const gchar *mismatch;
mismatch = libxfce4windowing_check_version(LIBXFCE4WINDOWING_MAJOR_VERSION,
LIBXFCE4WINDOWING_MINOR_VERSION,
LIBXFCE4WINDOWING_MICRO_VERSION);
if (G_UNLIKELY(mismatch != NULL)) {
g_error("Version mismatch: %s", mismatch);
}
| required_major |
the required major version. |
| required_minor |
the required minor version. |
| required_micro |
the required micro version. |
|
null if the library is compatible with the given version, or a string describing the version mismatch. The returned string is owned by the library and must not be freed or modified by the caller. |