- 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)
Specifies the type of the function passed to
Completion.
- public delegate int CompletionStrncmpFunc (string s1, string s2, size_t n)
Specifies the type of the function passed to
g_completion_set_compare.
- 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)
Specifies the type of the function passed to [func@GLib.
- public delegate uint HashFunc<K> (K key)
Specifies the type of the hash function which is passed to [
func@HashTable.
- public delegate bool IOFunc (IOChannel source, IOCondition condition)
- 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 [func@GLib.
- public delegate void 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 void free_sized (void* mem, size_t size)
Frees the memory pointed to by mem, assuming it is has
the given size.
- public bool get_charset (out unowned string charset)
Obtains the character set for the [current locale](running.
- public bool get_console_charset (out unowned string charset)
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 in microseconds.
- 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 [
type@GLib.
- 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 to func, or resets it to the
default GLib handler if `NULL`.
- public void set_printerr_handler (PrintFunc func)
Sets the handler for printing error messages to func,
or resets it to the default GLib handler if `NULL`.
- public void static_assert (bool expression)
- public string strdup (string str)
Duplicates a string.
- public string[] strdupv (string[] str_array)
Copies an array of strings.
- public unowned string strerror (int errnum)
Returns a string corresponding to the given error code, e.
- public void strfreev (owned string[] str_array)
Frees an 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 an array of strings contains the string str
according to [func@GLib.
- public uint strv_length (string[] str_array)
Returns the length of an array of strings.
- 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, ...)
- public double acos (double x)
Calculates the arc cosine of x.
- public float acosf (float x)
Calculates the arc cosine of x.
- public double acosh (double x)
Calculates the inverse hyperbolic cosine of x.
- public float acoshf (float x)
Calculates the inverse hyperbolic cosine of x.
- public double asin (double x)
Calculates the arc sine of x.
- public float asinf (float x)
Calculates the arc sine of x.
- public double asinh (double x)
Returns the inverse hyperbolic sine of x, that is the
value whose hyperbolic sine is x.
- public float asinhf (float x)
Returns the inverse hyperbolic sine of x, that is the
value whose hyperbolic sine is x.
- public double atan (double x)
Calculates the arc tangent of x.
- public double atan2 (double y, double x)
Calculates the arc tangent of the two variables x and
y.
- public float atan2f (float y, float x)
Calculates the arc tangent of the two variables x and
y.
- public float atanf (float x)
Calculates the arc tangent of x.
- public double atanh (double x)
Returns the inverse hyperbolic tangent of x.
- public float atanhf (float x)
Returns the inverse hyperbolic tangent of x.
- public double cbrt (double x)
Returns the (real) cube root of x.
- public float cbrtf (float x)
Returns the (real) cube root of x.
- public double ceil (double x)
Rounds x up to the nearest integer.
- public float ceilf (float x)
Rounds x up to the nearest integer.
- public double copysign (double x, double y)
Returns a value whose absolute value matches that of x,
but whose sign bit matches that of y.
- public float copysignf (float x, float y)
Returns a value whose absolute value matches that of x,
but whose sign bit matches that of y.
- public double cos (double x)
Returns the cosine of x.
- public float cosf (float x)
Returns the cosine of x.
- public double cosh (double x)
Returns the hyperbolic cosine of x.
- public float coshf (float x)
Returns the hyperbolic cosine of x.
- public double drem (double x, double y)
Computes the remainder of dividing x by y.
- public float dremf (float x, float y)
Computes the remainder of dividing x by y.
- public double erf (double x0)
Returns the error function of x0.
- public double erfc (double x0)
Returns the complementary error function of x0, that is
1.0 - erf(x0).
- public float erfcf (float x0)
Returns the complementary error function of x0, that is
1.0 - erf(x0).
- public float erff (float x0)
Returns the error function of x0.
- public double exp (double x)
Returns the value of the base of natural logarithms raised to the
power of x.
- public double exp10 (double x)
Returns the value of 10 raised to the power of x.
- public float exp10f (float x)
Returns the value of 10 raised to the power of x.
- public double exp2 (double x)
Returns the value of 2 raised to the power of x.
- public float exp2f (float x)
Returns the value of 2 raised to the power of x.
- public float expf (float x)
Returns the value of the base of natural logarithms raised to the
power of x.
- public double expm1 (double x)
Returns a value equivalent to exp(x) - 1.
- public float expm1f (float x)
Returns a value equivalent to exp(x) - 1.
- public double fabs (double x)
Returns the absolute value.
- public float fabsf (float x)
Returns the absolute value.
- public double fdim (double x, double y)
Returns max(x - y, 0).
- public float fdimf (float x, float y)
Returns max(x - y, 0).
- public int finite (double value)
Returns the value of not-a-number (NaN) checking.
- public int finitef (float value)
Returns the value of not-a-number (
float.NAN) checking.
- public double floor (double x)
Rounds x down to the nearest integer.
- public float floorf (float x)
Rounds x down to the nearest integer.
- public double fma (double x, double y, double z)
Computes x * y + z.
- public float fmaf (float x, float y, float z)
Computes x * y + z.
- public double fmax (double x, double y)
Returns the larger value of x and y.
- public float fmaxf (float x, float y)
Returns the larger value of x and y.
- public double fmin (double x, double y)
Returns the smaller value of x and y.
- public float fminf (float x, float y)
Returns the smaller value of x and y.
- public double fmod (double x, double y)
Computes the remainder of dividing x by y.
- public float fmodf (float x, float y)
Computes the remainder of dividing x by y.
- public double frexp (double x, out int exponent)
Split the number x into a normalized fraction and an
exponent.
- public float frexpf (float x, out int exponent)
Split the number x into a normalized fraction and an
exponent.
- public double gamma (double x0)
Computes the natural logarithm of the Gamma function.
- public float gammaf (float x0)
Computes the natural logarithm of the Gamma function.
- public double hypot (double x, double y)
Returns the length of the hypotenuse of a right-angle triangle with
sides of length x and y, or the distance of the point (x,y) from the origin.
- public float hypotf (float x, float y)
Returns the length of the hypotenuse of a right-angle triangle.
- public int ilogb (double x)
Returns the exponent part of their argument as a signed integer.
- public int ilogbf (float x)
Returns the exponent part of their argument as a signed integer.
- public int isinf (double value)
- public int isinff (float value)
Returns the value of infinity checking.
- public int isnan (double value)
- public int isnanf (float value)
Returns a non-zero value if value is not-a-number (
float.NAN).
- public double j0 (double x0)
Returns Bessel function of x0 of the first kind of
order 0.
- public float j0f (float x0)
Returns Bessel function of x0 of the first kind of
order 0.
- public double j1 (double x0)
Returns Bessel function of x0 of the first kind of
order 1.
- public float j1f (float x0)
Returns Bessel function of x0 of the first kind of
order 1.
- public double jn (int x0, double x1)
Returns Bessel function of x of the first kind of order
n.
- public float jnf (int x0, float x1)
Returns Bessel function of x of the first kind of order
n.
- public double ldexp (double x, int exponent)
Returns the result of multiplying the floating-point number x
by 2 raised to the power exponent.
- public float ldexpf (float x, int exponent)
Returns the result of multiplying the floating-point number x
by 2 raised to the power exponent.
- public double lgamma (double x0)
Returns the natural logarithm of the absolute value of the Gamma
function.
- public double lgamma_r (double x0, out int signgamp)
Returns the natural logarithm of the absolute value of the Gamma
function.
- public float lgamma_rf (float x0, out int signgamp)
Returns the natural logarithm of the absolute value of the Gamma
function.
- public float lgammaf (float x0)
Returns the natural logarithm of the absolute value of the Gamma
function.
- public int64 llrint (double x)
Rounds it's argument to the nearest integer value, using the current
rounding direction.
- public int64 llrintf (float x)
Rounds it's argument to the nearest integer value, using the current
rounding direction.
- public int64 llround (double x)
Rounds it's argument to the nearest integer value, rounding away
from zero, regardless of the current rounding direction.
- public int64 llroundf (float x)
Rounds it's argument to the nearest integer value, rounding away
from zero, regardless of the current rounding direction.
- public double log (double x)
Returns the natural logarithm of x.
- public double log10 (double x)
Returns the base 10 logarithm of x.
- public float log10f (float x)
Returns the base 10 logarithm of x.
- public double log1p (double x)
Returns a value equivalent to log(1 + x).
- public float log1pf (float x)
Returns a value equivalent to log(1 + x).
- public double log2 (double x)
Returns the base 2 logarithm of x.
- public float log2f (float x)
Returns the base 2 logarithm of x.
- public double logb (double x)
Extracts the exponent of x and returns it as a floating
-point value.
- public float logbf (float x)
Extracts the exponent of x and returns it as a floating-point value.
- public float logf (float x)
Returns the natural logarithm of x.
- public long lrint (double x)
Rounds it's argument to the nearest integer value, using the current
rounding direction.
- public long lrintf (float x)
Rounds it's argument to the nearest integer value, using the current
rounding direction.
- public long lround (double x)
Rounds it's argument to the nearest integer value, rounding away
from zero, regardless of the current rounding direction.
- public long lroundf (float x)
Rounds it's argument to the nearest integer value, rounding away
from zero, regardless of the current rounding direction.
- public double modf (double x, out double iptr)
Breaks the argument x into an integral part and a
fractional part, each of which has the same sign as x.
- public float modff (float x, out float iptr)
Breaks the argument x into an integral part and a
fractional part. each of which has the same sign as x.
- public double nan (string tagb)
Returns a representation (determined by tagb) of a
quiet double.NAN.
- public float nanf (string tagb)
Returns a representation (determined by tag) of a quiet
float.NAN.
- public double nearbyint (double x)
Rounds argument x to an integer value in floating point
format, using the current rounding direction and without raising the inexact exception.
- public float nearbyintf (float x)
Rounds argument x to an integer value in floating point
format, using the current rounding direction and without raising the inexact exception.
- public double nextafter (double x, double y)
Returns the next representable neighbor of x in the
direction towards y.
- public float nextafterf (float x, float y)
Returns the next representable neighbor of x in the
direction towards y.
- public double nexttoward (double x, double y)
- public float nexttowardf (float x, double y)
- public double pow (double x, double y)
Returns the value of x raised to the power of y
.
- public double pow10 (double x)
Returns the value of 10 raised to the power of x.
- public float pow10f (float x)
Returns the value of 10 raised to the power of x.
- public float powf (float x, float y)
Returns the value of x raised to the power of y
.
- public double remainder (double x, double y)
Computes the remainder of dividing x by y.
- public float remainderf (float x, float y)
Computes the remainder of dividing x by y.
- public double remquo (double x, double y, out int quo)
Computes the remainder and part of the quotient upon division of
x by y.
- public float remquof (float x, float y, out int quo)
Computes the remainder and part of the quotient upon division of
x by y.
- public double rint (double x)
Rounds it's argument to an integer value in floating point format,
using the current rounding direction and with raising the inexact exception.
- public float rintf (float x)
Rounds it's argument to an integer value in floating point format.
using the current rounding direction and with raising the inexact exception.
- public double round (double x)
Rounds argument x to the nearest integer, but round
halfway cases away from zero, (regardless of the current rounding direction), instead of to the nearest even integer like rint.
- public float roundf (float x)
Rounds argument x to the nearest integer, but round
halfway cases away from zero (regardless of the current rounding direction), instead of to the nearest even integer like rint.
- public double scalb (double x, double n)
Multiplies x by 2 to the power n.
- public float scalbf (float x, float n)
Multiplies x by 2 to the power n.
- public double scalbln (double x, long n)
- public float scalblnf (float x, long n)
- public double scalbn (double x, int n)
Multiplies it's first argument x by 2 to the power
n.
- public float scalbnf (float x, int n)
Multiplies it's first argument x by 2 to the power
n.
- public double significand (double x)
Returns the mantissa of x scaled to the range
[1,2].
- public float significandf (float x)
Returns the mantissa of x scaled to the range
[1,2].
- public double sin (double x)
Returns the sine of x.
- public void sincos (double x, out double sinx, out double cosx)
computes both sine and cosine of x at the same time.
- public void sincosf (float x, out float sinx, out float cosx)
Computes both sine and cosine of x at the same time.
- public float sinf (float x)
Returns the sine of x, where x is given in
radians.
- public double sinh (double x)
Returns the hyperbolic sine of x.
- public float sinhf (float x)
returns the hyperbolic sine of x.
- public double sqrt (double x)
Returns the non-negative square root of x.
- public float sqrtf (float x)
Returns the non-negative square root of x.
- public double tan (double x)
Returns the tangent of x, where x is given
in radians.
- public float tanf (float x)
Returns the tangent of x.
- public double tanh (double x)
returns the hyperbolic tangent of x.
- public float tanhf (float x)
Returns the hyperbolic tangent of x.
- public double tgamma (double x0)
Returns the value of Gamma function for the argument x0
.
- public float tgammaf (float x0)
Returns the value of Gamma function for the argument x0
.
- public double trunc (double x)
Rounds argument x to the nearest integer not larger in
absolute value.
- public float truncf (float x)
Rounds argument x to the nearest integer not larger in
absolute value.
- public double y0 (double x0)
Returns Bessel function of x0 of the second kind of
order 0.
- public float y0f (float x0)
Returns Bessel function of x0 of the second kind of order 0.
- public double y1 (double x0)
Returns Bessel function of x0 of the second kind of
order 1.
- public float y1f (float x0)
Returns Bessel function of x0 of the second kind of
order 1.
- public double yn (int x0, double x1)
Returns Bessel function of x1 of the second kind of
order x0.
- public float ynf (int x0, float x1)
Returns Bessel function of x1 of the second kind of
order x0.
- public void add (string testpath, void* fixture, TestFixtureFunc fsetup, TestFixtureFunc ftest, TestFixtureFunc fteardown)
- public void add_data_func (string testpath, owned TestDataFunc test_funcvoid)
Creates a new test case.
- public void add_data_func_full (string testpath, owned TestDataFunc test_func)
Creates a new test case.
- public void add_func (string testpath, owned TestFunc test_funcvoid)
Creates a new test case.
- public void assert_expected_messages ()
- public void bug (string bug_uri_snippet)
Adds a message to test reports that associates a bug URI with a test
case.
- public void bug_base (string uri_pattern)
Specifies the base URI for bug reports.
- public string build_filename (FileType file_type, string[] path_segments)
Creates the pathname to a data file that is required for a test.
- public void disable_crash_reporting ()
Attempts to disable system crash reporting infrastructure.
- public void expect_message (string? log_domain, LogLevelFlags log_level, string pattern)
Indicates that a message with the given log_domain and
log_level, with text matching pattern, is expected to be logged.
- public void fail ()
Indicates that a test failed.
- public void fail_printf (string format, ...)
Indicates that a test failed and records a message.
- public bool failed ()
Returns whether a test has already failed.
- public unowned string get_dir (FileType file_type)
Gets the pathname of the directory containing test files of the type
specified by file_type.
- public unowned string get_filename (FileType file_type, string[] path_segments)
Gets the pathname to a data file that is required for a test.
- public unowned string get_path ()
Gets the test path for the test currently being run.
- public void incomplete (string? msg = null)
Indicates that a test failed because of some incomplete
functionality.
- public void incomplete_printf (string format, ...)
Indicates that a test failed because of some incomplete
functionality.
- public void init (ref unowned string[] args, ...)
Initializes the GLib testing framework.
- public bool initialized ()
- public void log_set_fatal_handler (LogFatalFunc log_func)
Installs a non-error fatal log handler which can be used to decide
whether log messages which are counted as fatal abort the program.
- public void maximized_result (double maximized_quantity, string format, ...)
Reports the result of a performance or measurement test.
- public void message (string format, ...)
Adds a message to the test report.
- public void minimized_result (double minimized_quantity, string format, ...)
Reports the result of a performance or measurement test.
- public bool perf ()
- public bool quick ()
- public bool quiet ()
- public bool rand_bit ()
- public double rand_double ()
Gets a reproducible random floating point number.
- public double rand_double_range (double begin, double end)
Gets a reproducible random floating point number out of a specified
range.
- public int32 rand_int ()
Gets a reproducible random integer number.
- public int32 rand_int_range (int32 begin, int32 end)
Gets a reproducible random integer number out of a specified range.
- public int run ()
Runs all tests under the toplevel suite.
- public void set_nonfatal_assertions ()
Changes the behaviour of the various assertion macros.
- public void skip (string? msg = null)
Indicates that a test was skipped.
- public void skip_printf (string format, ...)
Indicates that a test was skipped.
- public bool slow ()
- public bool subprocess ()
Returns true if the test program is running under [func@GLib.
- public void summary (string summary)
Sets the summary for a test.
- public bool thorough ()
- public double timer_elapsed ()
Gets the number of seconds since the last start of the timer with [
func@GLib.
- public double timer_last ()
Reports the last result of [func@GLib.
- public void timer_start ()
Starts a timing test.
- public void trap_assert_failed ()
- public void trap_assert_passed ()
- public void trap_assert_stderr (string serrpattern)
- public void trap_assert_stderr_unmatched (string serrpattern)
- public void trap_assert_stdout (string soutpattern)
- public void trap_assert_stdout_unmatched (string soutpattern)
- public bool trap_fork (uint64 usec_timeout, TestTrapFlags test_trap_flags)
Forks the current test program to execute a test case that might not
return or that might abort.
- public bool trap_has_passed ()
Checks the result of the last [func@GLib.
- public bool trap_reached_timeout ()
Checks the result of the last [func@GLib.
- public void trap_subprocess (string? test_path, uint64 usec_timeout, TestSubprocessFlags test_flags)
Respawns the test program to run only test_path in a
subprocess.
- public bool verbose ()