<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>GObject_introspection__Conversions (gobject-introspection.GObject_introspection__Conversions)</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__Conversions</nav><h1>Module <code>GObject_introspection__Conversions</code></h1><p>Conversions functions</p></header><dl><dt class="spec type" id="type-carray_of_strings"><a href="#type-carray_of_strings" class="anchor"></a><code><span class="keyword">type</span> carray_of_strings</code><code> = <span><span>char Ctypes.ptr</span> Ctypes.ptr</span></code></dt><dd><p>C pointer of null terminated array of C strings</p></dd></dl><dl><dt class="spec value" id="val-carray_of_strings"><a href="#val-carray_of_strings" class="anchor"></a><code><span class="keyword">val</span> carray_of_strings : <span><a href="index.html#type-carray_of_strings">carray_of_strings</a> Ctypes.typ</span></code></dt><dt class="spec value" id="val-carray_of_strings_to_list"><a href="#val-carray_of_strings_to_list" class="anchor"></a><code><span class="keyword">val</span> carray_of_strings_to_list : <span><span>char Ctypes.ptr</span> Ctypes.ptr</span> <span>&#45;&gt;</span> <span>string list</span></code></dt><dd><p>Converts C array of strings to OCaml list of strings</p></dd></dl><dl><dt class="spec external" id="val-carray_of_strings_to_array"><a href="#val-carray_of_strings_to_array" class="anchor"></a><code><span class="keyword">val</span> carray_of_strings_to_array : <a href="index.html#type-carray_of_strings">carray_of_strings</a> <span>&#45;&gt;</span> <span>string array</span></code></dt><dd><p>Converts C array of strings to OCaml array of strings</p></dd></dl><dl><dt class="spec type" id="type-glist"><a href="#type-glist" class="anchor"></a><code><span class="keyword">type</span> glist</code></dt><dd><p>GList struct</p></dd></dl><dl><dt class="spec value" id="val-glist"><a href="#val-glist" class="anchor"></a><code><span class="keyword">val</span> glist : <span><span><a href="index.html#type-glist">glist</a> Ctypes.structure</span> Ctypes.typ</span></code></dt><dt class="spec value" id="val-glist_data"><a href="#val-glist_data" class="anchor"></a><code><span class="keyword">val</span> glist_data : <span><span>(<span>unit Ctypes_static.ptr</span>, <span><a href="index.html#type-glist">glist</a> Ctypes.structure</span>)</span> Ctypes.field</span></code></dt><dt class="spec value" id="val-glist_next"><a href="#val-glist_next" class="anchor"></a><code><span class="keyword">val</span> glist_next : <span><span>(<span><span><span><a href="index.html#type-glist">glist</a> Ctypes.structure</span> Ctypes_static.ptr</span> option</span>, <span><a href="index.html#type-glist">glist</a> Ctypes.structure</span>)</span> Ctypes.field</span></code></dt><dt class="spec value" id="val-glist_prev"><a href="#val-glist_prev" class="anchor"></a><code><span class="keyword">val</span> glist_prev : <span><span>(<span><span><span><a href="index.html#type-glist">glist</a> Ctypes.structure</span> Ctypes_static.ptr</span> option</span>, <span><a href="index.html#type-glist">glist</a> Ctypes.structure</span>)</span> Ctypes.field</span></code></dt><dt class="spec value" id="val-g_free"><a href="#val-g_free" class="anchor"></a><code><span class="keyword">val</span> g_free : <span>unit Ctypes_static.ptr</span> <span>&#45;&gt;</span> unit</code></dt><dt class="spec value" id="val-g_free_t"><a href="#val-g_free_t" class="anchor"></a><code><span class="keyword">val</span> g_free_t : <span><span>(<span>unit Ctypes_static.ptr</span> <span>&#45;&gt;</span> unit)</span> Ctypes.fn</span></code></dt><dt class="spec value" id="val-glist_free_full"><a href="#val-glist_free_full" class="anchor"></a><code><span class="keyword">val</span> glist_free_full : <span><span><a href="index.html#type-glist">glist</a> Ctypes.structure</span> Ctypes_static.ptr</span> <span>&#45;&gt;</span> <span>(<span>unit Ctypes_static.ptr</span> <span>&#45;&gt;</span> unit)</span> <span>&#45;&gt;</span> unit</code></dt><dt class="spec value" id="val-g_list_next"><a href="#val-g_list_next" class="anchor"></a><code><span class="keyword">val</span> g_list_next : <span><span><span>(<a href="index.html#type-glist">glist</a>, <span>[ `Struct ]</span>)</span> Ctypes.structured</span> Ctypes.ptr</span> <span>&#45;&gt;</span> <span><span><span><a href="index.html#type-glist">glist</a> Ctypes.structure</span> Ctypes_static.ptr</span> option</span></code></dt><dd><p>Get the next element of a glist</p></dd></dl><dl><dt class="spec value" id="val-g_list_data"><a href="#val-g_list_data" class="anchor"></a><code><span class="keyword">val</span> g_list_data : <span><span><span>(<a href="index.html#type-glist">glist</a>, <span>[ `Struct ]</span>)</span> Ctypes.structured</span> Ctypes.ptr</span> <span>&#45;&gt;</span> <span>unit Ctypes_static.ptr</span></code></dt><dd><p>Get the void ptr data of the current element</p></dd></dl><dl><dt class="spec value" id="val-glist_of_strings_to_list"><a href="#val-glist_of_strings_to_list" class="anchor"></a><code><span class="keyword">val</span> glist_of_strings_to_list : <span><span><span>(<a href="index.html#type-glist">glist</a>, <span>[ `Struct ]</span>)</span> Ctypes.structured</span> Ctypes.ptr</span> <span>&#45;&gt;</span> <span>string list</span></code></dt><dd><p>Transform a GList of strings to an OCaml list of strings</p></dd></dl><dl><dt class="spec type" id="type-gslist"><a href="#type-gslist" class="anchor"></a><code><span class="keyword">type</span> gslist</code></dt><dd><p>GSList struct</p></dd></dl><dl><dt class="spec value" id="val-gslist"><a href="#val-gslist" class="anchor"></a><code><span class="keyword">val</span> gslist : <span><span><a href="index.html#type-gslist">gslist</a> Ctypes.structure</span> Ctypes.typ</span></code></dt><dt class="spec value" id="val-gslist_data"><a href="#val-gslist_data" class="anchor"></a><code><span class="keyword">val</span> gslist_data : <span><span>(<span>unit Ctypes_static.ptr</span>, <span><a href="index.html#type-gslist">gslist</a> Ctypes.structure</span>)</span> Ctypes.field</span></code></dt><dt class="spec value" id="val-gslist_next"><a href="#val-gslist_next" class="anchor"></a><code><span class="keyword">val</span> gslist_next : <span><span>(<span><span><span><a href="index.html#type-gslist">gslist</a> Ctypes.structure</span> Ctypes_static.ptr</span> option</span>, <span><a href="index.html#type-gslist">gslist</a> Ctypes.structure</span>)</span> Ctypes.field</span></code></dt><dt class="spec value" id="val-g_slist_next"><a href="#val-g_slist_next" class="anchor"></a><code><span class="keyword">val</span> g_slist_next : <span><span><span>(<a href="index.html#type-gslist">gslist</a>, <span>[ `Struct ]</span>)</span> Ctypes.structured</span> Ctypes.ptr</span> <span>&#45;&gt;</span> <span><span><span><a href="index.html#type-gslist">gslist</a> Ctypes.structure</span> Ctypes_static.ptr</span> option</span></code></dt><dd><p>Get the next element of a gslist</p></dd></dl><dl><dt class="spec value" id="val-g_slist_data"><a href="#val-g_slist_data" class="anchor"></a><code><span class="keyword">val</span> g_slist_data : <span><span><span>(<a href="index.html#type-gslist">gslist</a>, <span>[ `Struct ]</span>)</span> Ctypes.structured</span> Ctypes.ptr</span> <span>&#45;&gt;</span> <span>unit Ctypes_static.ptr</span></code></dt><dd><p>Get the void ptr data of the current element</p></dd></dl><dl><dt class="spec value" id="val-gslist_of_strings_to_list"><a href="#val-gslist_of_strings_to_list" class="anchor"></a><code><span class="keyword">val</span> gslist_of_strings_to_list : <span><span><span>(<a href="index.html#type-gslist">gslist</a>, <span>[ `Struct ]</span>)</span> Ctypes.structured</span> Ctypes.ptr</span> <span>&#45;&gt;</span> <span>string list</span></code></dt><dd><p>Transform a GSList of strings to an OCaml list of strings</p></dd></dl></div></body></html>