Utilities

Utilities — version and debugging functions

Stability Level

Stable, unless otherwise indicated

Synopsis

#include <spice-util.h>

void                spice_util_set_debug                (gboolean enabled);
const gchar *       spice_util_get_version_string       (void);
#define             SPICE_GTK_CHECK_VERSION             (major,
                                                         minor,
                                                         micro)
#define             SPICE_GTK_MAJOR_VERSION
#define             SPICE_GTK_MICRO_VERSION
#define             SPICE_GTK_MINOR_VERSION

Description

Various functions for debugging and informational purposes.

Details

spice_util_set_debug ()

void                spice_util_set_debug                (gboolean enabled);

Enable or disable Spice-GTK debugging messages.

enabled :

TRUE or FALSE

spice_util_get_version_string ()

const gchar *       spice_util_get_version_string       (void);

Returns :

Spice-GTK version as a const string.

SPICE_GTK_CHECK_VERSION()

#define             SPICE_GTK_CHECK_VERSION(major, minor, micro)

Compile-time version checking. Evaluates to TRUE if the version of Spice-Gtk is greater than the required one.

major :

required major version

minor :

required minor version

micro :

required micro version

Since 0.24


SPICE_GTK_MAJOR_VERSION

#define SPICE_GTK_MAJOR_VERSION              (0)

Spice-Gtk major version component (e.g. 1 if version is 1.2.3)

Since 0.24


SPICE_GTK_MICRO_VERSION

#define SPICE_GTK_MICRO_VERSION              ()

Spice-Gtk micro version component (e.g. 3 if version is 1.2.3)

Since 0.24


SPICE_GTK_MINOR_VERSION

#define SPICE_GTK_MINOR_VERSION              (24)

Spice-Gtk minor version component (e.g. 2 if version is 1.2.3)

Since 0.24