<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>GObject_introspection__Base_info (gobject-introspection.GObject_introspection__Base_info)</title><link rel="stylesheet" href="../odoc.css"/><meta charset="utf-8"/><meta name="generator" content="odoc %%VERSION%%"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> â€“ <a href="../index.html">gobject-introspection</a> &#x00BB; GObject_introspection__Base_info</nav><h1>Module <code>GObject_introspection__Base_info</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type</span> t</code></dt><dd><p>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</p></dd></dl><dl><dt class="spec value" id="val-baseinfo"><a href="#val-baseinfo" class="anchor"></a><code><span class="keyword">val</span> baseinfo : <span><span><a href="index.html#type-t">t</a> Ctypes.structure</span> Ctypes.typ</span></code></dt><dt class="spec value" id="val-base_info_ref"><a href="#val-base_info_ref" class="anchor"></a><code><span class="keyword">val</span> base_info_ref : <span><span><a href="index.html#type-t">t</a> Ctypes.structure</span> Ctypes.ptr</span> <span>&#45;&gt;</span> <span><span><a href="index.html#type-t">t</a> Ctypes.structure</span> Ctypes.ptr</span></code></dt><dd><p>Increases the reference count of underlying Base_info *info.</p></dd></dl><dl><dt class="spec value" id="val-base_info_unref"><a href="#val-base_info_unref" class="anchor"></a><code><span class="keyword">val</span> base_info_unref : <span><span><a href="index.html#type-t">t</a> Ctypes.structure</span> Ctypes.ptr</span> <span>&#45;&gt;</span> unit</code></dt><dd><p>Decreases the reference count of underlying Base_info *info . When its reference count drops to 0, the info is freed.</p></dd></dl><dl><dt class="spec value" id="val-get_name"><a href="#val-get_name" class="anchor"></a><code><span class="keyword">val</span> get_name : <span><span><a href="index.html#type-t">t</a> Ctypes.structure</span> Ctypes.ptr</span> <span>&#45;&gt;</span> <span>string option</span></code></dt><dd><p>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.</p></dd></dl><dl><dt class="spec value" id="val-equal"><a href="#val-equal" class="anchor"></a><code><span class="keyword">val</span> equal : <span><span><a href="index.html#type-t">t</a> Ctypes.structure</span> Ctypes.ptr</span> <span>&#45;&gt;</span> <span><span><a href="index.html#type-t">t</a> Ctypes.structure</span> Ctypes.ptr</span> <span>&#45;&gt;</span> bool</code></dt><dd><p>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.</p></dd></dl><dl><dt class="spec value" id="val-get_namespace"><a href="#val-get_namespace" class="anchor"></a><code><span class="keyword">val</span> get_namespace : <span><span><a href="index.html#type-t">t</a> Ctypes.structure</span> Ctypes.ptr</span> <span>&#45;&gt;</span> string</code></dt><dd><p>Obtain the namespace of info</p></dd></dl><dl><dt class="spec value" id="val-is_deprecated"><a href="#val-is_deprecated" class="anchor"></a><code><span class="keyword">val</span> is_deprecated : <span><span><a href="index.html#type-t">t</a> Ctypes.structure</span> Ctypes.ptr</span> <span>&#45;&gt;</span> bool</code></dt><dd><p>Obtain whether the info is represents a metadata which is deprecated or not.</p></dd></dl><dl><dt class="spec value" id="val-get_container"><a href="#val-get_container" class="anchor"></a><code><span class="keyword">val</span> get_container : <span><span><a href="index.html#type-t">t</a> Ctypes.structure</span> Ctypes.ptr</span> <span>&#45;&gt;</span> <span><span><span><a href="index.html#type-t">t</a> Ctypes.structure</span> Ctypes.ptr</span> option</span></code></dt><dd><p>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.</p></dd></dl><dl><dt class="spec value" id="val-get_type"><a href="#val-get_type" class="anchor"></a><code><span class="keyword">val</span> get_type : <span><span><a href="index.html#type-t">t</a> Ctypes.structure</span> Ctypes.ptr</span> <span>&#45;&gt;</span> <a href="../Bindings/Base_info/index.html#type-info_type">Bindings.Base_info.info_type</a></code></dt><dd><p>Obtain the info type of the Base_info.</p></dd></dl><dl><dt class="spec value" id="val-add_unref_finaliser"><a href="#val-add_unref_finaliser" class="anchor"></a><code><span class="keyword">val</span> add_unref_finaliser : <span><span><a href="index.html#type-t">t</a> Ctypes.structure</span> Ctypes.ptr</span> <span>&#45;&gt;</span> <span><span><a href="index.html#type-t">t</a> Ctypes.structure</span> Ctypes.ptr</span></code></dt></dl></div></body></html>