glib.c.types

Members

Aliases

GChildWatchFunc
alias GChildWatchFunc = void function(GPid pid, int status, void* userData)

Prototype of a GChildWatchSource callback, called when a child process has exited. To interpret status, see the documentation for g_spawn_check_exit_status().

GClearHandleFunc
alias GClearHandleFunc = void function(uint handleId)

Specifies the type of function passed to g_clear_handle_id(). The implementation is expected to free the resource identified by handle_id; for instance, if handle_id is a GSource ID, g_source_remove() can be used.

GCompareDataFunc
alias GCompareDataFunc = int function(void* a, void* b, void* userData)

Specifies the type of a comparison function used to compare two values. The function should return a negative integer if the first value comes before the second, 0 if they are equal, or a positive integer if the first value comes after the second.

GCompareFunc
alias GCompareFunc = int function(void* a, void* b)

Specifies the type of a comparison function used to compare two values. The function should return a negative integer if the first value comes before the second, 0 if they are equal, or a positive integer if the first value comes after the second.

GCopyFunc
alias GCopyFunc = void* function(void* src, void* data)

A function of this signature is used to copy the node data when doing a deep-copy of a tree.

GDataForeachFunc
alias GDataForeachFunc = void function(GQuark keyId, void* data, void* userData)

Specifies the type of function passed to g_dataset_foreach(). It is called with each GQuark id and associated data element, together with the user_data parameter supplied to g_dataset_foreach().

GDateDay
alias GDateDay = ubyte

Integer representing a day of the month; between 1 and 31. G_DATE_BAD_DAY represents an invalid day of the month.

GDateYear
alias GDateYear = ushort

Integer representing a year; G_DATE_BAD_YEAR is the invalid value. The year must be 1 or higher; negative (BC) years are not allowed. The year is represented with four digits.

GDestroyNotify
alias GDestroyNotify = void function(void* data)

Specifies the type of function which is called when a data element is destroyed. It is passed the pointer to the data element and should free any memory and resources allocated for it.

GDuplicateFunc
alias GDuplicateFunc = void* function(void* data, void* userData)

The type of functions that are used to 'duplicate' an object. What this means depends on the context, it could just be incrementing the reference count, if data is a ref-counted object.

GEqualFunc
alias GEqualFunc = int function(void* a, void* b)

Specifies the type of a function used to test two values for equality. The function should return TRUE if both values are equal and FALSE otherwise.

GFreeFunc
alias GFreeFunc = void function(void* data)

Declares a type of function which takes an arbitrary data pointer argument and has no return value. It is not currently used in GLib or GTK+.

GFunc
alias GFunc = void function(void* data, void* userData)

Specifies the type of functions passed to g_list_foreach() and g_slist_foreach().

GHFunc
alias GHFunc = void function(void* key, void* value, void* userData)

Specifies the type of the function passed to g_hash_table_foreach(). It is called with each key/value pair, together with the user_data parameter which is passed to g_hash_table_foreach().

GHRFunc
alias GHRFunc = int function(void* key, void* value, void* userData)

Specifies the type of the function passed to g_hash_table_foreach_remove(). It is called with each key/value pair, together with the user_data parameter passed to g_hash_table_foreach_remove(). It should return TRUE if the key/value pair should be removed from the GHashTable

GHashFunc
alias GHashFunc = uint function(void* key)

Specifies the type of the hash function which is passed to g_hash_table_new() when a GHashTable is created.

GHookCheckFunc
alias GHookCheckFunc = int function(void* data)

Defines the type of a hook function that can be invoked by g_hook_list_invoke_check().

GHookCheckMarshaller
alias GHookCheckMarshaller = int function(GHook* hook, void* marshalData)

Defines the type of function used by g_hook_list_marshal_check().

GHookCompareFunc
alias GHookCompareFunc = int function(GHook* newHook, GHook* sibling)

Defines the type of function used to compare GHook elements in g_hook_insert_sorted().

GHookFinalizeFunc
alias GHookFinalizeFunc = void function(GHookList* hookList, GHook* hook)

Defines the type of function to be called when a hook in a list of hooks gets finalized.

GHookFindFunc
alias GHookFindFunc = int function(GHook* hook, void* data)

Defines the type of the function passed to g_hook_find().

GHookFunc
alias GHookFunc = void function(void* data)

Defines the type of a hook function that can be invoked by g_hook_list_invoke().

GHookMarshaller
alias GHookMarshaller = void function(GHook* hook, void* marshalData)

Defines the type of function used by g_hook_list_marshal().

GIOFunc
alias GIOFunc = int function(GIOChannel* source, GIOCondition condition, void* data)

Specifies the type of function passed to g_io_add_watch() or g_io_add_watch_full(), which is called when the requested condition on a GIOChannel is satisfied.

GLogFunc
alias GLogFunc = void function(const(char)* logDomain, GLogLevelFlags logLevel, const(char)* message, void* userData)

Specifies the prototype of log handler functions.

