| Guifications Library Reference Manual |
|---|
GLib Compatibility FunctionsGLib Compatibility Functions — Compatibilty Functions for older versions of GLib. |
GType gf_type_module_register_enum (GTypeModule *module, const gchar *name, const GEnumValue *values); GType gf_type_module_register_flags (GTypeModule *module, const gchar *name, const GFlagsValue *values); #define gf_fopen #define gf_freopen #define gf_rmdir #define gf_remove #define gf_unlink #define gf_lstat #define gf_stat #define gf_mkdir #define gf_rename #define gf_open #define gf_fclose #define gf_fprintf gboolean gf_str_has_suffix (const gchar *str, const gchar *suffix);
This is a collection of back ported API from GLib. This is only for API that is actually useful. The backported API will not be built when compiling against the version of GLib when it was introduced, and just a wrapper will be used.
GType gf_type_module_register_enum (GTypeModule *module,
const gchar *name,
const GEnumValue *values);
Looks up or registers an enumeration that is implemented with a particular
type plugin. If a type with name name was previously registered, the
GType identifier for the type is returned, otherwise the type is newly
registered, and the resulting GType identifier returned.
As long as any instances of the type exist, the type plugin will not be unloaded.
module : |
A GTypeModule. |
name : |
The name for the type. |
values : |
An array of GEnumValue structs for the possible enumeration values. The array is terminated by a struct with all members being 0. |
| Returns : | The new or existing type ID. |
GType gf_type_module_register_flags (GTypeModule *module,
const gchar *name,
const GFlagsValue *values);
Looks up or registers a flags type that is implemented with a particular
type plugin. If a type with name name was previously registered, the
GType identifier for the type is returned, otherwise the type is newly
registered, and the resulting GType identifier returned.
As long as any instances of the type exist, the type plugin will not be unloaded.
module : |
A GTypeModule. |
name : |
The name for the type. |
values : |
An array of GFlagsValue structs for the possible flags values. The array is terminated by a struct with all members being 0. |
| Returns : | THe new or existing type ID. |
#define gf_fopen
A wrapper for the POSIX and GLib function, using the GLib implementation if available.
#define gf_freopen
A wrapper for the POSIX and GLib function, using the GLib implementation if available.
#define gf_rmdir
A wrapper for the POSIX and GLib function, using the GLib implementation if available.
#define gf_remove
A wrapper for the POSIX and GLib function, using the GLib implementation if available.
#define gf_unlink
A wrapper for the POSIX and GLib function, using the GLib implementation if available.
#define gf_lstat
A wrapper for the POSIX and GLib function, using the GLib implementation if available.
#define gf_stat
A wrapper for the POSIX and GLib function, using the GLib implementation if available.
#define gf_mkdir
A wrapper for the POSIX and GLib function, using the GLib implementation if available.
#define gf_rename
A wrapper for the POSIX and GLib function, using the GLib implementation if available.
#define gf_open
A wrapper for the POSIX and GLib function, using the GLib implementation if available.
#define gf_fclose
A wrapper for the POSIX and GLib function, using the GLib implementation if available.
#define gf_fprintf
A wrapper for the POSIX and GLib function, using the GLib implementation if available.
| << GLib Comptibility |