package gobject-introspection

  1. Overview
  2. Docs

Constant_info — Struct representing a constant

type t

Constant_info represents a constant. A constant has a type associated which can be obtained by calling Constant_info.get_type and a value, which can be obtained by calling GIConstant.get_value.

val constantinfo : t Ctypes.structure Ctypes.typ

Obtain the type of the constant as a Type_info.

Just cast OCaml Ctypes base info to constant info.

Just cast OCaml Ctypes constant info to base info

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

Return a Constant_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 Constant_info, the underlying C structure ref count is increased and the value is Gc.finalis"ed" with Base_info.baseinfo_unref.

Obtain the value associated with the Constant_info and store it in the value parameter. argument needs to be allocated before passing it in. The size of the constant value stored in argument will be returned. Free the value with Constant_info.free_value.