package gobject-introspection

  1. Overview
  2. Docs

Struct_info — Module representing a C structure

type t

Struct_info represents a generic C structure type. A structure has methods and fields.

val structinfo : t Ctypes.structure Ctypes.typ
val is_gtype_struct : t Ctypes.structure Ctypes.ptr -> bool

Return true if this structure represents the "class structure" for some GObject or GInterface. This function is mainly useful to hide this kind of structure from generated public APIs.

val get_alignment : t Ctypes.structure Ctypes.ptr -> int

Obtain the required alignment of the structure.

val get_size : t Ctypes.structure Ctypes.ptr -> int

Obtain the total size of the structure.

val is_foreign : t Ctypes.structure Ctypes.ptr -> bool

No doc yet

val get_n_fields : t Ctypes.structure Ctypes.ptr -> int

Obtain the number of fields this structure has.

val get_n_methods : t Ctypes.structure Ctypes.ptr -> int

Obtain the number of methods this structure has.

Obtain the type information for field with specified index.

Obtain the type information for method with specified index.

Obtain the type information for method named name .

Add unref of the C underlying structure whith Gc.finalise.

Return a Struct_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.

Return a Base_info.t form a Struct_info, the underlying C structure ref count is increased and the value is Gc.finalis"ed" with Base_info.baseinfo_unref.

Just cast OCaml Ctypes registeredtype info to struct info.

Just cast OCaml Ctypes struct info to registeredtype info

Return a Struct_info.t from a Registered_type_info.t, the underlying C structure ref count is increased and the value is Gc.finalis"ed" with Registered_type_info.registeredtypeinfo_unref.

Return a Registered_type_info.t form a Struct_info, the underlying C structure ref count is increased and the value is Gc.finalis"ed" with Registered_type_info.registeredtypeinfo_unref.

OCaml

Innovation. Community. Security.