Method
GIRepositoryFunctionInfoinvoke
since: 2.80
Declaration
gboolean
gi_function_info_invoke (
GIFunctionInfo* info,
const GIArgument* in_args,
size_t n_in_args,
GIArgument* out_args,
size_t n_out_args,
GIArgument* return_value,
GError** error
)
Description
Invokes the function described in info with the given arguments.
Note that ‘inout’ parameters must appear in both argument lists. This
function uses dlsym() to obtain a pointer to the function,
so the library or shared object containing the described function must either
be linked to the caller, or must have been loaded with
g_module_symbol() before calling this function.
Available since: 2.80
This method is not directly available to language bindings.
Parameters
in_args-
Type: An array of
GIArgumentAn array of
GIArguments, one for each ‘in’ parameter ofinfo. If there are no ‘in’ parameters,in_argscan beNULL.The argument can be NULL.The length of the array is specified in the n_in_argsargument.The data is owned by the caller of the method. n_in_args-
Type:
size_tThe length of the
in_argsarray. out_args-
Type: An array of
GIArgumentAn array of
GIArguments, one for each ‘out’ parameter ofinfo. If there are no ‘out’ parameters,out_argsmay beNULL.The argument can be NULL.The length of the array is specified in the n_out_argsargument.The data is owned by the caller of the method. n_out_args-
Type:
size_tThe length of the
out_argsarray. return_value-
Type:
GIArgumentReturn location for the return value of the function.
The argument will be set by the function. The returned data is owned by the instance. error-
Type:
GError **The return location for a recoverable error.
The argument can be NULL.If the return location is not NULL, then you must initialize it to aNULLGError*.The argument will be left initialized to NULLby the method if there are no errors.In case of error, the argument will be set to a newly allocated GError; the caller will take ownership of the data, and be responsible for freeing it.