invoke


Description:

public bool invoke (Argument[] in_args, Argument[] out_args, Argument return_value) throws InvokeError

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 g_module_symboled before calling this function.

Parameters:

in_args

an array of Arguments, one for each in parameter of info. If there are no in parameter, in_args can be null

out_args

an array of Arguments, one for each out parameter of info. If there are no out parameters, out_args may be null

return_value

return location for the return value of the function.

info

a FunctionInfo describing the function to invoke

n_in_args

the length of the in_args array

n_out_args

the length of the out_args array

Returns:

true if the function has been invoked, false if an error occurred.




2022 vala-language.org