⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 giomodule.html

📁 最新gtk中文资料集
💻 HTML
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"><title>GIOModule</title><meta name="generator" content="DocBook XSL Stylesheets V1.73.2"><link rel="start" href="index.html" title="GIO Reference Manual"><link rel="up" href="extending.html" title="Extending GIO"><link rel="prev" href="GVfs.html" title="GVfs"><link rel="next" href="gio-Extension-Points.html" title="Extension Points"><meta name="generator" content="GTK-Doc V1.9 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="pt01.html" title="Part&#160;I.&#160;GIO Overview"><link rel="chapter" href="ch01.html" title="Introduction"><link rel="chapter" href="ch02.html" title="Compiling GIO applications"><link rel="chapter" href="ch03.html" title="Running GIO applications"><link rel="chapter" href="gio-extension-points.html" title="Extending GIO"><link rel="part" href="pt02.html" title="Part&#160;II.&#160;API Reference"><link rel="chapter" href="file_ops.html" title="File Operations"><link rel="chapter" href="file_mon.html" title="File System Monitoring"><link rel="chapter" href="async.html" title="Asynchronous I/O"><link rel="chapter" href="streaming.html" title="Streaming I/O"><link rel="chapter" href="types.html" title="File types and applications"><link rel="chapter" href="volume_mon.html" title="Volumes and Drives"><link rel="chapter" href="icons.html" title="Icons"><link rel="chapter" href="utils.html" title="Utilities"><link rel="chapter" href="extending.html" title="Extending GIO"><link rel="part" href="migrating.html" title="Part&#160;III.&#160;Migrating to GIO"><link rel="chapter" href="ch14.html" title="Migrating from POSIX to GIO"><link rel="chapter" href="ch15.html" title="Migrating from GnomeVFS to GIO"><link rel="chapter" href="gio-hierarchy.html" title="Object Hierarchy"><link rel="index" href="ix01.html" title="Index"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="GVfs.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="extending.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIO Reference Manual</th><td><a accesskey="n" href="gio-Extension-Points.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr><tr><td colspan="5" class="shortcuts"><nobr><a href="#id3190122" class="shortcut">Top</a>                  &#160;|&#160;                  <a href="#id3236274" class="shortcut">Description</a>                  &#160;|&#160;                  <a href="#id3236225" class="shortcut">Object Hierarchy</a>                  &#160;|&#160;                  <a href="#id3236254" class="shortcut">Implemented Interfaces</a></nobr></td></tr></table><div class="refentry" lang="en"><a name="GIOModule"></a><div class="titlepage"></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><a name="id3190122"></a><span class="refentrytitle">GIOModule</span></h2><p>GIOModule &#8212; Loadable GIO Modules</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">#include &lt;gio/gio.h&gt;                    <a class="link" href="GIOModule.html#GIOModule-struct">GIOModule</a>;<a class="link" href="GIOModule.html" title="GIOModule">GIOModule</a>*          <a class="link" href="GIOModule.html#g-io-module-new">g_io_module_new</a>                     (const <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar">gchar</a> *filename);<ahref="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList">GList</a>*              <a class="link" href="GIOModule.html#g-io-modules-load-all-in-directory">g_io_modules_load_all_in_directory</a>  (const char *dirname);void                <a class="link" href="GIOModule.html#g-io-module-load">g_io_module_load</a>                    (<a class="link" href="GIOModule.html" title="GIOModule">GIOModule</a> *module);void                <a class="link" href="GIOModule.html#g-io-module-unload">g_io_module_unload</a>                  (<a class="link" href="GIOModule.html" title="GIOModule">GIOModule</a> *module);</pre></div><div class="refsect1" lang="en"><a name="id3236225"></a><h2>Object Hierarchy</h2><pre class="synopsis">  <ahref="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject">GObject</a>   +----<ahref="/usr/share/gtk-doc/html/gobject/GTypeModule.html">GTypeModule</a>         +----GIOModule</pre></div><div class="refsect1" lang="en"><a name="id3236254"></a><h2>Implemented Interfaces</h2><p>GIOModule implements <ahref="/usr/share/gtk-doc/html/gobject/GTypePlugin.html">GTypePlugin</a>.</p></div><div class="refsect1" lang="en"><a name="id3236274"></a><h2>Description</h2><p>Provides an interface and default functions for loading and unloading modules. This is used internally to make GIO extensible, but can alsobe used by others to implement module loading.</p><p></p></div><div class="refsect1" lang="en"><a name="id3236297"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id3236307"></a><h3><a name="GIOModule-struct"></a>GIOModule</h3><a class="indexterm" name="id3236319"></a><pre class="programlisting">typedef struct _GIOModule GIOModule;</pre><p>Opaque module base class for extending GIO.</p><p></p></div><hr><div class="refsect2" lang="en"><a name="id3236338"></a><h3><a name="g-io-module-new"></a>g_io_module_new ()</h3><a class="indexterm" name="id3230192"></a><pre class="programlisting"><a class="link" href="GIOModule.html" title="GIOModule">GIOModule</a>*          g_io_module_new                     (const <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar">gchar</a> *filename);</pre><p>Creates a new GIOModule that will load the specificshared library when in use.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>filename</code></em>&#160;:</span></p></td><td> filename of the shared library module.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> a <a class="link" href="GIOModule.html" title="GIOModule"><span class="type">GIOModule</span></a> from given <em class="parameter"><code>filename</code></em>, or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> on error.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3230275"></a><h3><a name="g-io-modules-load-all-in-directory"></a>g_io_modules_load_all_in_directory ()</h3><a class="indexterm" name="id3230286"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList">GList</a>*              g_io_modules_load_all_in_directory  (const char *dirname);</pre><p>Loads all the modules in the specified directory.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>dirname</code></em>&#160;:</span></p></td><td> pathname for a directory containing modules to load.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> a list of <span class="type">GIOModules</span> loaded from the directory,     All the modules are loaded into memory, if you want to     unload them (enabling on-demand loading) you must call     <ahref="/usr/share/gtk-doc/html/gobject/GTypeModule.html#g-type-module-unuse"><code class="function">g_type_module_unuse()</code></a> on all the modules. Free the list     with <ahref="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#g-list-free"><code class="function">g_list_free()</code></a>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3230375"></a><h3><a name="g-io-module-load"></a>g_io_module_load ()</h3><a class="indexterm" name="id3230386"></a><pre class="programlisting">void                g_io_module_load                    (<a class="link" href="GIOModule.html" title="GIOModule">GIOModule</a> *module);</pre><p>Required API for GIO modules to implement. This function is ran after the module has been loaded into GIO, to initialize the module.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>module</code></em>&#160;:</span></p></td><td> a <a class="link" href="GIOModule.html" title="GIOModule"><span class="type">GIOModule</span></a>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3230445"></a><h3><a name="g-io-module-unload"></a>g_io_module_unload ()</h3><a class="indexterm" name="id3230456"></a><pre class="programlisting">void                g_io_module_unload                  (<a class="link" href="GIOModule.html" title="GIOModule">GIOModule</a> *module);</pre><p>Required API for GIO modules to implement. This function is ran when the module is being unloaded from GIO, to finalize the module.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>module</code></em>&#160;:</span></p></td><td> a <a class="link" href="GIOModule.html" title="GIOModule"><span class="type">GIOModule</span></a>.</td></tr></tbody></table></div></div></div><div class="refsect1" lang="en"><a name="id3230515"></a><div class="refsect2" lang="en"><a name="id3230516"></a></div><hr><div class="refsect2" lang="en"><a name="id3230518"></a></div></div></div></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -