📄 gmount.html
字号:
<col align="left" valign="top"><tbody><tr><td><p><span class="term"><ahref="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#GTypeInterface">GTypeInterface</a> <em class="structfield"><code>g_iface</code></em>;</span></p></td><td> The parent interface.</td></tr><tr><td><p><span class="term"><em class="structfield"><code>changed</code></em> ()</span></p></td><td> Changed signal that is emitted when the mount's state has changed.</td></tr><tr><td><p><span class="term"><em class="structfield"><code>unmounted</code></em> ()</span></p></td><td> The unmounted signal that is emitted when the <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a> have been unmounted. If the recipient is holding references to the object they should release them so the object can be finalized.</td></tr><tr><td><p><span class="term"><em class="structfield"><code>get_root</code></em> ()</span></p></td><td> Gets a <a class="link" href="GFile.html" title="GFile"><span class="type">GFile</span></a> to the root directory of the <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a>.</td></tr><tr><td><p><span class="term"><em class="structfield"><code>get_name</code></em> ()</span></p></td><td> Gets a string containing the name of the <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a>.</td></tr><tr><td><p><span class="term"><em class="structfield"><code>get_icon</code></em> ()</span></p></td><td> Gets a <a class="link" href="GIcon.html" title="GIcon"><span class="type">GIcon</span></a> for the <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a>.</td></tr><tr><td><p><span class="term"><em class="structfield"><code>get_uuid</code></em> ()</span></p></td><td> Gets the UUID for the <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a>. The reference is typically based on the file system UUID for the mount in question and should be considered an opaque string. Returns <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> if there is no UUID available.</td></tr><tr><td><p><span class="term"><em class="structfield"><code>get_volume</code></em> ()</span></p></td><td> Gets a <a class="link" href="GVolume.html" title="GVolume"><span class="type">GVolume</span></a> the mount is located on. Returns <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> if the <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a> is not associated with a <a class="link" href="GVolume.html" title="GVolume"><span class="type">GVolume</span></a>.</td></tr><tr><td><p><span class="term"><em class="structfield"><code>get_drive</code></em> ()</span></p></td><td> Gets a <a class="link" href="GDrive.html" title="GDrive"><span class="type">GDrive</span></a> the volume of the mount is located on. Returns <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> if the <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a> is not associated with a <a class="link" href="GDrive.html" title="GDrive"><span class="type">GDrive</span></a> or a <a class="link" href="GVolume.html" title="GVolume"><span class="type">GVolume</span></a>. This is convenience method for getting the <a class="link" href="GVolume.html" title="GVolume"><span class="type">GVolume</span></a> and using that to get the <a class="link" href="GDrive.html" title="GDrive"><span class="type">GDrive</span></a>.</td></tr><tr><td><p><span class="term"><em class="structfield"><code>can_unmount</code></em> ()</span></p></td><td> Checks if a <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a> can be unmounted.</td></tr><tr><td><p><span class="term"><em class="structfield"><code>can_eject</code></em> ()</span></p></td><td> Checks if a <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a> can be ejected.</td></tr><tr><td><p><span class="term"><em class="structfield"><code>unmount</code></em> ()</span></p></td><td> Starts unmounting a <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a>.</td></tr><tr><td><p><span class="term"><em class="structfield"><code>unmount_finish</code></em> ()</span></p></td><td> Finishes an unmounting operation.</td></tr><tr><td><p><span class="term"><em class="structfield"><code>eject</code></em> ()</span></p></td><td> Starts ejecting a <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a>.</td></tr><tr><td><p><span class="term"><em class="structfield"><code>eject_finish</code></em> ()</span></p></td><td> Finishes an eject operation.</td></tr><tr><td><p><span class="term"><em class="structfield"><code>remount</code></em> ()</span></p></td><td> Starts remounting a <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a>.</td></tr><tr><td><p><span class="term"><em class="structfield"><code>remount_finish</code></em> ()</span></p></td><td> Finishes a remounting operation.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3225114"></a><h3><a name="g-mount-get-name"></a>g_mount_get_name ()</h3><a class="indexterm" name="id3225127"></a><pre class="programlisting">char* g_mount_get_name (<a class="link" href="GMount.html" title="GMount">GMount</a> *mount);</pre><p>Gets the name of <em class="parameter"><code>mount</code></em>.</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>mount</code></em> :</span></p></td><td> a <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a>.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> the name for the given <em class="parameter"><code>mount</code></em>. The returned string should be freed when no longer needed.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3225207"></a><h3><a name="g-mount-get-uuid"></a>g_mount_get_uuid ()</h3><a class="indexterm" name="id3225219"></a><pre class="programlisting">char* g_mount_get_uuid (<a class="link" href="GMount.html" title="GMount">GMount</a> *mount);</pre><p>Gets the UUID for the <em class="parameter"><code>mount</code></em>. The reference is typically based onthe file system UUID for the mount in question and should beconsidered an opaque string. Returns <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> if there is no UUIDavailable.</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>mount</code></em> :</span></p></td><td> a <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a>.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> the UUID for <em class="parameter"><code>mount</code></em> or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> if no UUID can be computed.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3225319"></a><h3><a name="g-mount-get-icon"></a>g_mount_get_icon ()</h3><a class="indexterm" name="id3225332"></a><pre class="programlisting"><a class="link" href="GIcon.html" title="GIcon">GIcon</a>* g_mount_get_icon (<a class="link" href="GMount.html" title="GMount">GMount</a> *mount);</pre><p>Gets the icon for <em class="parameter"><code>mount</code></em>.</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>mount</code></em> :</span></p></td><td> a <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a>.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> a <a class="link" href="GIcon.html" title="GIcon"><span class="type">GIcon</span></a>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3225412"></a><h3><a name="g-mount-get-drive"></a>g_mount_get_drive ()</h3><a class="indexterm" name="id3225425"></a><pre class="programlisting"><a class="link" href="GDrive.html" title="GDrive">GDrive</a>* g_mount_get_drive (<a class="link" href="GMount.html" title="GMount">GMount</a> *mount);</pre><p>Gets the drive for the <em class="parameter"><code>mount</code></em>.</p><p>This is a convenience method for getting the <a class="link" href="GVolume.html" title="GVolume"><span class="type">GVolume</span></a> and thenusing that object to get the <a class="link" href="GDrive.html" title="GDrive"><span class="type">GDrive</span></a>.</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>mount</code></em> :</span></p></td><td> a <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a>.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> a <a class="link" href="GDrive.html" title="GDrive"><span class="type">GDrive</span></a> or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> if <em class="parameter"><code>mount</code></em> is not associated with a volume or a drive.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3225539"></a><h3><a name="g-mount-get-root"></a>g_mount_get_root ()</h3><a class="indexterm" name="id3225551"></a><pre class="programlisting"><a class="link" href="GFile.html" title="GFile">GFile</a>* g_mount_get_root (<a class="link" href="GMount.html" title="GMount">GMount</a> *mount);</pre><p>Gets the root directory on <em class="parameter"><code>mount</code></em>.</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>mount</code></em> :</span></p></td><td> a <a class="link" href="GMount.html" title="GMount"><span class="type">GMount</span></a>.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> a <a class="link" href="GFile.html" title="GFile"><span class="type">GFile</span></a>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -