Version Information

Version Information — Variables and functions to check the Libxfce4ui version.

Synopsis

#include <libxfce4ui/libxfce4ui.h>

const gchar *       libxfce4ui_check_version            (guint required_major,
                                                         guint required_minor,
                                                         guint required_micro);
extern const guint  libxfce4ui_major_version;
extern const guint  libxfce4ui_minor_version;
extern const guint  libxfce4ui_micro_version;

#define             LIBXFCE4UI_MAJOR_VERSION
#define             LIBXFCE4UI_MINOR_VERSION
#define             LIBXFCE4UI_MICRO_VERSION
#define             LIBXFCE4UI_CHECK_VERSION            (major,
                                                         minor,
                                                         micro)

Description

Libxfce4ui provides version information, primarily useful in configure checks for builds that have a configure script. Applications will not typically use the features described here.

Details

libxfce4ui_check_version ()

const gchar *       libxfce4ui_check_version            (guint required_major,
                                                         guint required_minor,
                                                         guint required_micro);

Checks that the libxfce4ui library in use is compatible with the given version. Generally you would pass in the constants LIBXFCE4UI_MAJOR_VERSION, LIBXFCE4UI_MINOR_VERSION and LIBXFCE4UI_MICRO_VERSION as the three arguments to this function; that produces a check that the library in use is compatible with the version of libxfce4ui the extension was compiled against.

Example 1. Checking the runtime version of the Libxfce4ui library

1
2
3
4
5
6
7
8
9