91
89
* @mount_finish: Finishes a mount operation.
92
90
* @eject: Ejects a given #GVolume.
93
91
* @eject_finish: Finishes an eject operation.
94
* @get_identifier: Returns the <link linkend="volume-identifier">identifier</link> of the given kind, or %NULL if
92
* @get_identifier: Returns the <link linkend="volume-identifier">identifier</link> of the given kind, or %NULL if
95
93
* the #GVolume doesn't have one.
96
94
* @enumerate_identifiers: Returns an array strings listing the kinds
97
95
* of <link linkend="volume-identifier">identifiers</link> which the #GVolume has.
98
96
* @should_automount: Returns %TRUE if the #GVolume should be automatically mounted.
97
* @get_activation_root: Returns the activation root for the #GVolume if it is known in advance or %NULL if
100
100
* Interface for implementing operations for mountable volumes.
102
102
typedef struct _GVolumeIface GVolumeIface;
110
void (*changed) (GVolume *volume);
111
void (*removed) (GVolume *volume);
110
void (* changed) (GVolume *volume);
111
void (* removed) (GVolume *volume);
113
113
/* Virtual Table */
115
char * (*get_name) (GVolume *volume);
116
GIcon * (*get_icon) (GVolume *volume);
117
char * (*get_uuid) (GVolume *volume);
118
GDrive * (*get_drive) (GVolume *volume);
119
GMount * (*get_mount) (GVolume *volume);
120
gboolean (*can_mount) (GVolume *volume);
121
gboolean (*can_eject) (GVolume *volume);
122
void (*mount_fn) (GVolume *volume,
123
GMountMountFlags flags,
124
GMountOperation *mount_operation,
125
GCancellable *cancellable,
126
GAsyncReadyCallback callback,
128
gboolean (*mount_finish) (GVolume *volume,
129
GAsyncResult *result,
131
void (*eject) (GVolume *volume,
132
GMountUnmountFlags flags,
133
GCancellable *cancellable,
134
GAsyncReadyCallback callback,
136
gboolean (*eject_finish) (GVolume *volume,
137
GAsyncResult *result,
140
char * (*get_identifier) (GVolume *volume,
142
char ** (*enumerate_identifiers) (GVolume *volume);
144
gboolean (*should_automount) (GVolume *volume);
115
char * (* get_name) (GVolume *volume);
116
GIcon * (* get_icon) (GVolume *volume);
117
char * (* get_uuid) (GVolume *volume);
118
GDrive * (* get_drive) (GVolume *volume);
119
GMount * (* get_mount) (GVolume *volume);
120
gboolean (* can_mount) (GVolume *volume);
121
gboolean (* can_eject) (GVolume *volume);
122
void (* mount_fn) (GVolume *volume,
123
GMountMountFlags flags,
124
GMountOperation *mount_operation,
125
GCancellable *cancellable,
126
GAsyncReadyCallback callback,
128
gboolean (* mount_finish) (GVolume *volume,
129
GAsyncResult *result,
131
void (* eject) (GVolume *volume,
132
GMountUnmountFlags flags,
133
GCancellable *cancellable,
134
GAsyncReadyCallback callback,
136
gboolean (* eject_finish) (GVolume *volume,
137
GAsyncResult *result,
140
char * (* get_identifier) (GVolume *volume,
142
char ** (* enumerate_identifiers) (GVolume *volume);
144
gboolean (* should_automount) (GVolume *volume);
146
GFile * (* get_activation_root) (GVolume *volume);
148
GType g_volume_get_type (void) G_GNUC_CONST;
150
GType g_volume_get_type (void) G_GNUC_CONST;
150
152
char * g_volume_get_name (GVolume *volume);
151
153
GIcon * g_volume_get_icon (GVolume *volume);