GLogWriterFunc
alias GLogWriterFunc = GLogWriterOutput function(GLogLevelFlags logLevel, GLogField* fields, size_t nFields, void* userData)

Writer function for log entries. A log entry is a collection of one or more GLogFields, using the standard [field names from journal specification](https://www.freedesktop.org/software/systemd/man/systemd.journal-fields.html). See g_log_structured() for more information.

GModuleCheckInit
alias GModuleCheckInit = const(char)* function(GModule* module_)

Specifies the type of the module initialization function. If a module contains a function named g_module_check_init() it is called automatically when the module is loaded. It is passed the GModule structure and should return NULL on success or a string describing the initialization error.

GModuleUnload
alias GModuleUnload = void function(GModule* module_)

Specifies the type of the module function called when it is unloaded. If a module contains a function named g_module_unload() it is called automatically when the module is unloaded. It is passed the GModule structure.

GMutexLocker
alias GMutexLocker = void

Opaque type. See g_mutex_locker_new() for details.

GNodeForeachFunc
alias GNodeForeachFunc = void function(GNode* node, void* data)

Specifies the type of function passed to g_node_children_foreach(). The function is called with each child node, together with the user data passed to g_node_children_foreach().

GNodeTraverseFunc
alias GNodeTraverseFunc = int function(GNode* node, void* data)

Specifies the type of function passed to g_node_traverse(). The function is called with each of the nodes visited, together with the user data passed to g_node_traverse(). If the function returns TRUE, then the traversal is stopped.

GOptionArgFunc
alias GOptionArgFunc = int function(const(char)* optionName, const(char)* value, void* data, GError** err)

The type of function to be passed as callback for G_OPTION_ARG_CALLBACK options.

GOptionErrorFunc
alias GOptionErrorFunc = void function(GOptionContext* context, GOptionGroup* group, void* data, GError** err)

The type of function to be used as callback when a parse error occurs.

GOptionParseFunc
alias GOptionParseFunc = int function(GOptionContext* context, GOptionGroup* group, void* data, GError** err)

The type of function that can be called before and after parsing.

GPid
alias GPid = int

A type which is used to hold a process identification.

GPollFunc
alias GPollFunc = int function(GPollFD* ufds, uint nfsd, int timeout)

Specifies the type of function passed to g_main_context_set_poll_func(). The semantics of the function should match those of the poll() system call.

GPrintFunc
alias GPrintFunc = void function(const(char)* string_)

Specifies the type of the print handler functions. These are called with the complete formatted string to output.

GQuark
alias GQuark = uint

A GQuark is a non-zero integer which uniquely identifies a particular string. A GQuark value of zero is associated to NULL.

GRecMutexLocker
alias GRecMutexLocker = void

Opaque type. See g_rec_mutex_locker_new() for details.

GRefString
alias GRefString = char

A typedef for a reference-counted string. A pointer to a GRefString can be treated like a standard char* array by all code, but can additionally have g_ref_string_*() methods called on it. g_ref_string_*() methods cannot be called on char* arrays not allocated using g_ref_string_new().

GRegexEvalCallback
alias GRegexEvalCallback = int function(GMatchInfo* matchInfo, GString* result, void* userData)

Specifies the type of the function passed to g_regex_replace_eval(). It is called for each occurrence of the pattern in the string passed to g_regex_replace_eval(), and it should append the replacement to result.

GScannerMsgFunc
alias GScannerMsgFunc = void function(GScanner* scanner, char* message, int error)

Specifies the type of the message handler function.

GSequenceIterCompareFunc
alias GSequenceIterCompareFunc = int function(GSequenceIter* a, GSequenceIter* b, void* data)

A GSequenceIterCompareFunc is a function used to compare iterators. It must return zero if the iterators compare equal, a negative value if a comes before b, and a positive value if b comes before a.

GSourceDummyMarshal
alias GSourceDummyMarshal = void function()

This is just a placeholder for GClosureMarshal, which cannot be used here for dependency reasons.

GSourceFunc
alias GSourceFunc = int function(void* userData)

Specifies the type of function passed to g_timeout_add(), g_timeout_add_full(), g_idle_add(), and g_idle_add_full().

GSpawnChildSetupFunc
alias GSpawnChildSetupFunc = void function(void* userData)

Specifies the type of the setup function passed to g_spawn_async(), g_spawn_sync() and g_spawn_async_with_pipes(), which can, in very limited ways, be used to affect the child's execution.

GStrv
alias GStrv = char**

A typedef alias for gchar**. This is mostly useful when used together with g_auto().

GTestDataFunc
alias GTestDataFunc = void function(void* userData)

The type used for test case functions that take an extra pointer argument.

GTestFixtureFunc
alias GTestFixtureFunc = void function(void* fixture, void* userData)

The type used for functions that operate on test fixtures. This is used for the fixture setup and teardown functions as well as for the testcases themselves.

GTestFunc
alias GTestFunc = void function()

The type used for test case functions.

GTestLogFatalFunc
alias GTestLogFatalFunc = int function(const(char)* logDomain, GLogLevelFlags logLevel, const(char)* message, void* userData)

Specifies the prototype of fatal log handler functions.

GThreadFunc
alias GThreadFunc = void* function(void* data)

Specifies the type of the func functions passed to g_thread_new() or g_thread_try_new().

GTime
alias GTime = int

Simply a replacement for time_t. It has been deprecated since it is not equivalent to time_t on 64-bit platforms with a 64-bit time_t. Unrelated to GTimer

GTimeSpan
alias GTimeSpan = long

A value representing an interval of time, in microseconds.

GTranslateFunc
alias GTranslateFunc = const(char)* function(const(char)* str, void* data)

The type of functions which are used to translate user-visible strings, for <option>--help</option> output.

GTraverseFunc
alias GTraverseFunc = int function(void* key, void* value, void* data)

Specifies the type of function passed to g_tree_traverse(). It is passed the key and value of each node, together with the user_data parameter passed to g_tree_traverse(). If the function returns TRUE, the traversal is stopped.

GUnixFDSourceFunc
alias GUnixFDSourceFunc = int function(int fd, GIOCondition condition, void* userData)

The type of functions to be called when a UNIX fd watch source triggers.

GVoidFunc
alias GVoidFunc = void function()

Declares a type of function which takes no arguments and has no return value. It is used to specify the type function passed to g_atexit().

Enums

GBookmarkFileError
enum GBookmarkFileError

Error codes returned by bookmark file parsing.

GChecksumType
enum GChecksumType

The hashing algorithm to be used by GChecksum when performing the digest of some data.

GConvertError
enum GConvertError

Error codes returned by character set conversion routines.

GDateDMY
enum GDateDMY

This enumeration isn't used in the API, but may be useful if you need to mark a number as a day, month, or year.

GDateMonth
enum GDateMonth

Enumeration representing a month; values are G_DATE_JANUARY, G_DATE_FEBRUARY, etc. G_DATE_BAD_MONTH is the invalid value.

GDateWeekday
enum GDateWeekday

Enumeration representing a day of the week; G_DATE_MONDAY, G_DATE_TUESDAY, etc. G_DATE_BAD_WEEKDAY is an invalid weekday.

GErrorType
enum GErrorType

The possible errors, used in the v_error field of GTokenValue, when the token is a G_TOKEN_ERROR.

GFileError
enum GFileError

Values corresponding to errno codes returned from file operations on UNIX. Unlike errno codes, GFileError values are available on all systems, even Windows. The exact meaning of each code depends on what sort of file operation you were performing; the UNIX documentation gives more details. The following error code descriptions come from the GNU C Library manual, and are under the copyright of that manual.

GFileTest
enum GFileTest

A test to perform on a file using g_file_test().

GFormatSizeFlags
enum GFormatSizeFlags

Flags to modify the format of the string returned by g_format_size_full().

GHookFlagMask
enum GHookFlagMask

Flags used internally in the GHook implementation.

GIOChannelError
enum GIOChannelError

Error codes returned by GIOChannel operations.

GIOCondition
enum GIOCondition

A bitwise combination representing a condition to watch for on an event source.

GIOError
enum GIOError

GIOError is only used by the deprecated functions g_io_channel_read(), g_io_channel_write(), and g_io_channel_seek().

GIOFlags
enum GIOFlags

Specifies properties of a GIOChannel Some of the flags can only be read with g_io_channel_get_flags(), but not changed with g_io_channel_set_flags().

GIOStatus
enum GIOStatus

Stati returned by most of the GIOFuncs functions.

GKeyFileError
enum GKeyFileError

Error codes returned by key file parsing.

GKeyFileFlags
enum GKeyFileFlags

Flags which influence the parsing.

GLogLevelFlags
enum GLogLevelFlags

Flags specifying the level of log messages.

GLogWriterOutput
enum GLogWriterOutput

Return values from GLogWriterFuncs to indicate whether the given log entry was successfully handled by the writer, or whether there was an error in handling it (and hence a fallback writer should be used).

GMarkupCollectType
enum GMarkupCollectType

A mixed enumerated type and flags field. You must specify one type (string, strdup, boolean, tristate). Additionally, you may optionally bitwise OR the type with the flag G_MARKUP_COLLECT_OPTIONAL.

GMarkupError
enum GMarkupError

Error codes returned by markup parsing.

GMarkupParseFlags
enum GMarkupParseFlags

Flags that affect the behaviour of the parser.

GModuleFlags
enum GModuleFlags

Flags passed to g_module_open(). Note that these flags are not supported on all platforms.

GNormalizeMode
enum GNormalizeMode

Defines how a Unicode string is transformed in a canonical form, standardizing such issues as whether a character with an accent is represented as a base character and combining accent or as a single precomposed character. Unicode strings should generally be normalized before comparing them.

GNumberParserError
enum GNumberParserError

Error codes returned by functions converting a string to a number.

GOnceStatus
enum GOnceStatus

The possible statuses of a one-time initialization function controlled by a GOnce struct.

GOptionArg
enum GOptionArg

The GOptionArg enum values determine which type of extra argument the options expect to find. If an option expects an extra argument, it can be specified in several ways; with a short option: -x arg, with a long option: --name arg or combined in a single argument: --name=arg.

GOptionError
enum GOptionError

Error codes returned by option parsing.

GOptionFlags
enum GOptionFlags

Flags which modify individual options.

GRegexCompileFlags
enum GRegexCompileFlags

Flags specifying compile-time options.

GRegexError
enum GRegexError

Error codes returned by regular expressions functions.

GRegexMatchFlags
enum GRegexMatchFlags

Flags specifying match-time options.

GSeekType
enum GSeekType

An enumeration specifying the base position for a g_io_channel_seek_position() operation.

GShellError
enum GShellError

Error codes returned by shell functions.

GSpawnError
enum GSpawnError

Error codes returned by spawning processes.

GSpawnFlags
enum GSpawnFlags

Flags passed to g_spawn_sync(), g_spawn_async() and g_spawn_async_with_pipes().

GTestFileType
enum GTestFileType

The type of file to return the filename for, when used with g_test_build_filename().

GTestSubprocessFlags
enum GTestSubprocessFlags

Flags to pass to g_test_trap_subprocess() to control input and output.

GTestTrapFlags
enum GTestTrapFlags

Test traps are guards around forked tests. These flags determine what traps to set.

GThreadError
enum GThreadError

Possible errors of thread related functions.

GTimeType
enum GTimeType

Disambiguates a given time in two ways.

GTokenType
enum GTokenType

The possible types of token returned from each g_scanner_get_next_token() call.

GTraverseFlags
enum GTraverseFlags

Specifies which nodes are visited during several of the tree functions, including g_node_traverse() and g_node_find().

GTraverseType
enum GTraverseType

Specifies the type of traveral performed by g_tree_traverse(), g_node_traverse() and g_node_find(). The different orders are illustrated here: - In order: A, B, C, D, E, F, G, H, I

- Pre order: F, B, A, D, C, E, G, I, H

- Post order: A, C, E, D, B, H, I, G, F

- Level order: F, B, G, A, D, I, C, E, H

GUnicodeBreakType
enum GUnicodeBreakType

These are the possible line break classifications.

GUnicodeScript
enum GUnicodeScript

The GUnicodeScript enumeration identifies different writing systems. The values correspond to the names as defined in the Unicode standard. The enumeration has been added in GLib 2.14, and is interchangeable with PangoScript

GUnicodeType
enum GUnicodeType

These are the possible character classifications from the Unicode specification. See Unicode Character Database.

GUserDirectory
enum GUserDirectory

These are logical ids for special directories which are defined depending on the platform used. You should use g_get_user_special_dir() to retrieve the full path associated to the logical id.

GVariantClass
enum GVariantClass

The range of possible top-level types of GVariant instances.

GVariantParseError
enum GVariantParseError

Error codes returned by parsing text-format GVariants.

Functions

getArrayLength
size_t getArrayLength(T* arr)

Get the length of a zero terminated array.

Manifest constants

ASCII_DTOSTR_BUF_SIZE
enum ASCII_DTOSTR_BUF_SIZE;

A good size for a buffer to be passed into g_ascii_dtostr(). It is guaranteed to be enough for all output of that function on systems with 64bit IEEE-compatible doubles.

BIG_ENDIAN
enum BIG_ENDIAN;

Specifies one of the possible types of byte order. See G_BYTE_ORDER

CSET_A_2_Z
enum CSET_A_2_Z;

The set of uppercase ASCII alphabet characters. Used for specifying valid identifier characters in GScannerConfig

CSET_DIGITS
enum CSET_DIGITS;

The set of ASCII digits. Used for specifying valid identifier characters in GScannerConfig

CSET_a_2_z
enum CSET_a_2_z;

The set of lowercase ASCII alphabet characters. Used for specifying valid identifier characters in GScannerConfig

DATALIST_FLAGS_MASK
enum DATALIST_FLAGS_MASK;

A bitmask that restricts the possible flags passed to g_datalist_set_flags(). Passing a flags value where flags & ~G_DATALIST_FLAGS_MASK != 0 is an error.

DATE_BAD_DAY
enum DATE_BAD_DAY;

Represents an invalid GDateDay

DATE_BAD_JULIAN
enum DATE_BAD_JULIAN;

Represents an invalid Julian day number.

DATE_BAD_YEAR
enum DATE_BAD_YEAR;

Represents an invalid year.

GINT16_FORMAT
enum GINT16_FORMAT;

This is the platform dependent conversion specifier for scanning and printing values of type gint16 It is a string literal, but doesn't include the percent-sign, such that you can add precision and length modifiers between percent-sign and conversion specifier.

GINT16_MODIFIER
enum GINT16_MODIFIER;

The platform dependent length modifier for conversion specifiers for scanning and printing values of type gint16 or guint16 It is a string literal, but doesn't include the percent-sign, such that you can add precision and length modifiers between percent-sign and conversion specifier and append a conversion specifier.

GINT32_FORMAT
enum GINT32_FORMAT;

This is the platform dependent conversion specifier for scanning and printing values of type gint32 See also G_GINT16_FORMAT

GINT32_MODIFIER
enum GINT32_MODIFIER;

The platform dependent length modifier for conversion specifiers for scanning and printing values of type gint32 or guint32 It is a string literal. See also G_GINT16_MODIFIER

GINT64_FORMAT
enum GINT64_FORMAT;

This is the platform dependent conversion specifier for scanning and printing values of type gint64 See also G_GINT16_FORMAT

GINT64_MODIFIER
enum GINT64_MODIFIER;

The platform dependent length modifier for conversion specifiers for scanning and printing values of type gint64 or guint64 It is a string literal.

GINTPTR_FORMAT
enum GINTPTR_FORMAT;

This is the platform dependent conversion specifier for scanning and printing values of type gintptr

GINTPTR_MODIFIER
enum GINTPTR_MODIFIER;

The platform dependent length modifier for conversion specifiers for scanning and printing values of type gintptr or guintptr It is a string literal.

GNUC_FUNCTION
enum GNUC_FUNCTION;

Expands to "" on all modern compilers, and to __FUNCTION__ on gcc version 2.x. Don't use it.

GNUC_PRETTY_FUNCTION
enum GNUC_PRETTY_FUNCTION;

Expands to "" on all modern compilers, and to __PRETTY_FUNCTION__ on gcc version 2.x. Don't use it.

GSIZE_FORMAT
enum GSIZE_FORMAT;

This is the platform dependent conversion specifier for scanning and printing values of type gsize See also G_GINT16_FORMAT

GSIZE_MODIFIER
enum GSIZE_MODIFIER;

The platform dependent length modifier for conversion specifiers for scanning and printing values of type gsize It is a string literal.

GSSIZE_FORMAT
enum GSSIZE_FORMAT;

This is the platform dependent conversion specifier for scanning and printing values of type gssize See also G_GINT16_FORMAT

GSSIZE_MODIFIER
enum GSSIZE_MODIFIER;

The platform dependent length modifier for conversion specifiers for scanning and printing values of type gssize It is a string literal.

GUINT16_FORMAT
enum GUINT16_FORMAT;

This is the platform dependent conversion specifier for scanning and printing values of type guint16 See also G_GINT16_FORMAT

GUINT32_FORMAT
enum GUINT32_FORMAT;

This is the platform dependent conversion specifier for scanning and printing values of type guint32 See also G_GINT16_FORMAT

GUINT64_FORMAT
enum GUINT64_FORMAT;

This is the platform dependent conversion specifier for scanning and printing values of type guint64 See also G_GINT16_FORMAT

GUINTPTR_FORMAT
enum GUINTPTR_FORMAT;

This is the platform dependent conversion specifier for scanning and printing values of type guintptr

HAVE_GNUC_VISIBILITY
enum HAVE_GNUC_VISIBILITY;

Defined to 1 if gcc-style visibility handling is supported.

HOOK_FLAG_USER_SHIFT
enum HOOK_FLAG_USER_SHIFT;

The position of the first bit which is not reserved for internal use be the GHook implementation, i.e. 1 << G_HOOK_FLAG_USER_SHIFT is the first bit which can be used for application-defined flags.

IEEE754_DOUBLE_BIAS
enum IEEE754_DOUBLE_BIAS;

The bias by which exponents in double-precision floats are offset.

IEEE754_FLOAT_BIAS
enum IEEE754_FLOAT_BIAS;

The bias by which exponents in single-precision floats are offset.

KEY_FILE_DESKTOP_GROUP
enum KEY_FILE_DESKTOP_GROUP;

The name of the main group of a desktop entry file, as defined in the Desktop Entry Specification. Consult the specification for more details about the meanings of the keys below.

KEY_FILE_DESKTOP_KEY_ACTIONS
enum KEY_FILE_DESKTOP_KEY_ACTIONS;

A key under G_KEY_FILE_DESKTOP_GROUP, whose value is a string list giving the available application actions.

KEY_FILE_DESKTOP_KEY_CATEGORIES
enum KEY_FILE_DESKTOP_KEY_CATEGORIES;

A key under G_KEY_FILE_DESKTOP_GROUP, whose value is a list of strings giving the categories in which the desktop entry should be shown in a menu.

KEY_FILE_DESKTOP_KEY_COMMENT
enum KEY_FILE_DESKTOP_KEY_COMMENT;

A key under G_KEY_FILE_DESKTOP_GROUP, whose value is a localized string giving the tooltip for the desktop entry.

KEY_FILE_DESKTOP_KEY_DBUS_ACTIVATABLE
enum KEY_FILE_DESKTOP_KEY_DBUS_ACTIVATABLE;

A key under G_KEY_FILE_DESKTOP_GROUP, whose value is a boolean set to true if the application is D-Bus activatable.

KEY_FILE_DESKTOP_KEY_EXEC
enum KEY_FILE_DESKTOP_KEY_EXEC;

A key under G_KEY_FILE_DESKTOP_GROUP, whose value is a string giving the command line to execute. It is only valid for desktop entries with the Application type.

KEY_FILE_DESKTOP_KEY_GENERIC_NAME
enum KEY_FILE_DESKTOP_KEY_GENERIC_NAME;

A key under G_KEY_FILE_DESKTOP_GROUP, whose value is a localized string giving the generic name of the desktop entry.

KEY_FILE_DESKTOP_KEY_HIDDEN
enum KEY_FILE_DESKTOP_KEY_HIDDEN;

A key under G_KEY_FILE_DESKTOP_GROUP, whose value is a boolean stating whether the desktop entry has been deleted by the user.

KEY_FILE_DESKTOP_KEY_ICON
enum KEY_FILE_DESKTOP_KEY_ICON;

A key under G_KEY_FILE_DESKTOP_GROUP, whose value is a localized string giving the name of the icon to be displayed for the desktop entry.

KEY_FILE_DESKTOP_KEY_MIME_TYPE
enum KEY_FILE_DESKTOP_KEY_MIME_TYPE;

A key under G_KEY_FILE_DESKTOP_GROUP, whose value is a list of strings giving the MIME types supported by this desktop entry.

KEY_FILE_DESKTOP_KEY_NAME
enum KEY_FILE_DESKTOP_KEY_NAME;

A key under G_KEY_FILE_DESKTOP_GROUP, whose value is a localized string giving the specific name of the desktop entry.

KEY_FILE_DESKTOP_KEY_NOT_SHOW_IN
enum KEY_FILE_DESKTOP_KEY_NOT_SHOW_IN;

A key under G_KEY_FILE_DESKTOP_GROUP, whose value is a list of strings identifying the environments that should not display the desktop entry.

KEY_FILE_DESKTOP_KEY_NO_DISPLAY
enum KEY_FILE_DESKTOP_KEY_NO_DISPLAY;

A key under G_KEY_FILE_DESKTOP_GROUP, whose value is a boolean stating whether the desktop entry should be shown in menus.

KEY_FILE_DESKTOP_KEY_ONLY_SHOW_IN
enum KEY_FILE_DESKTOP_KEY_ONLY_SHOW_IN;

A key under G_KEY_FILE_DESKTOP_GROUP, whose value is a list of strings identifying the environments that should display the desktop entry.

KEY_FILE_DESKTOP_KEY_PATH
enum KEY_FILE_DESKTOP_KEY_PATH;

A key under G_KEY_FILE_DESKTOP_GROUP, whose value is a string containing the working directory to run the program in. It is only valid for desktop entries with the Application type.

KEY_FILE_DESKTOP_KEY_STARTUP_NOTIFY
enum KEY_FILE_DESKTOP_KEY_STARTUP_NOTIFY;

A key under G_KEY_FILE_DESKTOP_GROUP, whose value is a boolean stating whether the application supports the Startup Notification Protocol Specification.

KEY_FILE_DESKTOP_KEY_STARTUP_WM_CLASS
enum KEY_FILE_DESKTOP_KEY_STARTUP_WM_CLASS;

A key under G_KEY_FILE_DESKTOP_GROUP, whose value is string identifying the WM class or name hint of a window that the application will create, which can be used to emulate Startup Notification with older applications.

KEY_FILE_DESKTOP_KEY_TERMINAL
enum KEY_FILE_DESKTOP_KEY_TERMINAL;

A key under G_KEY_FILE_DESKTOP_GROUP, whose value is a boolean stating whether the program should be run in a terminal window. It is only valid for desktop entries with the Application type.

KEY_FILE_DESKTOP_KEY_TRY_EXEC
enum KEY_FILE_DESKTOP_KEY_TRY_EXEC;

A key under G_KEY_FILE_DESKTOP_GROUP, whose value is a string giving the file name of a binary on disk used to determine if the program is actually installed. It is only valid for desktop entries with the Application type.

KEY_FILE_DESKTOP_KEY_TYPE
enum KEY_FILE_DESKTOP_KEY_TYPE;

A key under G_KEY_FILE_DESKTOP_GROUP, whose value is a string giving the type of the desktop entry. Usually G_KEY_FILE_DESKTOP_TYPE_APPLICATION, G_KEY_FILE_DESKTOP_TYPE_LINK, or G_KEY_FILE_DESKTOP_TYPE_DIRECTORY

KEY_FILE_DESKTOP_KEY_URL
enum KEY_FILE_DESKTOP_KEY_URL;

A key under G_KEY_FILE_DESKTOP_GROUP, whose value is a string giving the URL to access. It is only valid for desktop entries with the Link type.

KEY_FILE_DESKTOP_KEY_VERSION
enum KEY_FILE_DESKTOP_KEY_VERSION;

A key under G_KEY_FILE_DESKTOP_GROUP, whose value is a string giving the version of the Desktop Entry Specification used for the desktop entry file.

KEY_FILE_DESKTOP_TYPE_APPLICATION
enum KEY_FILE_DESKTOP_TYPE_APPLICATION;

The value of the G_KEY_FILE_DESKTOP_KEY_TYPE, key for desktop entries representing applications.

KEY_FILE_DESKTOP_TYPE_DIRECTORY
enum KEY_FILE_DESKTOP_TYPE_DIRECTORY;

The value of the G_KEY_FILE_DESKTOP_KEY_TYPE, key for desktop entries representing directories.

KEY_FILE_DESKTOP_TYPE_LINK
enum KEY_FILE_DESKTOP_TYPE_LINK;

The value of the G_KEY_FILE_DESKTOP_KEY_TYPE, key for desktop entries representing links to documents.

LITTLE_ENDIAN
enum LITTLE_ENDIAN;

Specifies one of the possible types of byte order. See G_BYTE_ORDER

LOG_DOMAIN
enum LOG_DOMAIN;

Defines the log domain. See Log Domains.

LOG_FATAL_MASK
enum LOG_FATAL_MASK;

GLib log levels that are considered fatal by default.

LOG_LEVEL_USER_SHIFT
enum LOG_LEVEL_USER_SHIFT;

Log levels below 1<<G_LOG_LEVEL_USER_SHIFT are used by GLib. Higher bits can be used for user-defined log levels.

MAJOR_VERSION
enum MAJOR_VERSION;

The major version number of the GLib library.

MAXINT16
enum MAXINT16;

The maximum value which can be held in a gint16

MAXINT32
enum MAXINT32;

The maximum value which can be held in a gint32

MAXINT64
enum MAXINT64;

The maximum value which can be held in a gint64

MAXINT8
enum MAXINT8;

The maximum value which can be held in a gint8

MAXUINT16
enum MAXUINT16;

The maximum value which can be held in a guint16

MAXUINT32
enum MAXUINT32;

The maximum value which can be held in a guint32

MAXUINT64
enum MAXUINT64;

The maximum value which can be held in a guint64

MAXUINT8
enum MAXUINT8;

The maximum value which can be held in a guint8

MICRO_VERSION
enum MICRO_VERSION;

The micro version number of the GLib library.

MININT16
enum MININT16;

The minimum value which can be held in a gint16

MININT32
enum MININT32;

The minimum value which can be held in a gint32

MININT64
enum MININT64;

The minimum value which can be held in a gint64

MININT8
enum MININT8;

The minimum value which can be held in a gint8

MINOR_VERSION
enum MINOR_VERSION;

The minor version number of the GLib library.

OPTION_REMAINING
enum OPTION_REMAINING;

If a long option in the main group has this name, it is not treated as a regular option. Instead it collects all non-option arguments which would otherwise be left in argv. The option must be of type G_OPTION_ARG_CALLBACK, G_OPTION_ARG_STRING_ARRAY or G_OPTION_ARG_FILENAME_ARRAY.

PDP_ENDIAN
enum PDP_ENDIAN;

Specifies one of the possible types of byte order (currently unused). See G_BYTE_ORDER

PID_FORMAT
enum PID_FORMAT;

A format specifier that can be used in printf()-style format strings when printing a GPid

POLLFD_FORMAT
enum POLLFD_FORMAT;

A format specifier that can be used in printf()-style format strings when printing the fd member of a GPollFD

PRIORITY_DEFAULT
enum PRIORITY_DEFAULT;

Use this for default priority event sources.

PRIORITY_DEFAULT_IDLE
enum PRIORITY_DEFAULT_IDLE;

Use this for default priority idle functions.

PRIORITY_HIGH
enum PRIORITY_HIGH;

Use this for high priority event sources.

PRIORITY_HIGH_IDLE
enum PRIORITY_HIGH_IDLE;

Use this for high priority idle functions.

PRIORITY_LOW
enum PRIORITY_LOW;

Use this for very low priority background tasks.

SOURCE_CONTINUE
enum SOURCE_CONTINUE;

Use this macro as the return value of a GSourceFunc to leave the GSource in the main loop.

SOURCE_REMOVE
enum SOURCE_REMOVE;

Use this macro as the return value of a GSourceFunc to remove the GSource from the main loop.

STR_DELIMITERS
enum STR_DELIMITERS;

The standard delimiters, used in g_strdelimit().

TEST_OPTION_ISOLATE_DIRS
enum TEST_OPTION_ISOLATE_DIRS;

Creates a unique temporary directory for each unit test and uses g_set_user_dirs() to set XDG directories to point into subdirectories of it for the duration of the unit test. The directory tree is cleaned up after the test finishes successfully. Note that this doesn’t take effect until g_test_run() is called, so calls to (for example) g_get_user_home_dir() will return the system-wide value when made in a test program’s main() function.

TIME_SPAN_DAY
enum TIME_SPAN_DAY;

Evaluates to a time span of one day.

TIME_SPAN_HOUR
enum TIME_SPAN_HOUR;

Evaluates to a time span of one hour.

TIME_SPAN_MILLISECOND
enum TIME_SPAN_MILLISECOND;

Evaluates to a time span of one millisecond.

TIME_SPAN_MINUTE
enum TIME_SPAN_MINUTE;

Evaluates to a time span of one minute.

TIME_SPAN_SECOND
enum TIME_SPAN_SECOND;

Evaluates to a time span of one second.

UNICHAR_MAX_DECOMPOSITION_LENGTH
enum UNICHAR_MAX_DECOMPOSITION_LENGTH;

The maximum length (in codepoints) of a compatibility or canonical decomposition of a single Unicode character.

URI_RESERVED_CHARS_GENERIC_DELIMITERS
enum URI_RESERVED_CHARS_GENERIC_DELIMITERS;

Generic delimiters characters as defined in RFC 3986. Includes ":/?#[]@".

URI_RESERVED_CHARS_SUBCOMPONENT_DELIMITERS
enum URI_RESERVED_CHARS_SUBCOMPONENT_DELIMITERS;

Subcomponent delimiter characters as defined in RFC 3986. Includes "!$&'()*+,;=".

USEC_PER_SEC
enum USEC_PER_SEC;

Number of microseconds in one second (1 million). This macro is provided for code readability.

Structs

GArray
struct GArray

Contains the public fields of a GArray.

GByteArray
struct GByteArray

Contains the public fields of a GByteArray.

GData
struct GData

The GData struct is an opaque data structure to represent a [Keyed Data List][glib-Keyed-Data-Lists]. It should only be accessed via the following functions.

GDebugKey
struct GDebugKey

Associates a string with a bit flag. Used in g_parse_debug_string().

GDoubleIEEE754
struct GDoubleIEEE754

The GFloatIEEE754 and GDoubleIEEE754 unions are used to access the sign, mantissa and exponent of IEEE floats and doubles. These unions are defined as appropriate for a given platform. IEEE floats and doubles are supported (used for storage) by at least Intel, PPC and Sparc.

GError
struct GError
GFloatIEEE754
struct GFloatIEEE754

The GFloatIEEE754 and GDoubleIEEE754 unions are used to access the sign, mantissa and exponent of IEEE floats and doubles. These unions are defined as appropriate for a given platform. IEEE floats and doubles are supported (used for storage) by at least Intel, PPC and Sparc.

GHashTable
struct GHashTable

The GHashTable struct is an opaque data structure to represent a [Hash Table][glib-Hash-Tables]. It should only be accessed via the following functions.

GHook
struct GHook
GHookList
struct GHookList
GIOFuncs
struct GIOFuncs

A table of functions used to handle different types of GIOChannel in a generic way.

GList
struct GList

The GList struct is used for each element in a doubly-linked list.

GLogField
struct GLogField

Structure representing a single field in a structured log entry. See g_log_structured() for details.

GMarkupParser
struct GMarkupParser

Any of the fields in GMarkupParser can be NULL, in which case they will be ignored. Except for the error function, any of these callbacks can set an error; in particular the G_MARKUP_ERROR_UNKNOWN_ELEMENT, G_MARKUP_ERROR_UNKNOWN_ATTRIBUTE, and G_MARKUP_ERROR_INVALID_CONTENT errors are intended to be set from these callbacks. If you set an error from a callback, g_markup_parse_context_parse() will report that error back to its caller.

GMemVTable
struct GMemVTable

A set of functions used to perform memory allocation. The same GMemVTable must be used for all allocations in the same program; a call to g_mem_set_vtable(), if it exists, should be prior to any use of GLib.

GNode
struct GNode
GOnce
struct GOnce
GOptionEntry
struct GOptionEntry

A GOptionEntry struct defines a single option. To have an effect, they must be added to a GOptionGroup with g_option_context_add_main_entries() or g_option_group_add_entries().

GPollFD
struct GPollFD

Represents a file descriptor, which events to poll for, and which events occurred.

GPtrArray
struct GPtrArray

Contains the public fields of a pointer array.

GQueue
struct GQueue
GSList
struct GSList

The GSList struct is used for each element in the singly-linked list.

GScanner
struct GScanner
GScannerConfig
struct GScannerConfig

Specifies the GScanner parser configuration. Most settings can be changed during the parsing phase and will affect the lexical parsing of the next unpeeked token.

GSourceCallbackFuncs
struct GSourceCallbackFuncs

The GSourceCallbackFuncs struct contains functions for managing callback objects.

GSourceFuncs
struct GSourceFuncs

The GSourceFuncs struct contains a table of functions used to handle event sources in a generic manner.

GStatBuf
struct GStatBuf

A type corresponding to the appropriate struct type for the stat() system call, depending on the platform and/or compiler being used.

GString
struct GString
GTestCase
struct GTestCase

An opaque structure representing a test case.

GThreadPool
struct GThreadPool
GTimeVal
struct GTimeVal
GTokenValue
struct GTokenValue

A union holding the value of the token.

GTrashStack
struct GTrashStack

Each piece of memory that is pushed onto the stack is cast to a GTrashStack*.