Top |
GIVFuncInfoFlags | g_vfunc_info_get_flags () |
gint | g_vfunc_info_get_offset () |
GISignalInfo * | g_vfunc_info_get_signal () |
GIFunctionInfo * | g_vfunc_info_get_invoker () |
gpointer | g_vfunc_info_get_address () |
gboolean | g_vfunc_info_invoke () |
GIVfuncInfo represents a virtual function.
A virtual function is a callable object that belongs to either a GIObjectInfo or a GIInterfaceInfo.
GIVFuncInfoFlags
g_vfunc_info_get_flags (GIVFuncInfo *info
);
Obtain the flags for this virtual function info. See GIVFuncInfoFlags for more information about possible flag values.
gint
g_vfunc_info_get_offset (GIVFuncInfo *info
);
Obtain the offset of the function pointer in the class struct. The value 0xFFFF indicates that the struct offset is unknown.
GISignalInfo *
g_vfunc_info_get_signal (GIVFuncInfo *info
);
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.
GIFunctionInfo *
g_vfunc_info_get_invoker (GIVFuncInfo *info
);
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.
gpointer g_vfunc_info_get_address (GIVFuncInfo *info
,GType implementor_gtype
,GError **error
);
This method will look up where inside the type struct of implementor_gtype
is the implementation for info
.
gboolean g_vfunc_info_invoke (GIVFuncInfo *info
,GType implementor
,const GIArgument *in_args
,int n_in_args
,const GIArgument *out_args
,int n_out_args
,GIArgument *return_value
,GError **error
);
Invokes the function described in info
with the given
arguments. Note that inout parameters must appear in both
argument lists.
[skip]
info |
a GIVFuncInfo describing the virtual function to invoke |
|
implementor |
GType of the type that implements this virtual function |
|
in_args |
an array of GIArguments, one for each in
parameter of |
[array length=n_in_args] |
n_in_args |
the length of the |
|
out_args |
an array of GIArguments, one for each out
parameter of |
[array length=n_out_args] |
n_out_args |
the length of the |
|
return_value |
return location for the return value of the
function. If the function returns void, |
|
error |
return location for detailed error information, or |