Prototype of a GChildWatchSource callback, called when a child process has exited. To interpret status, see the documentation for Spawn.checkExitStatus.
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 glib.Source ID, Source.remove can be used.
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.
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.
A function of this signature is used to copy the node data when doing a deep-copy of a tree.
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().
Integer representing a day of the month; between 1 and 31. G_DATE_BAD_DAY represents an invalid day of the month.
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.
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.
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.
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.
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+.
Specifies the type of functions passed to g_list_foreach() and g_slist_foreach().
Specifies the type of the function passed to HashTable.foreach. It is called with each key/value pair, together with the user_data parameter which is passed to HashTable.foreach.
Specifies the type of the function passed to HashTable.foreachRemove. It is called with each key/value pair, together with the user_data parameter passed to HashTable.foreachRemove. It should return TRUE if the key/value pair should be removed from the glib.HashTable
Specifies the type of the hash function which is passed to HashTable.new when a glib.HashTable is created.
Defines the type of a hook function that can be invoked by Hook.listInvokeCheck.
Defines the type of function used by Hook.listMarshalCheck.
Defines the type of function used to compare glib.Hook elements in Hook.insertSorted.
Defines the type of function to be called when a hook in a list of hooks gets finalized.
Defines the type of the function passed to Hook.find.
Defines the type of a hook function that can be invoked by Hook.listInvoke.
Defines the type of function used by Hook.listMarshal.
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 glib.IOChannel is satisfied.
Specifies the prototype of log handler functions.
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.
Opaque type. See MainContext.pusherNew for details.
Specifies the type of the module initialization function. If a module contains a function named Module.checkInit it is called automatically when the module is loaded. It is passed the glib.Module structure and should return NULL on success or a string describing the initialization error.
Specifies the type of the module function called when it is unloaded. If a module contains a function named Module.unload it is called automatically when the module is unloaded. It is passed the glib.Module structure.
Opaque type. See Mutex.lockerNew for details.
Specifies the type of function passed to Node.childrenForeach. The function is called with each child node, together with the user data passed to Node.childrenForeach.
Specifies the type of function passed to Node.traverse. The function is called with each of the nodes visited, together with the user data passed to Node.traverse. If the function returns TRUE, then the traversal is stopped.
The type of function to be passed as callback for G_OPTION_ARG_CALLBACK options.
The type of function to be used as callback when a parse error occurs.
The type of function that can be called before and after parsing.
A type which is used to hold a process identification.
Specifies the type of function passed to MainContext.setPollFunc. The semantics of the function should match those of the poll() system call.
Specifies the type of the print handler functions. These are called with the complete formatted string to output.
A GQuark is a non-zero integer which uniquely identifies a particular string. A GQuark value of zero is associated to NULL.
Opaque type. See g_rw_lock_reader_locker_new() for details.
Opaque type. See g_rw_lock_writer_locker_new() for details.
Opaque type. See RecMutex.lockerNew for details.
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().
Specifies the type of the function passed to Regex.replaceEval. It is called for each occurrence of the pattern in the string passed to Regex.replaceEval, and it should append the replacement to result.
Specifies the type of the message handler function.
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.
Dispose function for source. See Source.setDisposeFunction for details.
This is just a placeholder for GClosureMarshal, which cannot be used here for dependency reasons.
Specifies the type of function passed to Timeout.add, Timeout.addFull, Idle.add, and Idle.addFull.
Specifies the type of the setup function passed to Spawn.async, Spawn.sync and Spawn.asyncWithPipes, which can, in very limited ways, be used to affect the child's execution.
A typedef alias for gchar**. This is mostly useful when used together with g_auto().
The type used for test case functions that take an extra pointer argument.
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.
The type used for test case functions.
Specifies the prototype of fatal log handler functions.
Specifies the type of the func functions passed to Thread.new or Thread.tryNew.
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 glib.Timer
A value representing an interval of time, in microseconds.
The type of functions which are used to translate user-visible strings, for <option>--help</option> output.
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.
The type of functions to be called when a UNIX fd watch source triggers.
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().
Error codes returned by bookmark file parsing.
The hashing algorithm to be used by glib.Checksum when performing the digest of some data.
Error codes returned by character set conversion routines.
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.
Enumeration representing a month; values are G_DATE_JANUARY, G_DATE_FEBRUARY, etc. G_DATE_BAD_MONTH is the invalid value.
Enumeration representing a day of the week; G_DATE_MONDAY, G_DATE_TUESDAY, etc. G_DATE_BAD_WEEKDAY is an invalid weekday.
The possible errors, used in the v_error field of GTokenValue, when the token is a G_TOKEN_ERROR.
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.
A test to perform on a file using g_file_test().
Flags to modify the format of the string returned by g_format_size_full().
Flags used internally in the glib.Hook implementation.
Error codes returned by glib.IOChannel operations.
A bitwise combination representing a condition to watch for on an event source.
GIOError is only used by the deprecated functions g_io_channel_read(), g_io_channel_write(), and g_io_channel_seek().
Specifies properties of a glib.IOChannel Some of the flags can only be read with g_io_channel_get_flags(), but not changed with g_io_channel_set_flags().
Stati returned by most of the GIOFuncs functions.
Error codes returned by key file parsing.
Flags which influence the parsing.
Flags specifying the level of log messages.
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).
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.
Error codes returned by markup parsing.
Flags that affect the behaviour of the parser.
Flags passed to Module.open. Note that these flags are not supported on all platforms.
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.
Error codes returned by functions converting a string to a number.
The possible statuses of a one-time initialization function controlled by a glib.Once struct.
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.
Error codes returned by option parsing.
Flags which modify individual options.
Flags specifying compile-time options.
Error codes returned by regular expressions functions.
Flags specifying match-time options.
An enumeration specifying the base position for a g_io_channel_seek_position() operation.
Error codes returned by shell functions.
Error codes returned by spawning processes.
Flags passed to Spawn.sync, Spawn.async and Spawn.asyncWithPipes.
The type of file to return the filename for, when used with g_test_build_filename().
Flags to pass to g_test_trap_subprocess() to control input and output.
Test traps are guards around forked tests. These flags determine what traps to set.
Possible errors of thread related functions.
Disambiguates a given time in two ways.
The possible types of token returned from each g_scanner_get_next_token() call.
Specifies which nodes are visited during several of the tree functions, including Node.traverse and Node.find.
Specifies the type of traveral performed by g_tree_traverse(), Node.traverse and 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
These are the possible line break classifications.
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 cairo.Script
These are the possible character classifications from the Unicode specification. See Unicode Character Database.
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.
The range of possible top-level types of glib.Variant instances.
Error codes returned by parsing text-format GVariants.
Get the length of a zero terminated array.
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.
Specifies one of the possible types of byte order. See G_BYTE_ORDER
The set of uppercase ASCII alphabet characters. Used for specifying valid identifier characters in GScannerConfig
The set of ASCII digits. Used for specifying valid identifier characters in GScannerConfig
The set of lowercase ASCII alphabet characters. Used for specifying valid identifier characters in GScannerConfig
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.
Represents an invalid GDateDay
Represents an invalid Julian day number.
Represents an invalid year.
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.
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.
This is the platform dependent conversion specifier for scanning and printing values of type gint32 See also G_GINT16_FORMAT
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
This is the platform dependent conversion specifier for scanning and printing values of type gint64 See also G_GINT16_FORMAT
This is the platform dependent conversion specifier for scanning and printing values of type gintptr
Expands to "" on all modern compilers, and to __FUNCTION__ on gcc version 2.x. Don't use it.
Expands to "" on all modern compilers, and to __PRETTY_FUNCTION__ on gcc version 2.x. Don't use it.
This is the platform dependent conversion specifier for scanning and printing values of type gsize See also G_GINT16_FORMAT
The platform dependent length modifier for conversion specifiers for scanning and printing values of type gsize It is a string literal.
This is the platform dependent conversion specifier for scanning and printing values of type gssize See also G_GINT16_FORMAT
The platform dependent length modifier for conversion specifiers for scanning and printing values of type gssize It is a string literal.
This is the platform dependent conversion specifier for scanning and printing values of type guint16 See also G_GINT16_FORMAT
This is the platform dependent conversion specifier for scanning and printing values of type guint32 See also G_GINT16_FORMAT
This is the platform dependent conversion specifier for scanning and printing values of type guint64 See also G_GINT16_FORMAT
This is the platform dependent conversion specifier for scanning and printing values of type guintptr
Defined to 1 if gcc-style visibility handling is supported.
The position of the first bit which is not reserved for internal use be the glib.Hook implementation, i.e. 1 << G_HOOK_FLAG_USER_SHIFT is the first bit which can be used for application-defined flags.
The bias by which exponents in double-precision floats are offset.
The bias by which exponents in single-precision floats are offset.
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.
A key under G_KEY_FILE_DESKTOP_GROUP, whose value is a string list giving the available application actions.
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.
A key under G_KEY_FILE_DESKTOP_GROUP, whose value is a localized string giving the tooltip for the desktop entry.
A key under G_KEY_FILE_DESKTOP_GROUP, whose value is a boolean set to true if the application is D-Bus activatable.
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.
A key under G_KEY_FILE_DESKTOP_GROUP, whose value is a localized string giving the generic name of the desktop entry.
A key under G_KEY_FILE_DESKTOP_GROUP, whose value is a boolean stating whether the desktop entry has been deleted by the user.
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.
A key under G_KEY_FILE_DESKTOP_GROUP, whose value is a list of strings giving the MIME types supported by this desktop entry.
A key under G_KEY_FILE_DESKTOP_GROUP, whose value is a localized string giving the specific name of the desktop entry.
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.
A key under G_KEY_FILE_DESKTOP_GROUP, whose value is a boolean stating whether the desktop entry should be shown in menus.
A key under G_KEY_FILE_DESKTOP_GROUP, whose value is a list of strings identifying the environments that should display the desktop entry.
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.
A key under G_KEY_FILE_DESKTOP_GROUP, whose value is a boolean stating whether the application supports the Startup Notification Protocol Specification.
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.
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.
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.
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
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.
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.
The value of the G_KEY_FILE_DESKTOP_KEY_TYPE, key for desktop entries representing applications.
The value of the G_KEY_FILE_DESKTOP_KEY_TYPE, key for desktop entries representing directories.
The value of the G_KEY_FILE_DESKTOP_KEY_TYPE, key for desktop entries representing links to documents.
Specifies one of the possible types of byte order. See G_BYTE_ORDER
Defines the log domain. See Log Domains.
GLib log levels that are considered fatal by default.
Log levels below 1<<G_LOG_LEVEL_USER_SHIFT are used by GLib. Higher bits can be used for user-defined log levels.
The major version number of the GLib library.
The maximum value which can be held in a gint16
The maximum value which can be held in a gint32
The maximum value which can be held in a gint64
The maximum value which can be held in a gint8
The maximum value which can be held in a guint16
The maximum value which can be held in a guint32
The maximum value which can be held in a guint64
The maximum value which can be held in a guint8
The micro version number of the GLib library.
The minimum value which can be held in a gint16
The minimum value which can be held in a gint32
The minimum value which can be held in a gint64
The minimum value which can be held in a gint8
The minor version number of the GLib library.
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.
Specifies one of the possible types of byte order (currently unused). See G_BYTE_ORDER
A format specifier that can be used in printf()-style format strings when printing a GPid
A format specifier that can be used in printf()-style format strings when printing the fd member of a gstreamer.PollFD
Use this for default priority event sources.
Use this for default priority idle functions.
Use this for high priority event sources.
Use this for high priority idle functions.
Use this for very low priority background tasks.
Use this macro as the return value of a GSourceFunc to leave the glib.Source in the main loop.
Use this macro as the return value of a GSourceFunc to remove the glib.Source from the main loop.
The standard delimiters, used in g_strdelimit().
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.
Evaluates to a time span of one day.
Evaluates to a time span of one hour.
Evaluates to a time span of one millisecond.
Evaluates to a time span of one minute.
Evaluates to a time span of one second.
The maximum length (in codepoints) of a compatibility or canonical decomposition of a single Unicode character.
Generic delimiters characters as defined in RFC 3986. Includes ":/?#[]@".
Subcomponent delimiter characters as defined in RFC 3986. Includes "!$&'()*+,;=".
Number of microseconds in one second (1 million). This macro is provided for code readability.
Contains the public fields of a GArray.
Contains the public fields of a GByteArray.
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.
Associates a string with a bit flag. Used in g_parse_debug_string().
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.
Undocumented in source.
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.
The glib.HashTable struct is an opaque data structure to represent a [Hash Table][glib-Hash-Tables]. It should only be accessed via the following functions.
Undocumented in source.
Undocumented in source.
A table of functions used to handle different types of glib.IOChannel in a generic way.
The GList struct is used for each element in a doubly-linked list.
Structure representing a single field in a structured log entry. See g_log_structured() for details.
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.
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.
Undocumented in source.
Undocumented in source.
A GOptionEntry struct defines a single option. To have an effect, they must be added to a glib.OptionGroup with OptionContext.addMainEntries or OptionGroup.addEntries.
Represents a file descriptor, which events to poll for, and which events occurred.
Contains the public fields of a pointer array.
Undocumented in source.
The GSList struct is used for each element in the singly-linked list.
Undocumented in source.
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.
The GSourceCallbackFuncs struct contains functions for managing callback objects.
The GSourceFuncs struct contains a table of functions used to handle event sources in a generic manner.
A type corresponding to the appropriate struct type for the stat() system call, depending on the platform and/or compiler being used.
Undocumented in source.
An opaque structure representing a test case.
Undocumented in source.
Undocumented in source.
A union holding the value of the token.
Each piece of memory that is pushed onto the stack is cast to a GTrashStack*.
Undocumented in source.