package gobject-introspection

  1. Overview
  2. Docs

Base_info — Base struct for all GITypelib structs

type t

Base_info is the common base struct of all other *Info structs accessible through the Repository API. All other structs can be casted to a Base_info

Increases the reference count of underlying Base_info *info.

val base_info_unref : t Ctypes.structure Ctypes.ptr -> unit

Decreases the reference count of underlying Base_info *info . When its reference count drops to 0, the info is freed.

val get_name : t Ctypes.structure Ctypes.ptr -> string option

Obtain the name of the info . What the name represents depends on the GIInfoType of the info . For instance for Function_info it is the name of the function.

Compare two Base_info. Using pointer comparison is not practical since many functions return different instances of Base_info that refers to the same part of the TypeLib; use this function instead to do Base_info comparisons.

val get_namespace : t Ctypes.structure Ctypes.ptr -> string

Obtain the namespace of info

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

Obtain whether the info is represents a metadata which is deprecated or not.

Obtain the container of the info . The container is the parent Base_info. For instance, the parent of a Function_info is an Object_info or Interface_info.

Obtain the info type of the Base_info.

OCaml

Innovation. Community. Security.