GIRepository.CallableInfo
Description: Reference for GIRepository.CallableInfo

### Class

# GIRepositoryCallableInfo

since: 2.80

#### Description [src]

    abstract class GIRepository.CallableInfo : GObject.TypeInstance
    {
      /* No available fields */
    }

`GICallableInfo` represents an entity which is callable.

Examples of callable are:

- functions (`GIFunctionInfo`)
- virtual functions (`GIVFuncInfo`)
- callbacks (`GICallbackInfo`).

A callable has a list of arguments (`GIArgInfo`), a return type, direction and a flag which decides if it returns `NULL`.

Available since: 2.80

#### Ancestors

- GIBaseInfo

#### Descendants

- GICallbackInfo
- GIFunctionInfo
- GISignalInfo
- GIVFuncInfo

#### Instance methods

###### gi_callable_info_can_throw_gerror

Whether the callable can throw a `GError`.

since: 2.80

###### gi_callable_info_get_arg

Obtain information about a particular argument of this callable.

since: 2.80

###### gi_callable_info_get_async_function

Gets the callable info for the callable’s asynchronous version.

since: 2.84

###### gi_callable_info_get_caller_owns

See whether the caller owns the return value of this callable.

since: 2.80

###### gi_callable_info_get_finish_function

Gets the info for an async function’s corresponding finish function.

since: 2.84

###### gi_callable_info_get_instance_ownership_transfer

Obtains the ownership transfer for the instance argument.

since: 2.80

###### gi_callable_info_get_n_args

Obtain the number of arguments (both ‘in’ and ‘out’) for this callable.

since: 2.80

###### gi_callable_info_get_return_attribute

Retrieve an arbitrary attribute associated with the return value.

since: 2.80

###### gi_callable_info_get_return_type

Obtain the return type of a callable item as a `GITypeInfo`.

since: 2.80

###### gi_callable_info_get_sync_function

Gets the callable info for the callable’s synchronous version.

since: 2.84

###### gi_callable_info_invoke

Invoke the given `GICallableInfo` by calling the given `function` pointer.

since: 2.80

###### gi_callable_info_is_async

Gets whether a callable is ‘async’. Async callables have a `GAsyncReadyCallback` parameter and user data.

since: 2.84

###### gi_callable_info_is_method

Determines if the callable info is a method.

since: 2.80

###### gi_callable_info_iterate_return_attributes

Iterate over all attributes associated with the return value.

since: 2.80

###### gi_callable_info_load_arg

Obtain information about a particular argument of this callable; this function is a variant of `gi_callable_info_get_arg()` designed for stack allocation.

since: 2.80

###### gi_callable_info_load_return_type

Obtain information about a return value of callable; this function is a variant of `gi_callable_info_get_return_type()` designed for stack allocation.

since: 2.80

###### gi_callable_info_may_return_null

See if a callable could return `NULL`.

since: 2.80

###### gi_callable_info_skip_return

See if a callable’s return value is only useful in C.

since: 2.80

##### Methods inherited from GIBaseInfo (11)

###### gi_base_info_clear

Clears memory allocated internally by a stack-allocated `GIBaseInfo`.

since: 2.80

###### gi_base_info_equal

Compare two `GIBaseInfo`s.

since: 2.80

###### gi_base_info_get_attribute

Retrieve an arbitrary attribute associated with this node.

since: 2.80

###### gi_base_info_get_container

Obtain the container of the `info`.

since: 2.80

###### gi_base_info_get_name

Obtain the name of the `info`.

since: 2.80

###### gi_base_info_get_namespace

Obtain the namespace of `info`.

since: 2.80

###### gi_base_info_get_typelib

Obtain the typelib this `info` belongs to.

since: 2.80

###### gi_base_info_is_deprecated

Obtain whether the `info` is represents a metadata which is deprecated.

since: 2.80

###### gi_base_info_iterate_attributes

Iterate over all attributes associated with this node.

since: 2.80

###### gi_base_info_ref

Increases the reference count of `info`.

since: 2.80

###### gi_base_info_unref

Decreases the reference count of `info`. When its reference count drops to 0, the info is freed.

since: 2.80