30
30
<th width="100%" align="center">GnomeVFS - Filesystem Abstraction library</th>
31
31
<td><a accesskey="n" href="gnome-vfs-20-gnome-vfs-volume-monitor.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
33
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2659862" class="shortcut">Top</a>
35
<a href="#id2660548" class="shortcut">Description</a>
37
<a href="#id2660474" class="shortcut">Object Hierarchy</a>
39
<a href="#id2660498" class="shortcut">Signals</a></nobr></td></tr>
33
<tr><td colspan="5" class="shortcuts"><nobr><a href="#gnome-vfs-20-gnome-vfs-drive.synopsis" class="shortcut">Top</a>
35
<a href="#gnome-vfs-20-gnome-vfs-drive.description" class="shortcut">Description</a>
37
<a href="#gnome-vfs-20-gnome-vfs-drive.object-hierarchy" class="shortcut">Object Hierarchy</a>
39
<a href="#gnome-vfs-20-gnome-vfs-drive.signals" class="shortcut">Signals</a></nobr></td></tr>
41
41
<div class="refentry" lang="en">
42
42
<a name="gnome-vfs-20-gnome-vfs-drive"></a><div class="titlepage"></div>
43
43
<div class="refnamediv"><table width="100%"><tr>
46
<a name="id2659862"></a><span class="refentrytitle">GnomeVFSDrive</span>
48
<p>GnomeVFSDrive — Container for GnomeVFSVolume (floppy drive, CD reader, ...)</p>
45
<h2><span class="refentrytitle"><a name="gnome-vfs-20-gnome-vfs-drive.top_of_page"></a>GnomeVFSDrive</span></h2>
46
<p>GnomeVFSDrive — Container for GnomeVFSVolume (floppy drive, CD reader, ...)</p>
50
48
<td valign="top" align="right"></td>
51
49
</tr></table></div>
52
50
<div class="refsynopsisdiv">
51
<a name="gnome-vfs-20-gnome-vfs-drive.synopsis"></a><h2>Synopsis</h2>
54
52
<a name="GnomeVFSDrive"></a><pre class="synopsis">
58
enum <a href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDeviceType">GnomeVFSDeviceType</a>;
59
<a href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive-struct">GnomeVFSDrive</a>;
60
<a href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDriveClass">GnomeVFSDriveClass</a>;
61
#define <a href="gnome-vfs-20-gnome-vfs-drive.html#GNOME-IS-VFS-DRIVE:CAPS">GNOME_IS_VFS_DRIVE</a> (o)
62
#define <a href="gnome-vfs-20-gnome-vfs-drive.html#GNOME-IS-VFS-DRIVE-CLASS:CAPS">GNOME_IS_VFS_DRIVE_CLASS</a> (k)
63
#define <a href="gnome-vfs-20-gnome-vfs-drive.html#GNOME-VFS-TYPE-DRIVE:CAPS">GNOME_VFS_TYPE_DRIVE</a>
64
#define <a href="gnome-vfs-20-gnome-vfs-drive.html#GNOME-VFS-DRIVE:CAPS">GNOME_VFS_DRIVE</a> (o)
65
#define <a href="gnome-vfs-20-gnome-vfs-drive.html#GNOME-VFS-DRIVE-CLASS:CAPS">GNOME_VFS_DRIVE_CLASS</a> (k)
66
gint <a href="gnome-vfs-20-gnome-vfs-drive.html#gnome-vfs-drive-compare">gnome_vfs_drive_compare</a> (<a href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive">GnomeVFSDrive</a> *a,
67
<a href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive">GnomeVFSDrive</a> *b);
68
void <a href="gnome-vfs-20-gnome-vfs-drive.html#gnome-vfs-drive-eject">gnome_vfs_drive_eject</a> (<a href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive">GnomeVFSDrive</a> *drive,
69
<a href="gnome-vfs-20-gnome-vfs-volume.html#GnomeVFSVolumeOpCallback">GnomeVFSVolumeOpCallback</a> callback,
71
char* <a href="gnome-vfs-20-gnome-vfs-drive.html#gnome-vfs-drive-get-activation-uri">gnome_vfs_drive_get_activation_uri</a> (<a href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive">GnomeVFSDrive</a> *drive);
72
char* <a href="gnome-vfs-20-gnome-vfs-drive.html#gnome-vfs-drive-get-device-path">gnome_vfs_drive_get_device_path</a> (<a href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive">GnomeVFSDrive</a> *drive);
73
<a href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDeviceType">GnomeVFSDeviceType</a> <a href="gnome-vfs-20-gnome-vfs-drive.html#gnome-vfs-drive-get-device-type">gnome_vfs_drive_get_device_type</a> (<a href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive">GnomeVFSDrive</a> *drive);
74
char* <a href="gnome-vfs-20-gnome-vfs-drive.html#gnome-vfs-drive-get-display-name">gnome_vfs_drive_get_display_name</a> (<a href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive">GnomeVFSDrive</a> *drive);
75
char* <a href="gnome-vfs-20-gnome-vfs-drive.html#gnome-vfs-drive-get-hal-udi">gnome_vfs_drive_get_hal_udi</a> (<a href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive">GnomeVFSDrive</a> *drive);
76
char* <a href="gnome-vfs-20-gnome-vfs-drive.html#gnome-vfs-drive-get-icon">gnome_vfs_drive_get_icon</a> (<a href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive">GnomeVFSDrive</a> *drive);
77
gulong <a href="gnome-vfs-20-gnome-vfs-drive.html#gnome-vfs-drive-get-id">gnome_vfs_drive_get_id</a> (<a href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive">GnomeVFSDrive</a> *drive);
78
<a href="gnome-vfs-20-gnome-vfs-volume.html#GnomeVFSVolume">GnomeVFSVolume</a>* <a href="gnome-vfs-20-gnome-vfs-drive.html#gnome-vfs-drive-get-mounted-volume">gnome_vfs_drive_get_mounted_volume</a> (<a href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive">GnomeVFSDrive</a> *drive);
79
GList* <a href="gnome-vfs-20-gnome-vfs-drive.html#gnome-vfs-drive-get-mounted-volumes">gnome_vfs_drive_get_mounted_volumes</a> (<a href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive">GnomeVFSDrive</a> *drive);
80
void <a href="gnome-vfs-20-gnome-vfs-drive.html#gnome-vfs-drive-volume-list-free">gnome_vfs_drive_volume_list_free</a> (GList *volumes);
81
GType <a href="gnome-vfs-20-gnome-vfs-drive.html#gnome-vfs-drive-get-type">gnome_vfs_drive_get_type</a> (void);
82
gboolean <a href="gnome-vfs-20-gnome-vfs-drive.html#gnome-vfs-drive-is-connected">gnome_vfs_drive_is_connected</a> (<a href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive">GnomeVFSDrive</a> *drive);
83
gboolean <a href="gnome-vfs-20-gnome-vfs-drive.html#gnome-vfs-drive-is-mounted">gnome_vfs_drive_is_mounted</a> (<a href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive">GnomeVFSDrive</a> *drive);
84
gboolean <a href="gnome-vfs-20-gnome-vfs-drive.html#gnome-vfs-drive-is-user-visible">gnome_vfs_drive_is_user_visible</a> (<a href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive">GnomeVFSDrive</a> *drive);
85
void <a href="gnome-vfs-20-gnome-vfs-drive.html#gnome-vfs-drive-mount">gnome_vfs_drive_mount</a> (<a href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive">GnomeVFSDrive</a> *drive,
86
<a href="gnome-vfs-20-gnome-vfs-volume.html#GnomeVFSVolumeOpCallback">GnomeVFSVolumeOpCallback</a> callback,
88
<a href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive">GnomeVFSDrive</a>* <a href="gnome-vfs-20-gnome-vfs-drive.html#gnome-vfs-drive-ref">gnome_vfs_drive_ref</a> (<a href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive">GnomeVFSDrive</a> *drive);
89
void <a href="gnome-vfs-20-gnome-vfs-drive.html#gnome-vfs-drive-unmount">gnome_vfs_drive_unmount</a> (<a href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive">GnomeVFSDrive</a> *drive,
90
<a href="gnome-vfs-20-gnome-vfs-volume.html#GnomeVFSVolumeOpCallback">GnomeVFSVolumeOpCallback</a> callback,
92
void <a href="gnome-vfs-20-gnome-vfs-drive.html#gnome-vfs-drive-unref">gnome_vfs_drive_unref</a> (<a href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive">GnomeVFSDrive</a> *drive);
53
enum <a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDeviceType" title="enum GnomeVFSDeviceType">GnomeVFSDeviceType</a>;
54
<a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive-struct" title="GnomeVFSDrive">GnomeVFSDrive</a>;
55
<a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDriveClass" title="GnomeVFSDriveClass">GnomeVFSDriveClass</a>;
56
#define <a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#GNOME-IS-VFS-DRIVE:CAPS" title="GNOME_IS_VFS_DRIVE()">GNOME_IS_VFS_DRIVE</a> (o)
57
#define <a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#GNOME-IS-VFS-DRIVE-CLASS:CAPS" title="GNOME_IS_VFS_DRIVE_CLASS()">GNOME_IS_VFS_DRIVE_CLASS</a> (k)
58
#define <a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#GNOME-VFS-TYPE-DRIVE:CAPS" title="GNOME_VFS_TYPE_DRIVE">GNOME_VFS_TYPE_DRIVE</a>
59
#define <a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#GNOME-VFS-DRIVE:CAPS" title="GNOME_VFS_DRIVE()">GNOME_VFS_DRIVE</a> (o)
60
#define <a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#GNOME-VFS-DRIVE-CLASS:CAPS" title="GNOME_VFS_DRIVE_CLASS()">GNOME_VFS_DRIVE_CLASS</a> (k)
62
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
63
>gint</a> <a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#gnome-vfs-drive-compare" title="gnome_vfs_drive_compare ()">gnome_vfs_drive_compare</a> (<a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive">GnomeVFSDrive</a> *a,
64
<a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive">GnomeVFSDrive</a> *b);
65
void <a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#gnome-vfs-drive-eject" title="gnome_vfs_drive_eject ()">gnome_vfs_drive_eject</a> (<a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive">GnomeVFSDrive</a> *drive,
66
<a class="link" href="gnome-vfs-20-gnome-vfs-volume.html#GnomeVFSVolumeOpCallback" title="GnomeVFSVolumeOpCallback ()">GnomeVFSVolumeOpCallback</a> callback,
68
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
69
>gpointer</a> user_data);
70
char* <a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#gnome-vfs-drive-get-activation-uri" title="gnome_vfs_drive_get_activation_uri ()">gnome_vfs_drive_get_activation_uri</a> (<a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive">GnomeVFSDrive</a> *drive);
71
char* <a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#gnome-vfs-drive-get-device-path" title="gnome_vfs_drive_get_device_path ()">gnome_vfs_drive_get_device_path</a> (<a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive">GnomeVFSDrive</a> *drive);
72
<a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDeviceType" title="enum GnomeVFSDeviceType">GnomeVFSDeviceType</a> <a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#gnome-vfs-drive-get-device-type" title="gnome_vfs_drive_get_device_type ()">gnome_vfs_drive_get_device_type</a> (<a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive">GnomeVFSDrive</a> *drive);
73
char* <a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#gnome-vfs-drive-get-display-name" title="gnome_vfs_drive_get_display_name ()">gnome_vfs_drive_get_display_name</a> (<a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive">GnomeVFSDrive</a> *drive);
74
char* <a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#gnome-vfs-drive-get-hal-udi" title="gnome_vfs_drive_get_hal_udi ()">gnome_vfs_drive_get_hal_udi</a> (<a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive">GnomeVFSDrive</a> *drive);
75
char* <a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#gnome-vfs-drive-get-icon" title="gnome_vfs_drive_get_icon ()">gnome_vfs_drive_get_icon</a> (<a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive">GnomeVFSDrive</a> *drive);
77
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gulong"
78
>gulong</a> <a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#gnome-vfs-drive-get-id" title="gnome_vfs_drive_get_id ()">gnome_vfs_drive_get_id</a> (<a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive">GnomeVFSDrive</a> *drive);
79
<a class="link" href="gnome-vfs-20-gnome-vfs-volume.html#GnomeVFSVolume">GnomeVFSVolume</a>* <a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#gnome-vfs-drive-get-mounted-volume" title="gnome_vfs_drive_get_mounted_volume ()">gnome_vfs_drive_get_mounted_volume</a> (<a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive">GnomeVFSDrive</a> *drive);
81
href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"
82
>GList</a>* <a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#gnome-vfs-drive-get-mounted-volumes" title="gnome_vfs_drive_get_mounted_volumes ()">gnome_vfs_drive_get_mounted_volumes</a> (<a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive">GnomeVFSDrive</a> *drive);
83
void <a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#gnome-vfs-drive-volume-list-free" title="gnome_vfs_drive_volume_list_free ()">gnome_vfs_drive_volume_list_free</a> (<a
84
href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"
87
href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#GType"
88
>GType</a> <a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#gnome-vfs-drive-get-type" title="gnome_vfs_drive_get_type ()">gnome_vfs_drive_get_type</a> (void);
90
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
91
>gboolean</a> <a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#gnome-vfs-drive-is-connected" title="gnome_vfs_drive_is_connected ()">gnome_vfs_drive_is_connected</a> (<a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive">GnomeVFSDrive</a> *drive);
93
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
94
>gboolean</a> <a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#gnome-vfs-drive-is-mounted" title="gnome_vfs_drive_is_mounted ()">gnome_vfs_drive_is_mounted</a> (<a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive">GnomeVFSDrive</a> *drive);
96
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
97
>gboolean</a> <a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#gnome-vfs-drive-is-user-visible" title="gnome_vfs_drive_is_user_visible ()">gnome_vfs_drive_is_user_visible</a> (<a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive">GnomeVFSDrive</a> *drive);
98
void <a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#gnome-vfs-drive-mount" title="gnome_vfs_drive_mount ()">gnome_vfs_drive_mount</a> (<a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive">GnomeVFSDrive</a> *drive,
99
<a class="link" href="gnome-vfs-20-gnome-vfs-volume.html#GnomeVFSVolumeOpCallback" title="GnomeVFSVolumeOpCallback ()">GnomeVFSVolumeOpCallback</a> callback,
101
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
102
>gpointer</a> user_data);
103
<a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive">GnomeVFSDrive</a>* <a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#gnome-vfs-drive-ref" title="gnome_vfs_drive_ref ()">gnome_vfs_drive_ref</a> (<a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive">GnomeVFSDrive</a> *drive);
104
void <a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#gnome-vfs-drive-unmount" title="gnome_vfs_drive_unmount ()">gnome_vfs_drive_unmount</a> (<a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive">GnomeVFSDrive</a> *drive,
105
<a class="link" href="gnome-vfs-20-gnome-vfs-volume.html#GnomeVFSVolumeOpCallback" title="GnomeVFSVolumeOpCallback ()">GnomeVFSVolumeOpCallback</a> callback,
107
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
108
>gpointer</a> user_data);
109
void <a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#gnome-vfs-drive-unref" title="gnome_vfs_drive_unref ()">gnome_vfs_drive_unref</a> (<a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive">GnomeVFSDrive</a> *drive);
95
112
<div class="refsect1" lang="en">
96
<a name="id2660474"></a><h2>Object Hierarchy</h2>
113
<a name="gnome-vfs-20-gnome-vfs-drive.object-hierarchy"></a><h2>Object Hierarchy</h2>
97
114
<pre class="synopsis">
116
href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject"
100
118
+----GnomeVFSDrive
103
121
<div class="refsect1" lang="en">
104
<a name="id2660498"></a><h2>Signals</h2>
122
<a name="gnome-vfs-20-gnome-vfs-drive.signals"></a><h2>Signals</h2>
105
123
<pre class="synopsis">
107
"<a href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive-volume-mounted">volume-mounted</a>" : Run First
108
"<a href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive-volume-pre-unmount">volume-pre-unmount</a>" : Run First
109
"<a href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive-volume-unmounted">volume-unmounted</a>" : Run First
124
"<a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive-volume-mounted" title='The "volume-mounted" signal'>volume-mounted</a>" : Run First
125
"<a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive-volume-pre-unmount" title='The "volume-pre-unmount" signal'>volume-pre-unmount</a>" : Run First
126
"<a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive-volume-unmounted" title='The "volume-unmounted" signal'>volume-unmounted</a>" : Run First
112
129
<div class="refsect1" lang="en">
113
<a name="id2660548"></a><h2>Description</h2>
130
<a name="gnome-vfs-20-gnome-vfs-drive.description"></a><h2>Description</h2>
118
135
<div class="refsect1" lang="en">
119
<a name="id2660563"></a><h2>Details</h2>
136
<a name="gnome-vfs-20-gnome-vfs-drive.details"></a><h2>Details</h2>
120
137
<div class="refsect2" lang="en">
121
<a name="id2660573"></a><h3>
122
<a name="GnomeVFSDeviceType"></a>enum GnomeVFSDeviceType</h3>
123
<a class="indexterm" name="id2660586"></a><pre class="programlisting">typedef enum {
138
<a name="GnomeVFSDeviceType"></a><h3>enum GnomeVFSDeviceType</h3>
139
<pre class="programlisting">typedef enum {
124
140
GNOME_VFS_DEVICE_TYPE_UNKNOWN,
125
141
GNOME_VFS_DEVICE_TYPE_AUDIO_CD,
126
142
GNOME_VFS_DEVICE_TYPE_VIDEO_DVD,
150
166
<col align="left" valign="top">
153
<td><span class="term"><a name="GNOME-VFS-DEVICE-TYPE-UNKNOWN:CAPS"></a><code class="literal">GNOME_VFS_DEVICE_TYPE_UNKNOWN</code></span></td>
154
<td> the type of this <a href="gnome-vfs-20-gnome-vfs-volume.html#GnomeVFSVolume"><span class="type">GnomeVFSVolume</span></a> or <a href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive"><span class="type">GnomeVFSDrive</span></a> is not known.
169
<td><p><a name="GNOME-VFS-DEVICE-TYPE-UNKNOWN:CAPS"></a><span class="term"><code class="literal">GNOME_VFS_DEVICE_TYPE_UNKNOWN</code></span></p></td>
170
<td> the type of this <a class="link" href="gnome-vfs-20-gnome-vfs-volume.html#GnomeVFSVolume"><span class="type">GnomeVFSVolume</span></a> or <a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive"><span class="type">GnomeVFSDrive</span></a> is not known.
158
<td><span class="term"><a name="GNOME-VFS-DEVICE-TYPE-AUDIO-CD:CAPS"></a><code class="literal">GNOME_VFS_DEVICE_TYPE_AUDIO_CD</code></span></td>
159
<td> only used for <a href="gnome-vfs-20-gnome-vfs-volume.html#GnomeVFSVolume"><span class="type">GnomeVFSVolume</span></a> objects. Denotes that this
174
<td><p><a name="GNOME-VFS-DEVICE-TYPE-AUDIO-CD:CAPS"></a><span class="term"><code class="literal">GNOME_VFS_DEVICE_TYPE_AUDIO_CD</code></span></p></td>
175
<td> only used for <a class="link" href="gnome-vfs-20-gnome-vfs-volume.html#GnomeVFSVolume"><span class="type">GnomeVFSVolume</span></a> objects. Denotes that this
160
176
volume is an audio CD.
164
<td><span class="term"><a name="GNOME-VFS-DEVICE-TYPE-VIDEO-DVD:CAPS"></a><code class="literal">GNOME_VFS_DEVICE_TYPE_VIDEO_DVD</code></span></td>
165
<td> only used for <a href="gnome-vfs-20-gnome-vfs-volume.html#GnomeVFSVolume"><span class="type">GnomeVFSVolume</span></a> objects. Denotes that this
180
<td><p><a name="GNOME-VFS-DEVICE-TYPE-VIDEO-DVD:CAPS"></a><span class="term"><code class="literal">GNOME_VFS_DEVICE_TYPE_VIDEO_DVD</code></span></p></td>
181
<td> only used for <a class="link" href="gnome-vfs-20-gnome-vfs-volume.html#GnomeVFSVolume"><span class="type">GnomeVFSVolume</span></a> objects. Denotes that this
166
182
volume is a video DVD.
170
<td><span class="term"><a name="GNOME-VFS-DEVICE-TYPE-HARDDRIVE:CAPS"></a><code class="literal">GNOME_VFS_DEVICE_TYPE_HARDDRIVE</code></span></td>
186
<td><p><a name="GNOME-VFS-DEVICE-TYPE-HARDDRIVE:CAPS"></a><span class="term"><code class="literal">GNOME_VFS_DEVICE_TYPE_HARDDRIVE</code></span></p></td>
171
187
<td> this is a mount point refering to a harddisk partition that
172
188
neither has a Microsoft file system (FAT, VFAT, NTFS) nor an Apple file system (HFS, HFS+).
176
<td><span class="term"><a name="GNOME-VFS-DEVICE-TYPE-CDROM:CAPS"></a><code class="literal">GNOME_VFS_DEVICE_TYPE_CDROM</code></span></td>
192
<td><p><a name="GNOME-VFS-DEVICE-TYPE-CDROM:CAPS"></a><span class="term"><code class="literal">GNOME_VFS_DEVICE_TYPE_CDROM</code></span></p></td>
177
193
<td> this may either be a mount point or a HAL drive/volume. Either way,
178
194
it refers to a CD-ROM device respectively volume.
182
<td><span class="term"><a name="GNOME-VFS-DEVICE-TYPE-FLOPPY:CAPS"></a><code class="literal">GNOME_VFS_DEVICE_TYPE_FLOPPY</code></span></td>
183
<td> the volume or drive referenced by this <a href="gnome-vfs-20-gnome-vfs-volume.html#GnomeVFSVolume"><span class="type">GnomeVFSVolume</span></a> or
184
<a href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive"><span class="type">GnomeVFSDrive</span></a> is a floppy disc respectively a floppy drive.
188
<td><span class="term"><a name="GNOME-VFS-DEVICE-TYPE-ZIP:CAPS"></a><code class="literal">GNOME_VFS_DEVICE_TYPE_ZIP</code></span></td>
189
<td> the volume or drive referenced by this <a href="gnome-vfs-20-gnome-vfs-volume.html#GnomeVFSVolume"><span class="type">GnomeVFSVolume</span></a> or
190
<a href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive"><span class="type">GnomeVFSDrive</span></a> is a ZIP disc respectively a ZIP drive.
194
<td><span class="term"><a name="GNOME-VFS-DEVICE-TYPE-JAZ:CAPS"></a><code class="literal">GNOME_VFS_DEVICE_TYPE_JAZ</code></span></td>
195
<td> the volume or drive referenced by this <a href="gnome-vfs-20-gnome-vfs-volume.html#GnomeVFSVolume"><span class="type">GnomeVFSVolume</span></a> or
196
<a href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive"><span class="type">GnomeVFSDrive</span></a> is a JAZ disc respectively a JAZ drive.
200
<td><span class="term"><a name="GNOME-VFS-DEVICE-TYPE-NFS:CAPS"></a><code class="literal">GNOME_VFS_DEVICE_TYPE_NFS</code></span></td>
198
<td><p><a name="GNOME-VFS-DEVICE-TYPE-FLOPPY:CAPS"></a><span class="term"><code class="literal">GNOME_VFS_DEVICE_TYPE_FLOPPY</code></span></p></td>
199
<td> the volume or drive referenced by this <a class="link" href="gnome-vfs-20-gnome-vfs-volume.html#GnomeVFSVolume"><span class="type">GnomeVFSVolume</span></a> or
200
<a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive"><span class="type">GnomeVFSDrive</span></a> is a floppy disc respectively a floppy drive.
204
<td><p><a name="GNOME-VFS-DEVICE-TYPE-ZIP:CAPS"></a><span class="term"><code class="literal">GNOME_VFS_DEVICE_TYPE_ZIP</code></span></p></td>
205
<td> the volume or drive referenced by this <a class="link" href="gnome-vfs-20-gnome-vfs-volume.html#GnomeVFSVolume"><span class="type">GnomeVFSVolume</span></a> or
206
<a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive"><span class="type">GnomeVFSDrive</span></a> is a ZIP disc respectively a ZIP drive.
210
<td><p><a name="GNOME-VFS-DEVICE-TYPE-JAZ:CAPS"></a><span class="term"><code class="literal">GNOME_VFS_DEVICE_TYPE_JAZ</code></span></p></td>
211
<td> the volume or drive referenced by this <a class="link" href="gnome-vfs-20-gnome-vfs-volume.html#GnomeVFSVolume"><span class="type">GnomeVFSVolume</span></a> or
212
<a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive"><span class="type">GnomeVFSDrive</span></a> is a JAZ disc respectively a JAZ drive.
216
<td><p><a name="GNOME-VFS-DEVICE-TYPE-NFS:CAPS"></a><span class="term"><code class="literal">GNOME_VFS_DEVICE_TYPE_NFS</code></span></p></td>
201
217
<td> this is a mount point having an NFS file system.
205
<td><span class="term"><a name="GNOME-VFS-DEVICE-TYPE-AUTOFS:CAPS"></a><code class="literal">GNOME_VFS_DEVICE_TYPE_AUTOFS</code></span></td>
221
<td><p><a name="GNOME-VFS-DEVICE-TYPE-AUTOFS:CAPS"></a><span class="term"><code class="literal">GNOME_VFS_DEVICE_TYPE_AUTOFS</code></span></p></td>
206
222
<td> this is a mount point having an AutoFS file system.
210
<td><span class="term"><a name="GNOME-VFS-DEVICE-TYPE-CAMERA:CAPS"></a><code class="literal">GNOME_VFS_DEVICE_TYPE_CAMERA</code></span></td>
211
<td> only used for <a href="gnome-vfs-20-gnome-vfs-volume.html#GnomeVFSVolume"><span class="type">GnomeVFSVolume</span></a> objects. Denotes that this volume is a camera.
215
<td><span class="term"><a name="GNOME-VFS-DEVICE-TYPE-MEMORY-STICK:CAPS"></a><code class="literal">GNOME_VFS_DEVICE_TYPE_MEMORY_STICK</code></span></td>
216
<td> only used for <a href="gnome-vfs-20-gnome-vfs-volume.html#GnomeVFSVolume"><span class="type">GnomeVFSVolume</span></a> objects. Denotes that this volume is a memory stick.
220
<td><span class="term"><a name="GNOME-VFS-DEVICE-TYPE-SMB:CAPS"></a><code class="literal">GNOME_VFS_DEVICE_TYPE_SMB</code></span></td>
226
<td><p><a name="GNOME-VFS-DEVICE-TYPE-CAMERA:CAPS"></a><span class="term"><code class="literal">GNOME_VFS_DEVICE_TYPE_CAMERA</code></span></p></td>
227
<td> only used for <a class="link" href="gnome-vfs-20-gnome-vfs-volume.html#GnomeVFSVolume"><span class="type">GnomeVFSVolume</span></a> objects. Denotes that this volume is a camera.
231
<td><p><a name="GNOME-VFS-DEVICE-TYPE-MEMORY-STICK:CAPS"></a><span class="term"><code class="literal">GNOME_VFS_DEVICE_TYPE_MEMORY_STICK</code></span></p></td>
232
<td> only used for <a class="link" href="gnome-vfs-20-gnome-vfs-volume.html#GnomeVFSVolume"><span class="type">GnomeVFSVolume</span></a> objects. Denotes that this volume is a memory stick.
236
<td><p><a name="GNOME-VFS-DEVICE-TYPE-SMB:CAPS"></a><span class="term"><code class="literal">GNOME_VFS_DEVICE_TYPE_SMB</code></span></p></td>
221
237
<td> this is a mount point having a Samba file system.
225
<td><span class="term"><a name="GNOME-VFS-DEVICE-TYPE-APPLE:CAPS"></a><code class="literal">GNOME_VFS_DEVICE_TYPE_APPLE</code></span></td>
241
<td><p><a name="GNOME-VFS-DEVICE-TYPE-APPLE:CAPS"></a><span class="term"><code class="literal">GNOME_VFS_DEVICE_TYPE_APPLE</code></span></p></td>
226
242
<td> this is a mount point refering to a harddisk partition, that has an
227
243
Apple file system (HFS, HFS+).
231
<td><span class="term"><a name="GNOME-VFS-DEVICE-TYPE-MUSIC-PLAYER:CAPS"></a><code class="literal">GNOME_VFS_DEVICE_TYPE_MUSIC_PLAYER</code></span></td>
232
<td> only used for <a href="gnome-vfs-20-gnome-vfs-volume.html#GnomeVFSVolume"><span class="type">GnomeVFSVolume</span></a> objects. Denotes that this
247
<td><p><a name="GNOME-VFS-DEVICE-TYPE-MUSIC-PLAYER:CAPS"></a><span class="term"><code class="literal">GNOME_VFS_DEVICE_TYPE_MUSIC_PLAYER</code></span></p></td>
248
<td> only used for <a class="link" href="gnome-vfs-20-gnome-vfs-volume.html#GnomeVFSVolume"><span class="type">GnomeVFSVolume</span></a> objects. Denotes that this
233
249
volume is a music player.
237
<td><span class="term"><a name="GNOME-VFS-DEVICE-TYPE-WINDOWS:CAPS"></a><code class="literal">GNOME_VFS_DEVICE_TYPE_WINDOWS</code></span></td>
253
<td><p><a name="GNOME-VFS-DEVICE-TYPE-WINDOWS:CAPS"></a><span class="term"><code class="literal">GNOME_VFS_DEVICE_TYPE_WINDOWS</code></span></p></td>
238
254
<td> this is a mount point refering to a harddisk partition, that has a
239
255
Microsoft file system (FAT, VFAT, NTFS).
243
<td><span class="term"><a name="GNOME-VFS-DEVICE-TYPE-LOOPBACK:CAPS"></a><code class="literal">GNOME_VFS_DEVICE_TYPE_LOOPBACK</code></span></td>
259
<td><p><a name="GNOME-VFS-DEVICE-TYPE-LOOPBACK:CAPS"></a><span class="term"><code class="literal">GNOME_VFS_DEVICE_TYPE_LOOPBACK</code></span></p></td>
244
260
<td> this is a mount point refering to a loopback device.
248
<td><span class="term"><a name="GNOME-VFS-DEVICE-TYPE-NETWORK:CAPS"></a><code class="literal">GNOME_VFS_DEVICE_TYPE_NETWORK</code></span></td>
249
<td> only used for <a href="gnome-vfs-20-gnome-vfs-volume.html#GnomeVFSVolume"><span class="type">GnomeVFSVolume</span></a> objects, denoting that this volume
264
<td><p><a name="GNOME-VFS-DEVICE-TYPE-NETWORK:CAPS"></a><span class="term"><code class="literal">GNOME_VFS_DEVICE_TYPE_NETWORK</code></span></p></td>
265
<td> only used for <a class="link" href="gnome-vfs-20-gnome-vfs-volume.html#GnomeVFSVolume"><span class="type">GnomeVFSVolume</span></a> objects, denoting that this volume
250
266
refers to a network mount that is not managed by the kernel VFS but exclusively known to GnomeVFS.
285
299
<div class="refsect2" lang="en">
286
<a name="id2661250"></a><h3>
287
<a name="GNOME-IS-VFS-DRIVE:CAPS"></a>GNOME_IS_VFS_DRIVE()</h3>
288
<a class="indexterm" name="id2661263"></a><pre class="programlisting">#define GNOME_IS_VFS_DRIVE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GNOME_VFS_TYPE_DRIVE))
293
<div class="variablelist"><table border="0">
294
<col align="left" valign="top">
296
<td><span class="term"><em class="parameter"><code>o</code></em> :</span></td>
305
<div class="refsect2" lang="en">
306
<a name="id2661297"></a><h3>
307
<a name="GNOME-IS-VFS-DRIVE-CLASS:CAPS"></a>GNOME_IS_VFS_DRIVE_CLASS()</h3>
308
<a class="indexterm" name="id2661311"></a><pre class="programlisting">#define GNOME_IS_VFS_DRIVE_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GNOME_VFS_TYPE_DRIVE))
313
<div class="variablelist"><table border="0">
314
<col align="left" valign="top">
316
<td><span class="term"><em class="parameter"><code>k</code></em> :</span></td>
325
<div class="refsect2" lang="en">
326
<a name="id2661345"></a><h3>
327
<a name="GNOME-VFS-TYPE-DRIVE:CAPS"></a>GNOME_VFS_TYPE_DRIVE</h3>
328
<a class="indexterm" name="id2661358"></a><pre class="programlisting">#define GNOME_VFS_TYPE_DRIVE (gnome_vfs_drive_get_type ())
335
<div class="refsect2" lang="en">
336
<a name="id2661374"></a><h3>
337
<a name="GNOME-VFS-DRIVE:CAPS"></a>GNOME_VFS_DRIVE()</h3>
338
<a class="indexterm" name="id2661388"></a><pre class="programlisting">#define GNOME_VFS_DRIVE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GNOME_VFS_TYPE_DRIVE, GnomeVFSDrive))
343
<div class="variablelist"><table border="0">
344
<col align="left" valign="top">
346
<td><span class="term"><em class="parameter"><code>o</code></em> :</span></td>
355
<div class="refsect2" lang="en">
356
<a name="id2661422"></a><h3>
357
<a name="GNOME-VFS-DRIVE-CLASS:CAPS"></a>GNOME_VFS_DRIVE_CLASS()</h3>
358
<a class="indexterm" name="id2661435"></a><pre class="programlisting">#define GNOME_VFS_DRIVE_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), GNOME_VFS_TYPE_DRIVE, GnomeVFSDriveClass))
363
<div class="variablelist"><table border="0">
364
<col align="left" valign="top">
366
<td><span class="term"><em class="parameter"><code>k</code></em> :</span></td>
375
<div class="refsect2" lang="en">
376
<a name="id2661470"></a><h3>
377
<a name="gnome-vfs-drive-compare"></a>gnome_vfs_drive_compare ()</h3>
378
<a class="indexterm" name="id2661485"></a><pre class="programlisting">gint gnome_vfs_drive_compare (<a href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive">GnomeVFSDrive</a> *a,
379
<a href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive">GnomeVFSDrive</a> *b);</pre>
381
Compares two <a href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive"><span class="type">GnomeVFSDrive</span></a> objects <em class="parameter"><code>a</code></em> and <em class="parameter"><code>b</code></em>. Two
382
<a href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive"><span class="type">GnomeVFSDrive</span></a> objects referring to different drives
300
<a name="GNOME-IS-VFS-DRIVE:CAPS"></a><h3>GNOME_IS_VFS_DRIVE()</h3>
301
<pre class="programlisting">#define GNOME_IS_VFS_DRIVE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GNOME_VFS_TYPE_DRIVE))
306
<div class="variablelist"><table border="0">
307
<col align="left" valign="top">
309
<td><p><span class="term"><em class="parameter"><code>o</code></em> :</span></p></td>
318
<div class="refsect2" lang="en">
319
<a name="GNOME-IS-VFS-DRIVE-CLASS:CAPS"></a><h3>GNOME_IS_VFS_DRIVE_CLASS()</h3>
320
<pre class="programlisting">#define GNOME_IS_VFS_DRIVE_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GNOME_VFS_TYPE_DRIVE))
325
<div class="variablelist"><table border="0">
326
<col align="left" valign="top">
328
<td><p><span class="term"><em class="parameter"><code>k</code></em> :</span></p></td>
337
<div class="refsect2" lang="en">
338
<a name="GNOME-VFS-TYPE-DRIVE:CAPS"></a><h3>GNOME_VFS_TYPE_DRIVE</h3>
339
<pre class="programlisting">#define GNOME_VFS_TYPE_DRIVE (gnome_vfs_drive_get_type ())
346
<div class="refsect2" lang="en">
347
<a name="GNOME-VFS-DRIVE:CAPS"></a><h3>GNOME_VFS_DRIVE()</h3>
348
<pre class="programlisting">#define GNOME_VFS_DRIVE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GNOME_VFS_TYPE_DRIVE, GnomeVFSDrive))
353
<div class="variablelist"><table border="0">
354
<col align="left" valign="top">
356
<td><p><span class="term"><em class="parameter"><code>o</code></em> :</span></p></td>
365
<div class="refsect2" lang="en">
366
<a name="GNOME-VFS-DRIVE-CLASS:CAPS"></a><h3>GNOME_VFS_DRIVE_CLASS()</h3>
367
<pre class="programlisting">#define GNOME_VFS_DRIVE_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), GNOME_VFS_TYPE_DRIVE, GnomeVFSDriveClass))
372
<div class="variablelist"><table border="0">
373
<col align="left" valign="top">
375
<td><p><span class="term"><em class="parameter"><code>k</code></em> :</span></p></td>
384
<div class="refsect2" lang="en">
385
<a name="gnome-vfs-drive-compare"></a><h3>gnome_vfs_drive_compare ()</h3>
386
<pre class="programlisting"><a
387
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
388
>gint</a> gnome_vfs_drive_compare (<a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive">GnomeVFSDrive</a> *a,
389
<a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive">GnomeVFSDrive</a> *b);</pre>
391
Compares two <a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive"><span class="type">GnomeVFSDrive</span></a> objects <em class="parameter"><code>a</code></em> and <em class="parameter"><code>b</code></em>. Two
392
<a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive"><span class="type">GnomeVFSDrive</span></a> objects referring to different drives
383
393
are guaranteed to not return 0 when comparing them,
384
394
if they refer to the same drive 0 is returned.
387
The resulting <span class="type">gint</span> should be used to determine the
398
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
399
><span class="type">gint</span></a> should be used to determine the
388
400
order in which <em class="parameter"><code>a</code></em> and <em class="parameter"><code>b</code></em> are displayed in graphical
444
458
<div class="refsect2" lang="en">
445
<a name="id2661761"></a><h3>
446
<a name="gnome-vfs-drive-eject"></a>gnome_vfs_drive_eject ()</h3>
447
<a class="indexterm" name="id2661777"></a><pre class="programlisting">void gnome_vfs_drive_eject (<a href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive">GnomeVFSDrive</a> *drive,
448
<a href="gnome-vfs-20-gnome-vfs-volume.html#GnomeVFSVolumeOpCallback">GnomeVFSVolumeOpCallback</a> callback,
449
gpointer user_data);</pre>
459
<a name="gnome-vfs-drive-eject"></a><h3>gnome_vfs_drive_eject ()</h3>
460
<pre class="programlisting">void gnome_vfs_drive_eject (<a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive">GnomeVFSDrive</a> *drive,
461
<a class="link" href="gnome-vfs-20-gnome-vfs-volume.html#GnomeVFSVolumeOpCallback" title="GnomeVFSVolumeOpCallback ()">GnomeVFSVolumeOpCallback</a> callback,
463
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
464
>gpointer</a> user_data);</pre>
451
If <em class="parameter"><code>drive</code></em> has associated <a href="gnome-vfs-20-gnome-vfs-volume.html#GnomeVFSVolume"><span class="type">GnomeVFSVolume</span></a> objects, all of them will be
452
unmounted by calling <a href="gnome-vfs-20-gnome-vfs-volume.html#gnome-vfs-volume-unmount"><code class="function">gnome_vfs_volume_unmount()</code></a> for each volume in
453
<a href="gnome-vfs-20-gnome-vfs-drive.html#gnome-vfs-drive-get-mounted-volumes"><code class="function">gnome_vfs_drive_get_mounted_volumes()</code></a>, except for the last one,
454
for which <a href="gnome-vfs-20-gnome-vfs-volume.html#gnome-vfs-volume-eject"><code class="function">gnome_vfs_volume_eject()</code></a> is called to ensure that the
466
If <em class="parameter"><code>drive</code></em> has associated <a class="link" href="gnome-vfs-20-gnome-vfs-volume.html#GnomeVFSVolume"><span class="type">GnomeVFSVolume</span></a> objects, all of them will be
467
unmounted by calling <a class="link" href="gnome-vfs-20-gnome-vfs-volume.html#gnome-vfs-volume-unmount" title="gnome_vfs_volume_unmount ()"><code class="function">gnome_vfs_volume_unmount()</code></a> for each volume in
468
<a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#gnome-vfs-drive-get-mounted-volumes" title="gnome_vfs_drive_get_mounted_volumes ()"><code class="function">gnome_vfs_drive_get_mounted_volumes()</code></a>, except for the last one,
469
for which <a class="link" href="gnome-vfs-20-gnome-vfs-volume.html#gnome-vfs-volume-eject" title="gnome_vfs_volume_eject ()"><code class="function">gnome_vfs_volume_eject()</code></a> is called to ensure that the
455
470
<em class="parameter"><code>drive</code></em>'s media is ejected.
458
If <em class="parameter"><code>drive</code></em> however has no associated <a href="gnome-vfs-20-gnome-vfs-volume.html#GnomeVFSVolume"><span class="type">GnomeVFSVolume</span></a> objects, it
473
If <em class="parameter"><code>drive</code></em> however has no associated <a class="link" href="gnome-vfs-20-gnome-vfs-volume.html#GnomeVFSVolume"><span class="type">GnomeVFSVolume</span></a> objects, it
459
474
simply calls an unmount helper on the <em class="parameter"><code>drive</code></em>.</p>
809
835
<div class="refsect2" lang="en">
810
<a name="id2663188"></a><h3>
811
<a name="gnome-vfs-drive-is-connected"></a>gnome_vfs_drive_is_connected ()</h3>
812
<a class="indexterm" name="id2663204"></a><pre class="programlisting">gboolean gnome_vfs_drive_is_connected (<a href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive">GnomeVFSDrive</a> *drive);</pre>
818
<div class="variablelist"><table border="0">
819
<col align="left" valign="top">
822
<td><span class="term"><em class="parameter"><code>drive</code></em> :</span></td>
823
<td> a <a href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive"><span class="type">GnomeVFSDrive</span></a>.
827
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
828
<td> <code class="literal">TRUE</code> if the <em class="parameter"><code>drive</code></em> is connected, <code class="literal">FALSE</code> otherwise.
834
<p class="since">Since 2.6
838
<div class="refsect2" lang="en">
839
<a name="id2663305"></a><h3>
840
<a name="gnome-vfs-drive-is-mounted"></a>gnome_vfs_drive_is_mounted ()</h3>
841
<a class="indexterm" name="id2663322"></a><pre class="programlisting">gboolean gnome_vfs_drive_is_mounted (<a href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive">GnomeVFSDrive</a> *drive);</pre>
847
<div class="variablelist"><table border="0">
848
<col align="left" valign="top">
851
<td><span class="term"><em class="parameter"><code>drive</code></em> :</span></td>
852
<td> a <a href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive"><span class="type">GnomeVFSDrive</span></a>.
856
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
857
<td> <code class="literal">TRUE</code> if the <em class="parameter"><code>drive</code></em> is mounted, <code class="literal">FALSE</code> otherwise.
863
<p class="since">Since 2.6
867
<div class="refsect2" lang="en">
868
<a name="id2663423"></a><h3>
869
<a name="gnome-vfs-drive-is-user-visible"></a>gnome_vfs_drive_is_user_visible ()</h3>
870
<a class="indexterm" name="id2663439"></a><pre class="programlisting">gboolean gnome_vfs_drive_is_user_visible (<a href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive">GnomeVFSDrive</a> *drive);</pre>
836
<a name="gnome-vfs-drive-is-connected"></a><h3>gnome_vfs_drive_is_connected ()</h3>
837
<pre class="programlisting"><a
838
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
839
>gboolean</a> gnome_vfs_drive_is_connected (<a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive">GnomeVFSDrive</a> *drive);</pre>
845
<div class="variablelist"><table border="0">
846
<col align="left" valign="top">
849
<td><p><span class="term"><em class="parameter"><code>drive</code></em> :</span></p></td>
850
<td> a <a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive"><span class="type">GnomeVFSDrive</span></a>.
854
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
856
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
857
><code class="literal">TRUE</code></a> if the <em class="parameter"><code>drive</code></em> is connected, <a
858
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"
859
><code class="literal">FALSE</code></a> otherwise.
865
<p class="since">Since 2.6
869
<div class="refsect2" lang="en">
870
<a name="gnome-vfs-drive-is-mounted"></a><h3>gnome_vfs_drive_is_mounted ()</h3>
871
<pre class="programlisting"><a
872
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
873
>gboolean</a> gnome_vfs_drive_is_mounted (<a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive">GnomeVFSDrive</a> *drive);</pre>
879
<div class="variablelist"><table border="0">
880
<col align="left" valign="top">
883
<td><p><span class="term"><em class="parameter"><code>drive</code></em> :</span></p></td>
884
<td> a <a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive"><span class="type">GnomeVFSDrive</span></a>.
888
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
890
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
891
><code class="literal">TRUE</code></a> if the <em class="parameter"><code>drive</code></em> is mounted, <a
892
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"
893
><code class="literal">FALSE</code></a> otherwise.
899
<p class="since">Since 2.6
903
<div class="refsect2" lang="en">
904
<a name="gnome-vfs-drive-is-user-visible"></a><h3>gnome_vfs_drive_is_user_visible ()</h3>
905
<pre class="programlisting"><a
906
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
907
>gboolean</a> gnome_vfs_drive_is_user_visible (<a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive">GnomeVFSDrive</a> *drive);</pre>
872
909
Returns whether the <em class="parameter"><code>drive</code></em> is visible to the user. This
873
910
should be used by applications to determine whether it
963
1012
<div class="refsect2" lang="en">
964
<a name="id2663846"></a><h3>
965
<a name="gnome-vfs-drive-unmount"></a>gnome_vfs_drive_unmount ()</h3>
966
<a class="indexterm" name="id2663862"></a><pre class="programlisting">void gnome_vfs_drive_unmount (<a href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive">GnomeVFSDrive</a> *drive,
967
<a href="gnome-vfs-20-gnome-vfs-volume.html#GnomeVFSVolumeOpCallback">GnomeVFSVolumeOpCallback</a> callback,
968
gpointer user_data);</pre>
1013
<a name="gnome-vfs-drive-unmount"></a><h3>gnome_vfs_drive_unmount ()</h3>
1014
<pre class="programlisting">void gnome_vfs_drive_unmount (<a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive">GnomeVFSDrive</a> *drive,
1015
<a class="link" href="gnome-vfs-20-gnome-vfs-volume.html#GnomeVFSVolumeOpCallback" title="GnomeVFSVolumeOpCallback ()">GnomeVFSVolumeOpCallback</a> callback,
1017
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
1018
>gpointer</a> user_data);</pre>
970
<a href="gnome-vfs-20-gnome-vfs-drive.html#gnome-vfs-drive-unmount"><code class="function">gnome_vfs_drive_unmount()</code></a> invokes <a href="gnome-vfs-20-gnome-vfs-drive.html#gnome-vfs-drive-eject"><code class="function">gnome_vfs_drive_eject()</code></a>, if the <em class="parameter"><code>drive</code></em> signals
1020
<a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#gnome-vfs-drive-unmount" title="gnome_vfs_drive_unmount ()"><code class="function">gnome_vfs_drive_unmount()</code></a> invokes <a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#gnome-vfs-drive-eject" title="gnome_vfs_drive_eject ()"><code class="function">gnome_vfs_drive_eject()</code></a>, if the <em class="parameter"><code>drive</code></em> signals
971
1021
that it should be ejected when it is unmounted. This may be true for CD-ROMs,
972
USB sticks and other devices, depending on the backend providing the <a href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive"><span class="type">GnomeVFSDrive</span></a> <em class="parameter"><code>drive</code></em>.
1022
USB sticks and other devices, depending on the backend providing the <a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive"><span class="type">GnomeVFSDrive</span></a> <em class="parameter"><code>drive</code></em>.
975
1025
If the <em class="parameter"><code>drive</code></em> does not signal that it should be ejected when it is unmounted,
976
<a href="gnome-vfs-20-gnome-vfs-drive.html#gnome-vfs-drive-unmount"><code class="function">gnome_vfs_drive_unmount()</code></a> calls <a href="gnome-vfs-20-gnome-vfs-volume.html#gnome-vfs-volume-unmount"><code class="function">gnome_vfs_volume_unmount()</code></a> for each of the
1026
<a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#gnome-vfs-drive-unmount" title="gnome_vfs_drive_unmount ()"><code class="function">gnome_vfs_drive_unmount()</code></a> calls <a class="link" href="gnome-vfs-20-gnome-vfs-volume.html#gnome-vfs-volume-unmount" title="gnome_vfs_volume_unmount ()"><code class="function">gnome_vfs_volume_unmount()</code></a> for each of the
977
1027
<em class="parameter"><code>drive</code></em>'s mounted <span class="type">GnomeVFSVolumes</span>, which can be queried using
978
<a href="gnome-vfs-20-gnome-vfs-drive.html#gnome-vfs-drive-get-mounted-volumes"><code class="function">gnome_vfs_drive_get_mounted_volumes()</code></a>.</p>
1028
<a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#gnome-vfs-drive-get-mounted-volumes" title="gnome_vfs_drive_get_mounted_volumes ()"><code class="function">gnome_vfs_drive_get_mounted_volumes()</code></a>.</p>
1027
1080
<div class="refsect1" lang="en">
1028
<a name="id2664205"></a><h2>Signal Details</h2>
1081
<a name="gnome-vfs-20-gnome-vfs-drive.signal-details"></a><h2>Signal Details</h2>
1029
1082
<div class="refsect2" lang="en">
1030
<a name="id2664215"></a><h3>
1031
<a name="GnomeVFSDrive-volume-mounted"></a>The "volume-mounted" signal</h3>
1032
<a class="indexterm" name="id2664226"></a><pre class="programlisting">void user_function (<a href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive">GnomeVFSDrive</a> *drive,
1033
<a href="gnome-vfs-20-gnome-vfs-volume.html#GnomeVFSVolume">GnomeVFSVolume</a> *volume,
1034
gpointer user_data) : Run First</pre>
1083
<a name="GnomeVFSDrive-volume-mounted"></a><h3>The <code class="literal">"volume-mounted"</code> signal</h3>
1084
<pre class="programlisting">void user_function (<a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive">GnomeVFSDrive</a> *drive,
1085
<a class="link" href="gnome-vfs-20-gnome-vfs-volume.html#GnomeVFSVolume">GnomeVFSVolume</a> *volume,
1087
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
1088
>gpointer</a> user_data) : Run First</pre>
1036
This signal is emitted after the <a href="gnome-vfs-20-gnome-vfs-volume.html#GnomeVFSVolume"><span class="type">GnomeVFSVolume</span></a> <em class="parameter"><code>volume</code></em> has been mounted.
1090
This signal is emitted after the <a class="link" href="gnome-vfs-20-gnome-vfs-volume.html#GnomeVFSVolume"><span class="type">GnomeVFSVolume</span></a> <em class="parameter"><code>volume</code></em> has been mounted.
1039
1093
When the <em class="parameter"><code>volume</code></em> is mounted, it is added to the <em class="parameter"><code>drive</code></em>'s list of mounted
1040
volumes, which can be queried using <a href="gnome-vfs-20-gnome-vfs-drive.html#gnome-vfs-drive-get-mounted-volumes"><code class="function">gnome_vfs_drive_get_mounted_volumes()</code></a>.
1094
volumes, which can be queried using <a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#gnome-vfs-drive-get-mounted-volumes" title="gnome_vfs_drive_get_mounted_volumes ()"><code class="function">gnome_vfs_drive_get_mounted_volumes()</code></a>.
1043
It is also added to the list of the <a href="gnome-vfs-20-gnome-vfs-volume-monitor.html#GnomeVFSVolumeMonitor"><span class="type">GnomeVFSVolumeMonitor</span></a>'s list of mounted
1044
volumes, which can be queried using <a href="gnome-vfs-20-gnome-vfs-volume-monitor.html#gnome-vfs-volume-monitor-get-mounted-volumes"><code class="function">gnome_vfs_volume_monitor_get_mounted_volumes()</code></a>.</p>
1097
It is also added to the list of the <a class="link" href="gnome-vfs-20-gnome-vfs-volume-monitor.html#GnomeVFSVolumeMonitor"><span class="type">GnomeVFSVolumeMonitor</span></a>'s list of mounted
1098
volumes, which can be queried using <a class="link" href="gnome-vfs-20-gnome-vfs-volume-monitor.html#gnome-vfs-volume-monitor-get-mounted-volumes" title="gnome_vfs_volume_monitor_get_mounted_volumes ()"><code class="function">gnome_vfs_volume_monitor_get_mounted_volumes()</code></a>.</p>
1069
1123
<div class="refsect2" lang="en">
1070
<a name="id2664406"></a><h3>
1071
<a name="GnomeVFSDrive-volume-pre-unmount"></a>The "volume-pre-unmount" signal</h3>
1072
<a class="indexterm" name="id2664417"></a><pre class="programlisting">void user_function (<a href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive">GnomeVFSDrive</a> *drive,
1073
<a href="gnome-vfs-20-gnome-vfs-volume.html#GnomeVFSVolume">GnomeVFSVolume</a> *volume,
1074
gpointer user_data) : Run First</pre>
1124
<a name="GnomeVFSDrive-volume-pre-unmount"></a><h3>The <code class="literal">"volume-pre-unmount"</code> signal</h3>
1125
<pre class="programlisting">void user_function (<a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive">GnomeVFSDrive</a> *drive,
1126
<a class="link" href="gnome-vfs-20-gnome-vfs-volume.html#GnomeVFSVolume">GnomeVFSVolume</a> *volume,
1128
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
1129
>gpointer</a> user_data) : Run First</pre>
1076
This signal is emitted when the <a href="gnome-vfs-20-gnome-vfs-volume.html#GnomeVFSVolume"><span class="type">GnomeVFSVolume</span></a> <em class="parameter"><code>volume</code></em>, which has been present in
1077
the <a href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive"><span class="type">GnomeVFSDrive</span></a> <em class="parameter"><code>drive</code></em>, is about to be unmounted.
1131
This signal is emitted when the <a class="link" href="gnome-vfs-20-gnome-vfs-volume.html#GnomeVFSVolume"><span class="type">GnomeVFSVolume</span></a> <em class="parameter"><code>volume</code></em>, which has been present in
1132
the <a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive"><span class="type">GnomeVFSDrive</span></a> <em class="parameter"><code>drive</code></em>, is about to be unmounted.
1080
1135
When the <em class="parameter"><code>volume</code></em> is unmounted, it is removed from the <em class="parameter"><code>drive</code></em>'s list of mounted
1081
volumes, which can be queried using <a href="gnome-vfs-20-gnome-vfs-drive.html#gnome-vfs-drive-get-mounted-volumes"><code class="function">gnome_vfs_drive_get_mounted_volumes()</code></a>.
1136
volumes, which can be queried using <a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#gnome-vfs-drive-get-mounted-volumes" title="gnome_vfs_drive_get_mounted_volumes ()"><code class="function">gnome_vfs_drive_get_mounted_volumes()</code></a>.
1084
It is also removed from the <a href="gnome-vfs-20-gnome-vfs-volume-monitor.html#GnomeVFSVolumeMonitor"><span class="type">GnomeVFSVolumeMonitor</span></a>'s list of mounted volumes,
1085
which can be queried using <a href="gnome-vfs-20-gnome-vfs-volume-monitor.html#gnome-vfs-volume-monitor-get-mounted-volumes"><code class="function">gnome_vfs_volume_monitor_get_mounted_volumes()</code></a>.
1139
It is also removed from the <a class="link" href="gnome-vfs-20-gnome-vfs-volume-monitor.html#GnomeVFSVolumeMonitor"><span class="type">GnomeVFSVolumeMonitor</span></a>'s list of mounted volumes,
1140
which can be queried using <a class="link" href="gnome-vfs-20-gnome-vfs-volume-monitor.html#gnome-vfs-volume-monitor-get-mounted-volumes" title="gnome_vfs_volume_monitor_get_mounted_volumes ()"><code class="function">gnome_vfs_volume_monitor_get_mounted_volumes()</code></a>.
1088
1143
When a client application receives this signal, it must free all resources
1089
1144
associated with the <em class="parameter"><code>volume</code></em>, for instance cancel all pending file operations
1090
on the <em class="parameter"><code>volume</code></em>, and cancel all pending file monitors using <a href="gnome-vfs-20-gnome-vfs-monitor.html#gnome-vfs-monitor-cancel"><code class="function">gnome_vfs_monitor_cancel()</code></a>.</p>
1145
on the <em class="parameter"><code>volume</code></em>, and cancel all pending file monitors using <a class="link" href="gnome-vfs-20-gnome-vfs-monitor.html#gnome-vfs-monitor-cancel" title="gnome_vfs_monitor_cancel ()"><code class="function">gnome_vfs_monitor_cancel()</code></a>.</p>
1115
1170
<div class="refsect2" lang="en">
1116
<a name="id2664641"></a><h3>
1117
<a name="GnomeVFSDrive-volume-unmounted"></a>The "volume-unmounted" signal</h3>
1118
<a class="indexterm" name="id2664652"></a><pre class="programlisting">void user_function (<a href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive">GnomeVFSDrive</a> *drive,
1119
<a href="gnome-vfs-20-gnome-vfs-volume.html#GnomeVFSVolume">GnomeVFSVolume</a> *volume,
1120
gpointer user_data) : Run First</pre>
1171
<a name="GnomeVFSDrive-volume-unmounted"></a><h3>The <code class="literal">"volume-unmounted"</code> signal</h3>
1172
<pre class="programlisting">void user_function (<a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive">GnomeVFSDrive</a> *drive,
1173
<a class="link" href="gnome-vfs-20-gnome-vfs-volume.html#GnomeVFSVolume">GnomeVFSVolume</a> *volume,
1175
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
1176
>gpointer</a> user_data) : Run First</pre>
1122
This signal is emitted after the <a href="gnome-vfs-20-gnome-vfs-volume.html#GnomeVFSVolume"><span class="type">GnomeVFSVolume</span></a> <em class="parameter"><code>volume</code></em>, which had been present in
1123
the <a href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive"><span class="type">GnomeVFSDrive</span></a> <em class="parameter"><code>drive</code></em>, has been unmounted.
1178
This signal is emitted after the <a class="link" href="gnome-vfs-20-gnome-vfs-volume.html#GnomeVFSVolume"><span class="type">GnomeVFSVolume</span></a> <em class="parameter"><code>volume</code></em>, which had been present in
1179
the <a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#GnomeVFSDrive"><span class="type">GnomeVFSDrive</span></a> <em class="parameter"><code>drive</code></em>, has been unmounted.
1126
1182
When the <em class="parameter"><code>volume</code></em> is unmounted, it is removed from the <em class="parameter"><code>drive</code></em>'s list of mounted
1127
volumes, which can be queried using <a href="gnome-vfs-20-gnome-vfs-drive.html#gnome-vfs-drive-get-mounted-volumes"><code class="function">gnome_vfs_drive_get_mounted_volumes()</code></a>.
1183
volumes, which can be queried using <a class="link" href="gnome-vfs-20-gnome-vfs-drive.html#gnome-vfs-drive-get-mounted-volumes" title="gnome_vfs_drive_get_mounted_volumes ()"><code class="function">gnome_vfs_drive_get_mounted_volumes()</code></a>.
1130
It is also removed from the <a href="gnome-vfs-20-gnome-vfs-volume-monitor.html#GnomeVFSVolumeMonitor"><span class="type">GnomeVFSVolumeMonitor</span></a>'s list of mounted volumes,
1131
which can be queried using <a href="gnome-vfs-20-gnome-vfs-volume-monitor.html#gnome-vfs-volume-monitor-get-mounted-volumes"><code class="function">gnome_vfs_volume_monitor_get_mounted_volumes()</code></a>.</p>
1186
It is also removed from the <a class="link" href="gnome-vfs-20-gnome-vfs-volume-monitor.html#GnomeVFSVolumeMonitor"><span class="type">GnomeVFSVolumeMonitor</span></a>'s list of mounted volumes,
1187
which can be queried using <a class="link" href="gnome-vfs-20-gnome-vfs-volume-monitor.html#gnome-vfs-volume-monitor-get-mounted-volumes" title="gnome_vfs_volume_monitor_get_mounted_volumes ()"><code class="function">gnome_vfs_volume_monitor_get_mounted_volumes()</code></a>.</p>