The micro version number of the girepository library.
The minor version number of the girepository library.
TODO
Obtain the index of the user data argument. This is only valid for arguments which are callbacks.
a #GIArgInfo
Obtains the index of the #GDestroyNotify argument. This is only valid for arguments which are callbacks.
a #GIArgInfo
Obtain the direction of the argument. Check #GIDirection for possible direction values.
a #GIArgInfo
Obtain the ownership transfer for this argument. #GITransfer contains a list of possible values.
a #GIArgInfo
Obtain the type information for info
.
a #GIArgInfo
Obtain if the argument is a pointer to a struct or object that will receive an output of a function. The default assumption for %GI_DIRECTION_OUT arguments which have allocation is that the callee allocates; if this is %TRUE, then the caller must allocate.
a #GIArgInfo
Obtain if the argument is optional. For 'out' arguments this means that you can pass %NULL in order to ignore the result.
a #GIArgInfo
Obtain if the argument is a return value. It can either be a parameter or a return value.
a #GIArgInfo
Obtain if an argument is only useful in C.
a #GIArgInfo
Obtain information about a the type of given argument info;
this
function is a variant of g_arg_info_get_type() designed for stack
allocation.
The initialized type
must not be referenced after info
is deallocated.
a #GIArgInfo
Obtain if the type of the argument includes the possibility of %NULL. For 'in' values this means that %NULL is a valid value. For 'out' values, this means that %NULL may be returned.
See also g_arg_info_is_optional().
a #GIArgInfo
TODO
a #GICallableInfo
See whether the caller owns the return value of this callable. #GITransfer contains a list of possible transfer values.
a #GICallableInfo
Obtains the ownership transfer for the instance argument. #GITransfer contains a list of possible transfer values.
a #GICallableInfo
Obtain the number of arguments (both IN and OUT) for this callable.
a #GICallableInfo
Retrieve an arbitrary attribute associated with the return value.
a #GICallableInfo
a freeform string naming an attribute
Obtain the return type of a callable item as a #GITypeInfo.
a #GICallableInfo
TODO
TODO
TODO
TODO
TODO
TODO
TODO
TODO
Determines if the callable info is a method. For #GIVFuncInfos, #GICallbackInfos, and #GISignalInfos, this is always true. Otherwise, this looks at the %GI_FUNCTION_IS_METHOD flag on the #GIFunctionInfo.
Concretely, this function returns whether g_callable_info_get_n_args() matches the number of arguments in the raw C method. For methods, there is one more C argument than is exposed by introspection: the "self" or "this" object.
a #GICallableInfo
Iterate over all attributes associated with the return value. The iterator structure is typically stack allocated, and must have its first member initialized to %NULL.
Both the name
and value
should be treated as constants
and must not be freed.
See g_base_info_iterate_attributes() for an example of how to use a similar API.
a #GICallableInfo
a #GIAttributeIter structure, must be initialized; see below
Obtain information about a particular argument of this callable; this function is a variant of g_callable_info_get_arg() designed for stack allocation.
The initialized arg
must not be referenced after info
is deallocated.
a #GICallableInfo
the argument index to fetch
Obtain information about a return value of callable; this function is a variant of g_callable_info_get_return_type() designed for stack allocation.
The initialized type
must not be referenced after info
is deallocated.
a #GICallableInfo
See if a callable could return %NULL.
a #GICallableInfo
See if a callable's return value is only useful in C.
a #GICallableInfo
Obtain the type of the constant as a #GITypeInfo.
a #GIConstantInfo
Obtain the string form of the quark for the error domain associated with this enum, if any.
a #GIEnumInfo
Obtain an enum type method at index n
.
a #GIEnumInfo
index of method to get
Obtain the number of methods that this enum type has.
a #GIEnumInfo
Obtain the number of values this enumeration contains.
a #GIEnumInfo
Obtain the tag of the type used for the enum in the C ABI. This will will be a signed or unsigned integral type.
Note that in the current implementation the width of the type is computed correctly, but the signed or unsigned nature of the type may not match the sign of the type used by the C compiler.
a #GIEnumInfo
Obtain the flags for this #GIFieldInfo. See #GIFieldInfoFlags for possible flag values.
a #GIFieldInfo
Obtain the offset in bytes of the field member, this is relative to the beginning of the struct or union.
a #GIFieldInfo
Obtain the size in bits of the field member, this is how much space you need to allocate to store the field.
a #GIFieldInfo
Obtain the type of a field as a #GITypeInfo.
a #GIFieldInfo
Obtain the #GIFunctionInfoFlags for the info
.
a #GIFunctionInfo
Obtain the property associated with this #GIFunctionInfo. Only #GIFunctionInfo with the flag %GI_FUNCTION_IS_GETTER or %GI_FUNCTION_IS_SETTER have a property set. For other cases, %NULL will be returned.
a #GIFunctionInfo
Obtain the symbol of the function. The symbol is the name of the exported function, suitable to be used as an argument to g_module_symbol().
a #GIFunctionInfo
Returns the major version number of the girepository library. (e.g. in version 1.58.2 this is 1.)
Returns the micro version number of the girepository library. (e.g. in version 1.58.2 this is 2.)
Returns the minor version number of the girepository library. (e.g. in version 1.58.2 this is 58.)
Obtain a string representation of type
the info type
Obtain a method of the interface type given a name
. %NULL will be
returned if there's no method available with that name.
a #GIInterfaceInfo
name of method to obtain
TODO
a #GIInterfaceInfo
Name of signal
Obtain an interface type constant at index n
.
a #GIInterfaceInfo
index of constant to get
Returns the layout C structure associated with this #GInterface.
a #GIInterfaceInfo
Obtain an interface type method at index n
.
a #GIInterfaceInfo
index of method to get
Obtain the number of constants that this interface type has.
a #GIInterfaceInfo
Obtain the number of methods that this interface type has.
a #GIInterfaceInfo
Obtain the number of prerequisites for this interface type. A prerequisites is another interface that needs to be implemented for interface, similar to an base class for GObjects.
a #GIInterfaceInfo
Obtain the number of properties that this interface type has.
a #GIInterfaceInfo
Obtain the number of signals that this interface type has.
a #GIInterfaceInfo
Obtain the number of virtual functions that this interface type has.
a #GIInterfaceInfo
Obtain an interface type property at index n
.
a #GIInterfaceInfo
index of property to get
Obtain an interface type signal at index n
.
a #GIInterfaceInfo
index of signal to get
TODO
Obtain a method of the object type given a name
. %NULL will be
returned if there's no method available with that name.
a #GIObjectInfo
name of method to obtain
Obtain a method of the object given a name,
searching both the
object info
and any interfaces it implements. %NULL will be
returned if there's no method available with that name.
Note that this function does not search parent classes; you will have to chain up if that's desired.
a #GIObjectInfo
name of method to obtain
TODO
a #GIObjectInfo
Name of signal
Locate a virtual function slot with name name
. Note that the namespace
for virtuals is distinct from that of methods; there may or may not be
a concrete method associated for a virtual. If there is one, it may
be retrieved using g_vfunc_info_get_invoker(), otherwise %NULL will be
returned.
See the documentation for g_vfunc_info_get_invoker() for more
information on invoking virtuals.
a #GIObjectInfo
The name of a virtual function to find.
Locate a virtual function slot with name name,
searching both the object
info
and any interfaces it implements. Note that the namespace for
virtuals is distinct from that of methods; there may or may not be a
concrete method associated for a virtual. If there is one, it may be
retrieved using g_vfunc_info_get_invoker(), otherwise %NULL will be
returned.
Note that this function does not search parent classes; you will have to chain up if that's desired.
a #GIObjectInfo
name of vfunc to obtain
Obtain if the object type is an abstract type, eg if it cannot be instantiated
a #GIObjectInfo
Every #GObject has two structures; an instance structure and a class structure. This function returns the metadata for the class structure.
a #GIObjectInfo
Obtain an object type constant at index n
.
a #GIObjectInfo
index of constant to get
Checks whether the object type is a final type, i.e. if it cannot be derived
a #GIObjectInfo
Obtain if the object type is of a fundamental type which is not G_TYPE_OBJECT. This is mostly for supporting GstMiniObject.
a #GIObjectInfo
Obtain the symbol name of the function that should be called to convert an object instance pointer of this object type to a GValue. I's mainly used fundamental types. The type signature for the symbol is %GIObjectInfoGetValueFunction, to fetch the function pointer see g_object_info_get_get_value_function().
a #GIObjectInfo
Obtain an object type interface at index n
.
a #GIObjectInfo
index of interface to get
Obtain an object type method at index n
.
a #GIObjectInfo
index of method to get
Obtain the number of constants that this object type has.
a #GIObjectInfo
Obtain the number of fields that this object type has.
a #GIObjectInfo
Obtain the number of interfaces that this object type has.
a #GIObjectInfo
Obtain the number of methods that this object type has.
a #GIObjectInfo
Obtain the number of properties that this object type has.
a #GIObjectInfo
Obtain the number of signals that this object type has.
a #GIObjectInfo
Obtain the number of virtual functions that this object type has.
a #GIObjectInfo
Obtain the parent of the object type.
a #GIObjectInfo
Obtain an object type property at index n
.
a #GIObjectInfo
index of property to get
Obtain the symbol name of the function that should be called to ref this object type. It's mainly used fundamental types. The type signature for the symbol is %GIObjectInfoRefFunction, to fetch the function pointer see g_object_info_get_ref_function().
a #GIObjectInfo
Obtain the symbol name of the function that should be called to convert set a GValue giving an object instance pointer of this object type. I's mainly used fundamental types. The type signature for the symbol is %GIObjectInfoSetValueFunction, to fetch the function pointer see g_object_info_get_set_value_function().
a #GIObjectInfo
Obtain an object type signal at index n
.
a #GIObjectInfo
index of signal to get
Obtain the function which when called will return the GType function for which this object type is registered.
a #GIObjectInfo
Obtain the name of the objects class/type.
a #GIObjectInfo
Obtain the symbol name of the function that should be called to unref this object type. It's mainly used fundamental types. The type signature for the symbol is %GIObjectInfoUnrefFunction, to fetch the function pointer see g_object_info_get_unref_function().
a #GIObjectInfo
Obtain the flags for this property info. See #GParamFlags for more information about possible flag values.
a #GIPropertyInfo
Obtains the getter function associated with this #GIPropertyInfo.
The setter is only available for %G_PARAM_READABLE properties.
a #GIPropertyInfo
Obtain the ownership transfer for this property. See #GITransfer for more information about transfer values.
a #GIPropertyInfo
Obtains the setter function associated with this #GIPropertyInfo.
The setter is only available for %G_PARAM_WRITABLE properties that are also not %G_PARAM_CONSTRUCT_ONLY.
a #GIPropertyInfo
Obtain the type information for the property info
.
a #GIPropertyInfo
Obtain the #GType for this registered type or G_TYPE_NONE which a special meaning.
It means that either there is no type information associated with this info
or
that the shared library which provides the type_init function for this
info
cannot be called.
a #GIRegisteredTypeInfo
Obtain the type init function for info
. The type init function is the
function which will register the GType within the GObject type system.
Usually this is not called by langauge bindings or applications, use
g_registered_type_info_get_g_type() directly instead.
a #GIRegisteredTypeInfo
Obtain the type name of the struct within the GObject type system. This type can be passed to g_type_name() to get a #GType.
a #GIRegisteredTypeInfo
Obtain the flags for this signal info. See #GSignalFlags for more information about possible flag values.
a #GISignalInfo
Obtain if the returning true in the signal handler will stop the emission of the signal.
a #GISignalInfo
Obtain the type information for method named name
.
a #GIStructInfo
a method name
Obtain the required alignment of the structure.
a #GIStructInfo
Obtain the type information for method with specified index.
a #GIStructInfo
a method index
Obtain the number of fields this structure has.
a #GIStructInfo
Obtain the number of methods this structure has.
a #GIStructInfo
Obtain the total size of the structure.
a #GIStructInfo
TODO
TODO
Return true if this structure represents the "class structure" for some #GObject or #GInterface. This function is mainly useful to hide this kind of structure from generated public APIs.
a #GIStructInfo
GLib data structures, such as #GList, #GSList, and #GHashTable, all store data pointers. In the case where the list or hash table is storing single types rather than structs, these data pointers may have values stuffed into them via macros such as %GPOINTER_TO_INT.
Use this function to ensure that all values are correctly extracted from stuffed pointers, regardless of the machine's architecture or endianness.
This function fills in the appropriate field of arg
with the value extracted
from hash_pointer,
depending on the storage type of info
.
a #GITypeInfo
A pointer, such as a #GHashTable data pointer
A #GIArgument to fill in
Obtain the fixed array size of the type. The type tag must be a #GI_TYPE_TAG_ARRAY or -1 will be returned.
a #GITypeInfo
Obtain the position of the argument which gives the array length of the type. The type tag must be a #GI_TYPE_TAG_ARRAY or -1 will be returned.
a #GITypeInfo
For types which have #GI_TYPE_TAG_INTERFACE such as GObjects and boxed values, this function returns full information about the referenced type. You can then inspect the type of the returned #GIBaseInfo to further query whether it is a concrete GObject, a GInterface, a structure, etc. using g_base_info_get_type().
a #GITypeInfo
Obtain the parameter type n
.
a #GITypeInfo
index of the parameter
GLib data structures, such as #GList, #GSList, and #GHashTable, all store data pointers. In the case where the list or hash table is storing single types rather than structs, these data pointers may have values stuffed into them via macros such as %GPOINTER_TO_INT.
Use this function to ensure that all values are correctly stuffed into pointers, regardless of the machine's architecture or endianness.
This function returns a pointer stuffed with the appropriate field of arg,
depending on the storage type of info
.
a #GITypeInfo
A #GIArgument with the value to stuff into a pointer
Obtain if the type is passed as a reference.
Note that the types of %GI_DIRECTION_OUT and %GI_DIRECTION_INOUT parameters will only be pointers if the underlying type being transferred is a pointer (i.e. only if the type of the C function’s formal parameter is a pointer to a pointer).
a #GITypeInfo
Obtain if the last element of the array is %NULL. The type tag must be a #GI_TYPE_TAG_ARRAY or %FALSE will be returned.
a #GITypeInfo
GLib data structures, such as #GList, #GSList, and #GHashTable, all store data pointers. In the case where the list or hash table is storing single types rather than structs, these data pointers may have values stuffed into them via macros such as %GPOINTER_TO_INT.
Use this function to ensure that all values are correctly extracted from stuffed pointers, regardless of the machine's architecture or endianness.
This function fills in the appropriate field of arg
with the value extracted
from hash_pointer,
depending on storage_type
.
a #GITypeTag obtained from g_type_info_get_storage_type()
A pointer, such as a #GHashTable data pointer
A #GIArgument to fill in
GLib data structures, such as #GList, #GSList, and #GHashTable, all store data pointers. In the case where the list or hash table is storing single types rather than structs, these data pointers may have values stuffed into them via macros such as %GPOINTER_TO_INT.
Use this function to ensure that all values are correctly stuffed into pointers, regardless of the machine's architecture or endianness.
This function returns a pointer stuffed with the appropriate field of arg,
depending on storage_type
.
a #GITypeTag obtained from g_type_info_get_storage_type()
A #GIArgument with the value to stuff into a pointer
Obtain a string representation of type
the type_tag
Obtain the type information for method named name
.
a #GIUnionInfo
a method name
Obtain the required alignment of the union.
a #GIUnionInfo
Obtain discriminator value assigned for n-th union field, i.e. n-th union field is the active one if discriminator contains this constant.
a #GIUnionInfo
a union field index
Returns offset of the discriminator field in the structure.
a #GIUnionInfo
Obtain the type information of the union discriminator.
a #GIUnionInfo
Obtain the type information for method with specified index.
a #GIUnionInfo
a method index
Obtain the number of fields this union has.
a #GIUnionInfo
Obtain the number of methods this union has.
a #GIUnionInfo
Obtain the total size of the union.
a #GIUnionInfo
Return true if this union contains discriminator field.
a #GIUnionInfo
Obtain the enumeration value of the #GIValueInfo.
a #GIValueInfo
Obtain the flags for this virtual function info. See #GIVFuncInfoFlags for more information about possible flag values.
a #GIVFuncInfo
If this virtual function has an associated invoker method, this method will return it. An invoker method is a C entry point.
Not all virtuals will have invokers.
a #GIVFuncInfo
Obtain the offset of the function pointer in the class struct. The value 0xFFFF indicates that the struct offset is unknown.
a #GIVFuncInfo
Obtain the signal for the virtual function if one is set. The signal comes from the object or interface to which this virtual function belongs.
a #GIVFuncInfo
The major version number of the girepository library.