![]() |
![]() |
![]() |
GObject Introspection Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
typedef GICallableInfo; GITypeInfo * g_callable_info_get_return_type (GICallableInfo *info
); GITransfer g_callable_info_get_caller_owns (GICallableInfo *info
); gboolean g_callable_info_may_return_null (GICallableInfo *info
); gint g_callable_info_get_n_args (GICallableInfo *info
); GIArgInfo * g_callable_info_get_arg (GICallableInfo *info
,gint n
); void g_callable_info_load_arg (GICallableInfo *info
,gint n
,GIArgInfo *arg
); void g_callable_info_load_return_type (GICallableInfo *info
,GITypeInfo *type
);
typedef GIBaseInfo GICallableInfo;
Represents a callable, either GIFunctionInfo, GICallbackInfo or GIVFuncInfo.
GITypeInfo * g_callable_info_get_return_type (GICallableInfo *info
);
Get the return type of a callable item as a GITypeInfo
|
a GICallableInfo |
Returns : |
a GITypeInfo idexing the TypeBlob for the return type of info |
GITransfer g_callable_info_get_caller_owns (GICallableInfo *info
);
See whether the caller owns the return value of this callable.
|
a GICallableInfo |
Returns : |
TRUE if the caller owns the return value, FALSE otherwise. |
gboolean g_callable_info_may_return_null (GICallableInfo *info
);
See if a callable could return NULL.
|
a GICallableInfo |
Returns : |
TRUE if callable could return NULL |
gint g_callable_info_get_n_args (GICallableInfo *info
);
Get the number of arguments (both IN and OUT) for this callable.
|
a GICallableInfo |
Returns : |
The number of arguments this callable expects. |
GIArgInfo * g_callable_info_get_arg (GICallableInfo *info
,gint n
);
Get information about a particular argument of this callable.
|
a GICallableInfo |
|
the argument index to fetch |
Returns : |
A GIArgInfo indexing the typelib on the given argument. |
void g_callable_info_load_arg (GICallableInfo *info
,gint n
,GIArgInfo *arg
);
Get 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 |
|
Initialize with argument number n . [out caller-allocates]
|
void g_callable_info_load_return_type (GICallableInfo *info
,GITypeInfo *type
);
Get 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 |
|
Initialized with return type of info . [out caller-allocates]
|