- public delegate int PollFunc (PollFD[] ufds, int timeout_)
- public delegate void ChildWatchFunc (Pid pid, int status)
Prototype of a GChildWatchSource
callback, called when a
child process has exited.
- public delegate void SourceDummyMarshal ()
This is just a placeholder for
ClosureMarshal, which cannot be used here for dependency
reasons.
- public delegate bool SourcePrepareFunc (Source source, out int timeout_)
- public delegate bool SourceCheckFunc (Source source)
- public delegate bool SourceDispatchFunc (Source source, SourceFunc _callback)
- public delegate void SourceFinalizeFunc (Source source)
- public delegate void SourceCallbackRefFunc (void* cb_data)
- public delegate void SourceCallbackUnrefFunc (void* cb_data)
- public delegate void SourceCallbackGetFunc (void* cb_data, Source source, SourceFunc func)
- public delegate bool SourceFunc ()
Specifies the type of function passed to g_timeout_add
,
add_full, g_idle_add
, and
add_full.
- public delegate G ThreadFunc ()
- public delegate void Func (G data)
- public delegate G OnceFunc ()
Specifies the type of the func
functions passed to
g_thread_new
or g_thread_try_new
.
- public delegate void ThreadPoolFunc (owned G data)
- public delegate bool IOFunc (IOChannel source, IOCondition condition)
- public delegate void PrintFunc (string text)
Specifies the type of the print handler functions.
- public delegate void LogFunc (string? log_domain, LogLevelFlags log_levels, string message)
Specifies the prototype of log handler functions.
- 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 VoidFunc ()
Declares a type of function which takes no arguments and has no return
value.
- public delegate void ScannerMsgFunc (Scanner scanner, string message, bool error)
Specifies the type of the message handler function.
- public delegate string CompletionFunc (void* item)
- public delegate int CompletionStrncmpFunc (string s1, string s2, size_t n)
- public delegate void SpawnChildSetupFunc ()
- public delegate void SignalHandlerFunc (int signum)
- 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 OptionParseFunc (OptionContext context, OptionGroup group, void* data) throws OptionError
The type of function that can be called before and after parsing.
- 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 RegexEvalCallback (MatchInfo match_info, StringBuilder result)
- public delegate void MarkupParserStartElementFunc (MarkupParseContext context, string element_name, string[] attribute_names, string[] attribute_values) throws MarkupError
- public delegate void MarkupParserEndElementFunc (MarkupParseContext context, string element_name) throws MarkupError
- public delegate void MarkupParserTextFunc (MarkupParseContext context, string text, size_t text_len) throws MarkupError
- public delegate void MarkupParserPassthroughFunc (MarkupParseContext context, string passthrough_text, size_t text_len) throws MarkupError
- public delegate void MarkupParserErrorFunc (MarkupParseContext context, Error error)
- public delegate bool LogFatalFunc (string? log_domain, LogLevelFlags log_levels, string message)
- public delegate void TestFunc (void* fixture)
The type used for test case functions.
- public delegate void TestDataFunc ()
The type used for test case functions that take an extra pointer
argument.
- public delegate int CompareFunc (G a, G b)
- public delegate int CompareDataFunc (G a, G b)
Specifies the type of a comparison function used to compare two
values.
- public delegate int SearchFunc (G a, T b)
Specifies the type of a comparison function used to compare two
values.
- public delegate int SequenceIterCompareFunc (SequenceIter<G> a, SequenceIter<G> b)
A SequenceIterCompareFunc is a function
used to compare iterators.
- public delegate uint HashFunc (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 EqualFunc (G a, G b)
Specifies the type of a function used to test two values for equality.
- public delegate void HFunc (K key, V value)
Specifies the type of the function passed to
for_each.
- public delegate bool HRFunc (K key, V value)
- public delegate void DestroyNotify (void* data)
Specifies the type of function which is called when a data element is
destroyed.
- public delegate bool NodeTraverseFunc (Node node)
Specifies the type of function passed to
traverse.
- public delegate void NodeForeachFunc (Node node)
- public delegate void DataForeachFunc (Quark key_id, G data)
Specifies the type of function passed to g_dataset_foreach
.
- public delegate bool TraverseFunc (K key, V value)
Specifies the type of function passed to g_tree_traverse
.
- public delegate int TreeSearchFunc (K key)
- public uint get_num_processors ()
Determine the approximate number of threads that the system will
schedule simultaneously for this process.
- 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 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* 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 void free (void* mem)
- public void mem_set_vtable (MemVTable vtable)
Sets the MemVTable to
use for memory allocation.
- public void mem_profile ()
Outputs a summary of memory usage.
- public void print (string format, ...)
Outputs a formatted message via the print handler.
- public void set_print_handler (PrintFunc func)
Sets the print handler.
- public void printerr (string format, ...)
Outputs a formatted message via the error message handler.
- public void set_printerr_handler (PrintFunc func)
Sets the handler for printing error messages.
- public void return_if_fail (bool expr)
- public void return_val_if_fail (bool expr, ...)
- public void return_if_reached ()
- public void return_val_if_reached (...)
- public void warn_if_fail (bool expr)
- public void warn_if_reached ()
- public void assert (bool expr)
- public void assert_false (bool expr)
- public void assert_true (bool expr)
- public void assert_null (void* expr)
- public void assert_nonnull (void* expr)
- public void assert_not_reached ()
- 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 void breakpoint ()
- public void logv (string? log_domain, LogLevelFlags log_level, string format, va_list args)
Logs an error or debugging message.
- public void log (string? log_domain, LogLevelFlags log_level, string format, ...)
Logs an error or debugging message.
- public void message (string format, ...)
- public void warning (string format, ...)
- public void critical (string format, ...)
- public void error (string format, ...)
- public void debug (string format, ...)
- public void info (string format, ...)
- public uint parse_debug_string (string? debug_string, DebugKey[] keys)
Parses a string containing debugging options into a
guint containing bit flags.
- public void strfreev (unowned string** str_array)
Frees a null-terminated
array of strings, and the array itself.
- public uint strv_length (string[] str_array)
Returns the length of the given
null-terminated string array str_array
.
- public bool strv_contains (string[] str_array, string str)
- public unowned string strerror (int errnum)
Returns a string corresponding to the given error code, e.
- 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 bool get_charset (out 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_filename_charsets (out string[] charsets)
Determines the preferred character sets used for filenames.
- public int64 get_monotonic_time ()
Queries the system monotonic time.
- public int64 get_real_time ()
Queries the system wall-clock time.
- public string format_size_for_display (int64 size)
Formats a size (for example the size of a file) into a human readable
string.
- public string format_size (uint64 size, FormatSizeFlags flags = DEFAULT)
Formats a size.
- public unowned string strsignal (int signum)
Returns a string describing the given signal, e.
- public unowned string _ (string str)
- public unowned string Q_ (string str)
- public unowned string N_ (string str)
- public unowned string C_ (string context, string str)
- public unowned string NC_ (string context, string str)
- public unowned string ngettext (string msgid, string msgid_plural, ulong n)
- 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 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 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 bool likely (bool expression)
- public bool unlikely (bool expression)
- public void static_assert (bool expression)
- public void qsort_with_data<T> (T[] elems, size_t size, CompareDataFunc<T> compare_func)