| GIO Reference Manual | ||||
|---|---|---|---|---|
GVolume;
GVolumeIface;
GFile* g_volume_get_root (GVolume *volume);
char* g_volume_get_name (GVolume *volume);
GIcon* g_volume_get_icon (GVolume *volume);
GDrive* g_volume_get_drive (GVolume *volume);
gboolean g_volume_can_unmount (GVolume *volume);
gboolean g_volume_can_eject (GVolume *volume);
void g_volume_unmount (GVolume *volume,
GAsyncReadyCallback callback,
gpointer user_data);
gboolean g_volume_unmount_finish (GVolume *volume,
GAsyncResult *result,
GError **error);
void g_volume_eject (GVolume *volume,
GAsyncReadyCallback callback,
gpointer user_data);
gboolean g_volume_eject_finish (GVolume *volume,
GAsyncResult *result,
GError **error);
typedef struct {
GTypeInterface g_iface;
/* signals */
void (*changed) (GVolume *volume);
/* Virtual Table */
GFile * (*get_root) (GVolume *volume);
char * (*get_name) (GVolume *volume);
GIcon * (*get_icon) (GVolume *volume);
GDrive * (*get_drive) (GVolume *volume);
gboolean (*can_unmount) (GVolume *volume);
gboolean (*can_eject) (GVolume *volume);
void (*unmount) (GVolume *volume,
GAsyncReadyCallback callback,
gpointer user_data);
gboolean (*unmount_finish) (GVolume *volume,
GAsyncResult *result,
GError **error);
void (*eject) (GVolume *volume,
GAsyncReadyCallback callback,
gpointer user_data);
gboolean (*eject_finish) (GVolume *volume,
GAsyncResult *result,
GError **error);
} GVolumeIface;
char* g_volume_get_name (GVolume *volume);
|
|
Returns : |
the name for the given volume.
TODO: is this owned by GIO?
|
GIcon* g_volume_get_icon (GVolume *volume);
|
|
Returns : |
the GIcon for the given volume.
|
GDrive* g_volume_get_drive (GVolume *volume);
|
|
Returns : |
the GDrive for the given volume.
|
gboolean g_volume_can_unmount (GVolume *volume);
|
|
Returns : |
TRUE if the volume can be unmounted.
|
gboolean g_volume_can_eject (GVolume *volume);
|
|
Returns : |
TRUE if the volume can be ejected.
|
void g_volume_unmount (GVolume *volume, GAsyncReadyCallback callback, gpointer user_data);
|
|
|
|
|
gboolean g_volume_unmount_finish (GVolume *volume, GAsyncResult *result, GError **error);
Return:
|
|
|
|
|
|
Returns : |
void g_volume_eject (GVolume *volume, GAsyncReadyCallback callback, gpointer user_data);
|
|
|
|
|
gboolean g_volume_eject_finish (GVolume *volume, GAsyncResult *result, GError **error);
|
|
|
|
|
|
Returns : |
"changed" signalvoid user_function (GVolume *gvolume, gpointer user_data) : Run Last
|
the object which received the signal. |
|
user data set when the signal handler was connected. |