garcon-config

garcon-config

Synopsis

#define             GARCON_MAJOR_VERSION
#define             GARCON_MINOR_VERSION
#define             GARCON_MICRO_VERSION
#define             GARCON_CHECK_VERSION                (major,minor,micro)
extern              const guint garcon_major_version;
extern              const guint garcon_minor_version;
extern              const guint garcon_micro_version;
const gchar *       garcon_check_version                (guint required_major,
                                                         guint required_minor,
                                                         guint required_micro);
gchar *             garcon_config_lookup                (const gchar *filename);

Description

Details

GARCON_MAJOR_VERSION

#define GARCON_MAJOR_VERSION 0


GARCON_MINOR_VERSION

#define GARCON_MINOR_VERSION 1


GARCON_MICRO_VERSION

#define GARCON_MICRO_VERSION 0


GARCON_CHECK_VERSION()

#define             GARCON_CHECK_VERSION(major,minor,micro)

major :

minor :

micro :


garcon_major_version

extern const guint garcon_major_version;


garcon_minor_version

extern const guint garcon_minor_version;


garcon_micro_version

extern const guint garcon_micro_version;


garcon_check_version ()

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

Checks that the garcon library in use is compatible with the given version. Generally you would pass in the constants GARCON_MAJOR_VERSION, GARCON_MINOR_VERSION and GARCON_MICRO_VERSION as the three arguments to this function; that produces a check that the library in use is compatible with the version of garcon the application was compiled against.

Example 1. Checking the runtime version of the garcon library

const gchar *mismatch;
mismatch = garcon_check_version (GARCON_VERSION_MAJOR,
                                 GARCON_VERSION_MINOR,
                                 GARCON_VERSION_MICRO);
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.

Returns :

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.

Since 0.3.1


garcon_config_lookup ()

gchar *             garcon_config_lookup                (const gchar *filename);

filename :

Returns :