- public delegate bool ArraySearchFunc<G,T> (G element, T needle)
Specifies the type of a function used to test two values for equality.
- public delegate void ChildWatchFunc (Pid pid, int wait_status)
Prototype of a GChildWatchSource
callback, called when a
child process has exited.
- public delegate int CompareDataFunc<G> (G a, G b)
Specifies the type of a comparison function used to compare two
values.
- public delegate int CompareFunc<G> (G a, G b)
- public delegate string CompletionFunc (void* item)
- public delegate int CompletionStrncmpFunc (string s1, string s2, size_t n)
- public delegate G CopyFunc<G> (G src)
A function of this signature is used to copy the node data when doing
a deep-copy of a tree.
- public delegate void DataForeachFunc<G> (Quark key_id, G data)
Specifies the type of function passed to g_dataset_foreach
.
- public delegate void DestroyNotify (void* data)
Specifies the type of function which is called when a data element is
destroyed.
- public delegate G DuplicateFunc<G> (G data)
The type of functions that are used to 'duplicate' an object.
- public delegate bool EqualFunc<G> (G a, G b)
- public delegate bool EqualFuncFull<G> (G a, G b)
Specifies the type of a function used to test two values for equality.
- public delegate void FreeFunc (void* data)
Declares a type of function which takes an arbitrary data pointer
argument and has no return value.
- public delegate void Func<G> (G data)
- public delegate void HFunc<K,V> (K key, V value)
Specifies the type of the function passed to
for_each.
- public delegate bool HRFunc<K,V> (K key, V value)
- public delegate uint HashFunc<K> (K key)
Specifies the type of the hash function which is passed to
g_hash_table_new
when a GenericSet is created.
- public delegate bool IOFunc (IOChannel source, IOCondition condition)
- public delegate bool LogFatalFunc (string? log_domain, LogLevelFlags log_levels, string message)
- public delegate void LogFunc (string? log_domain, LogLevelFlags log_levels, string message)
Specifies the prototype of log handler functions.
- public delegate LogWriterOutput LogWriterFunc (LogLevelFlags log_level, LogField[] fields)
Writer function for log entries.
- public delegate void MarkupParserEndElementFunc (MarkupParseContext context, string element_name) throws MarkupError
- public delegate void MarkupParserErrorFunc (MarkupParseContext context, Error error)
- public delegate void MarkupParserPassthroughFunc (MarkupParseContext context, string passthrough_text, size_t text_len) throws MarkupError
- public delegate void MarkupParserStartElementFunc (MarkupParseContext context, string element_name, string[] attribute_names, string[] attribute_values) throws MarkupError
- public delegate void MarkupParserTextFunc (MarkupParseContext context, string text, size_t text_len) throws MarkupError
- public delegate void NodeForeachFunc<G> (Node<G> node)
- public delegate bool NodeTraverseFunc<G> (Node<G> node)
Specifies the type of function passed to
traverse.
- public delegate G OnceFunc<G> ()
- public delegate bool OptionArgFunc (string option_name, string val, void* data) throws OptionError
The type of function to be passed as callback for
g_option_arg_callback options.
- public delegate void OptionErrorFunc (OptionContext context, OptionGroup group, void* data, ref Error error)
The type of function to be used as callback when a parse error occurs.
- public delegate bool OptionParseFunc (OptionContext context, OptionGroup group, void* data) throws OptionError
The type of function that can be called before and after parsing.
- public delegate int PollFunc (PollFD[] ufds, int timeout_)
- public delegate void PrintFunc (string text)
Specifies the type of the print handler functions.
- public delegate bool RegexEvalCallback (MatchInfo match_info, StringBuilder result)
- public delegate void ScannerMsgFunc (Scanner scanner, string message, bool error)
Specifies the type of the message handler function.
- public delegate int SearchFunc<G,T> (G a, T b)
Specifies the type of a comparison function used to compare two
values.
- public delegate int SequenceIterCompareFunc<G> (SequenceIter<G> a, SequenceIter<G> b)
A SequenceIterCompareFunc is a function
used to compare iterators.
- public delegate void SignalHandlerFunc (int signum)
- public delegate void SourceCallbackGetFunc (void* cb_data, Source source, SourceFunc func)
- public delegate void SourceCallbackRefFunc (void* cb_data)
- public delegate void SourceCallbackUnrefFunc (void* cb_data)
- public delegate bool SourceCheckFunc (Source source)
- public delegate bool SourceDispatchFunc (Source source, SourceFunc? _callback)
- public delegate void SourceDisposeFunc (Source source)
Dispose function for source
.
- public delegate void SourceDummyMarshal ()
This is just a placeholder for ClosureMarshal
, which cannot be used here for dependency reasons.
- public delegate void SourceFinalizeFunc (Source source)
- public delegate bool SourceFunc ()
Specifies the type of function passed to g_timeout_add
,
add_full, g_idle_add
, and
add_full.
- public delegate bool SourceOnceFunc ()
A source function that is only called once before being removed from
the main context automatically.
- public delegate bool SourcePrepareFunc (Source source, out int timeout_)
- public delegate void SpawnChildSetupFunc ()
- public delegate void TestDataFunc ()
The type used for test case functions that take an extra pointer
argument.
- public delegate void TestFixtureFunc (void* fixture)
The type used for functions that operate on test fixtures.
- public delegate void TestFunc ()
The type used for test case functions.
- public delegate G ThreadFunc<G> ()
- public delegate void ThreadPoolFunc<G> (owned G data)
- public delegate unowned string TranslateFunc (string str)
The type of functions which are used to translate user-visible
strings, for <option>--help</option> output.
- public delegate bool TraverseFunc<K,V> (K key, V value)
Specifies the type of function passed to g_tree_traverse
.
- public delegate bool TraverseNodeFunc<K,V> (TreeNode<K,V> node)
- public delegate int TreeSearchFunc<K> (K key)
- public delegate void VoidFunc ()
Declares a type of function which takes no arguments and has no return
value.
- public unowned string C_ (string context, string str)
- public unowned string NC_ (string context, string str)
- public unowned string N_ (string str)
- public unowned string Q_ (string str)
- public unowned string _ (string str)
- public void assert (bool expr)
- public void assert_cmpfloat (double n1, CompareOperator cmp, double n2)
- public void assert_cmpfloat_with_epsilon (double n1, double n2, double epsilon)
- public void assert_cmphex (uint n1, CompareOperator cmp, uint n2)
- public void assert_cmpint (int n1, CompareOperator cmp, int n2)
- public void assert_cmpmem (uint8[] m1, uint8[] m2)
- public void assert_cmpstr (string? s1, CompareOperator cmp, string? s2)
- public void assert_cmpstrv (string[] strv1, string[] strv2)
- public void assert_cmpuint (uint n1, CompareOperator cmp, uint n2)
- public void assert_cmpvariant (Variant v1, Variant v2)
- public void assert_error (Error? error, Quark error_domain, int error_code)
- public void assert_false (bool expr)
- public void assert_no_error (Error? error)
- public void assert_nonnull (void* expr)
- public void assert_not_reached ()
- public void assert_null (void* expr)
- public void assert_true (bool expr)
- public void breakpoint ()
- public string convert (string str, ssize_t len, string to_codeset, string from_codeset, out size_t bytes_read = null, out size_t bytes_written = null) throws ConvertError
Converts a string from one character set to another.
- public string convert_with_fallback (string str, ssize_t len, string to_codeset, string from_codeset, string? fallback = null, out size_t bytes_read = null, out size_t bytes_written = null) throws ConvertError
Converts a string from one character set to another, possibly
including fallback sequences for characters not representable in the output.
- public string convert_with_iconv (string str, ssize_t len, IConv converter, out size_t bytes_read = null, out size_t bytes_written = null) throws ConvertError
Converts a string from one character set to another.
- public void critical (string format, ...)
- public unowned string dcgettext (string? domain, string msgid, int category)
This is a variant of
dgettext that allows specifying a locale category instead of always using `LC_MESSAGES`.
- public void debug (string format, ...)
- public void debug_here ()
- public unowned string dgettext (string? domain, string msgid)
This function is a wrapper of dgettext
which does not translate the message if the default domain as set with textdomain
has no translations for the current locale.
- public unowned string dngettext (string? domain, string msgid, string msgid_plural, ulong n)
This function is a wrapper of dngettext
which does not
translate the message if the default domain as set with textdomain has no
translations for the current locale.
- public unowned string dpgettext (string? domain, string msgctxid, size_t msgidoffset)
This function is a variant of
dgettext which supports a disambiguating message context.
- public unowned string dpgettext2 (string? domain, string context, string msgid)
This function is a variant of
dgettext which supports a disambiguating message context.
- public void error (string format, ...)
- public string format_size (uint64 size, FormatSizeFlags flags = DEFAULT)
Formats a size.
- public string format_size_for_display (int64 size)
Formats a size (for example the size of a file) into a human readable
string.
- public void free (void* mem)
- public bool get_charset (out unowned string charset)
Obtains the character set for the current locale; you might use
this character set as an argument to convert, to convert from the current locale's
encoding to some other encoding.
- public bool get_console_charset (out unowned string[] charsets)
Obtains the character set used by the console attached to the process,
which is suitable for printing output to the terminal.
- public bool get_filename_charsets (out unowned string[] charsets)
Determines the preferred character sets used for filenames.
- public int64 get_monotonic_time ()
Queries the system monotonic time.
- public uint get_num_processors ()
Determine the approximate number of threads that the system will
schedule simultaneously for this process.
- public int64 get_real_time ()
Queries the system wall-clock time.
- public unowned string gettext (string str)
- public void info (string format, ...)
- public bool likely (bool expression)
- public void log (string? log_domain, LogLevelFlags log_level, string format, ...)
Logs an error or debugging message.
- public void log_structured (string? log_domain, LogLevelFlags log_levels, ...)
Log a message with structured data.
- public void log_structured_array (LogLevelFlags log_levels, LogField[] fields)
Log a message with structured data.
- public void log_variant (string? log_domain, LogLevelFlags log_levels, Variant fields)
Log a message with structured data, accepting the data within a
Variant.
- public void logv (string? log_domain, LogLevelFlags log_level, string format, va_list args)
Logs an error or debugging message.
- public void* malloc (size_t n_bytes)
Allocates n_bytes
bytes of memory.
- public void* malloc0 (size_t n_bytes)
Allocates n_bytes
bytes of memory, initialized to 0's.
- public bool mem_is_system_malloc ()
Checks whether the allocator used by
malloc is the system's malloc implementation.
- public void mem_profile ()
GLib used to support some tools for memory profiling, but this no
longer works.
- public void mem_set_vtable (MemVTable vtable)
This function used to let you override the memory allocation function.
- public void message (string format, ...)
- public unowned string ngettext (string msgid, string msgid_plural, ulong n)
- public void on_error_query (string? prg_name = null)
Prompts the user with `[E]xit, [H]alt, show [S]tack trace or [P]
roceed`.
- public void on_error_stack_trace (string? prg_name = null)
Invokes gdb, which attaches to the current process and shows a stack
trace.
- public uint parse_debug_string (string? debug_string, DebugKey[] keys)
Parses a string containing debugging options into a
guint containing bit flags.
- public int poll (PollFD[] fds, int timeout)
Polls fds
, as with the poll
system call, but portably.
- public void print (string format, ...)
Outputs a formatted message via the print handler.
- public void printerr (string format, ...)
Outputs a formatted message via the error message handler.
- public void qsort_with_data<T> (T[] elems, size_t size, CompareDataFunc<T> compare_func)
- public void* realloc (void* mem, size_t n_bytes)
Reallocates the memory pointed to by mem
, so that it now
has space for n_bytes
bytes of memory.
- public void return_if_fail (bool expr)
- public void return_if_reached ()
- public void return_val_if_fail (bool expr, ...)
- public void return_val_if_reached (...)
- public void set_print_handler (PrintFunc func)
Sets the print handler.
- public void set_printerr_handler (PrintFunc func)
Sets the handler for printing error messages.
- public void static_assert (bool expression)
- public string strdup (string str)
Duplicates a string.
- public string[] strdupv (string[] str_array)
Copies null-terminated array of
strings.
- public unowned string strerror (int errnum)
Returns a string corresponding to the given error code, e.
- public void strfreev (unowned string** str_array)
Frees a null-terminated array of
strings, as well as each string it contains.
- public unowned string strsignal (int signum)
Returns a string describing the given signal, e.
- public bool strv_contains (string[] str_array, string str)
Checks if strv
contains str
.
- public uint strv_length (string[] str_array)
Returns the length of the given null
-terminated string array str_array
.
- public void* try_malloc (size_t n_bytes)
Attempts to allocate n_bytes
, and returns
null on failure.
- public void* try_malloc0 (size_t n_bytes)
Attempts to allocate n_bytes
, initialized to 0's, and
returns null on failure.
- public void* try_realloc (void* mem, size_t n_bytes)
Attempts to realloc mem
to a new size, n_bytes
, and returns null on failure.
- public bool unlikely (bool expression)
- public void warn_if_fail (bool expr)
- public void warn_if_reached ()
- public void warning (string format, ...)
- public void warning_once (string format, ...)