Module GObject_introspection.Function_info
type t
Function_info represents a function, method or constructor. To find out what kind of entity a Function_info represents, call Function_info.get_flags. See also Callable_info for information on how to retreive arguments and other metadata.
val functioninfo : t Ctypes.structure Ctypes.typ
val get_symbol : t Ctypes.structure Ctypes.ptr -> string
Obtain the symbol of the function. The symbol is the name of the exported function, suitable to be used as an argument to g_module_symbol().
val get_flags : t Ctypes.structure Ctypes.ptr -> Bindings.Function_info.flags list
Obtain the Function_infoFlags for the info .
val get_property : t Ctypes.structure Ctypes.ptr -> Property_info.t Ctypes.structure Ctypes.ptr option
Obtain the property associated with this Function_info. Only Function_info with the flag GIFunction.Is_getter or GIFunction.Is_setter have a property set. For other cases, NULL will be returned.
val get_vfunc : t Ctypes.structure Ctypes.ptr -> Callable_info.t Ctypes.structure Ctypes.ptr option
Obtain the virtual function associated with this Function_info. Only Function_info with the flag Wraps_vfunc has a virtual function set. For other cases, None will be returned. In order to avoid circular call graph between Function_info and VFunc_info, this function will return a Callable_info. It is upto the user to use VFunc_info.from_callableinfo in order to have the VFunc_info.
val cast_from_baseinfo : Base_info.t Ctypes.structure Ctypes.ptr -> t Ctypes.structure Ctypes.ptr
Just cast OCaml Ctypes base info to function info.
val cast_to_baseinfo : t Ctypes.structure Ctypes.ptr -> Base_info.t Ctypes.structure Ctypes.ptr
Just cast OCaml Ctypes function info to base info
val add_unref_finaliser : t Ctypes.structure Ctypes.ptr -> t Ctypes.structure Ctypes.ptr
Add unref of the C underlying structure whith Gc.finalise.
val from_baseinfo : Base_info.t Ctypes.structure Ctypes.ptr -> t Ctypes.structure Ctypes.ptr
Return a Function_info.t from a Base_info.t, the underlying C structure ref count is increased and the value is Gc.finalis"ed" with Base_info.baseinfo_unref.
val to_baseinfo : t Ctypes.structure Ctypes.ptr -> Base_info.t Ctypes.structure Ctypes.ptr
Return a Base_info.t from a Function_info, the underlying C structure ref count is increased and the value is Gc.finalis"ed" with Base_info.baseinfo_unref.
val cast_from_callableinfo : Callable_info.t Ctypes.structure Ctypes.ptr -> t Ctypes.structure Ctypes.ptr
Just cast OCaml Ctypes callable info to function info.
val cast_to_callableinfo : t Ctypes.structure Ctypes.ptr -> Callable_info.t Ctypes.structure Ctypes.ptr
Just cast OCaml Ctypes function info to callable info
val from_callableinfo : Callable_info.t Ctypes.structure Ctypes.ptr -> t Ctypes.structure Ctypes.ptr
Return a Function_info.t from a Callable_info.t, the underlying C structure ref count is increased and the value is Gc.finalis"ed" with Base_info.baseinfo_unref.
val to_callableinfo : t Ctypes.structure Ctypes.ptr -> Callable_info.t Ctypes.structure Ctypes.ptr
Return a Callable_info.t from a Function_info, the underlying C structure ref count is increased and the value is Gc.finalis"ed" with Base_info.baseinfo_unref.