Version Information
3
LIBXFCE4UTIL Library

# Version Information

Variables and functions to check the libxfce4util version

## Synopsis

    #include <libxfce4util/libxfce4util.h>

    const gchar*        xfce_version_string                 (void);
    extern              const guint libxfce4util_major_version;
    extern              const guint libxfce4util_minor_version;
    extern              const guint libxfce4util_micro_version;

    #define             LIBXFCE4UTIL_MAJOR_VERSION
    #define             LIBXFCE4UTIL_MINOR_VERSION
    #define             LIBXFCE4UTIL_MICRO_VERSION
    #define             LIBXFCE4UTIL_CHECK_VERSION          (major,minor,micro)

## Description

These macros provide a few commonly-used features.

## Details

### xfce_version_string ()

    const gchar*        xfce_version_string                 (void);

Queries the version string of the installed Xfce desktop environment.

Returns :

  the overall version information of the installed Xfce desktop.

Since 4.2

### libxfce4util_major_version

    extern const guint libxfce4util_major_version;

### libxfce4util_minor_version

    extern const guint libxfce4util_minor_version;

### libxfce4util_micro_version

    extern const guint libxfce4util_micro_version;

### LIBXFCE4UTIL_MAJOR_VERSION

    #define LIBXFCE4UTIL_MAJOR_VERSION	4

The major version number of the libxfce4util.

### LIBXFCE4UTIL_MINOR_VERSION

    #define LIBXFCE4UTIL_MINOR_VERSION	5

The minor version number of the libxfce4util.

### LIBXFCE4UTIL_MICRO_VERSION

    #define LIBXFCE4UTIL_MICRO_VERSION	93

The micro version number of the libxfce4util.

### LIBXFCE4UTIL_CHECK_VERSION()

    #define             LIBXFCE4UTIL_CHECK_VERSION(major,minor,micro)

Checks the version of the libxfce4util library. It returns TRUE if the libxfce4util library is the same or newer than the given version.

#### Checking the version of the libxfce4util library

      if (!LIBXFCE4UTIL_CHECK_VERSION (4, 1, 6))
        g_error ("libxfce4util version 4.1.6 or above is required.");

`major` :

  the major version number.

`minor` :

  the minor version number.

`micro` :

  the micro version number.

## See Also

GLib Standard Macros