27#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
28#error "Only <gio/gio.h> can be included directly."
42#define G_DRIVE_IDENTIFIER_KIND_UNIX_DEVICE "unix-device"
44#define G_TYPE_DRIVE (g_drive_get_type ())
45#define G_DRIVE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), G_TYPE_DRIVE, GDrive))
46#define G_IS_DRIVE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), G_TYPE_DRIVE))
47#define G_DRIVE_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), G_TYPE_DRIVE, GDriveIface))
126 char * (* get_identifier) (
GDrive *drive,
128 char ** (* enumerate_identifiers) (
GDrive *drive);
GIO_AVAILABLE_IN_ALL gboolean g_drive_has_volumes(GDrive *drive)
GIO_AVAILABLE_IN_ALL void g_drive_poll_for_media(GDrive *drive, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
GIO_AVAILABLE_IN_ALL void g_drive_start(GDrive *drive, GDriveStartFlags flags, GMountOperation *mount_operation, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
GIO_AVAILABLE_IN_ALL gboolean g_drive_can_start(GDrive *drive)
GIO_AVAILABLE_IN_ALL GIcon * g_drive_get_symbolic_icon(GDrive *drive)
GIO_AVAILABLE_IN_ALL gboolean g_drive_can_eject(GDrive *drive)
GIO_AVAILABLE_IN_ALL GIcon * g_drive_get_icon(GDrive *drive)
GIO_AVAILABLE_IN_ALL GList * g_drive_get_volumes(GDrive *drive)
GIO_AVAILABLE_IN_ALL gboolean g_drive_start_finish(GDrive *drive, GAsyncResult *result, GError **error)
GIO_AVAILABLE_IN_ALL gboolean g_drive_has_media(GDrive *drive)
GIO_AVAILABLE_IN_ALL gboolean g_drive_stop_finish(GDrive *drive, GAsyncResult *result, GError **error)
GIO_AVAILABLE_IN_ALL GType g_drive_get_type(void) G_GNUC_CONST
gboolean g_drive_eject_finish(GDrive *drive, GAsyncResult *result, GError **error)
GIO_AVAILABLE_IN_ALL char * g_drive_get_name(GDrive *drive)
GIO_AVAILABLE_IN_ALL gboolean g_drive_eject_with_operation_finish(GDrive *drive, GAsyncResult *result, GError **error)
GIO_AVAILABLE_IN_ALL gboolean g_drive_is_media_removable(GDrive *drive)
GIO_AVAILABLE_IN_ALL GDriveStartStopType g_drive_get_start_stop_type(GDrive *drive)
GIO_AVAILABLE_IN_ALL char ** g_drive_enumerate_identifiers(GDrive *drive)
GIO_AVAILABLE_IN_ALL void g_drive_stop(GDrive *drive, GMountUnmountFlags flags, GMountOperation *mount_operation, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
GIO_AVAILABLE_IN_ALL void g_drive_eject_with_operation(GDrive *drive, GMountUnmountFlags flags, GMountOperation *mount_operation, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
GIO_AVAILABLE_IN_ALL char * g_drive_get_identifier(GDrive *drive, const char *kind)
GIO_AVAILABLE_IN_2_50 gboolean g_drive_is_removable(GDrive *drive)
GIO_AVAILABLE_IN_ALL gboolean g_drive_is_media_check_automatic(GDrive *drive)
GIO_AVAILABLE_IN_ALL gboolean g_drive_can_poll_for_media(GDrive *drive)
GIO_AVAILABLE_IN_2_32 const gchar * g_drive_get_sort_key(GDrive *drive)
GIO_AVAILABLE_IN_ALL gboolean g_drive_poll_for_media_finish(GDrive *drive, GAsyncResult *result, GError **error)
GIO_AVAILABLE_IN_ALL gboolean g_drive_can_start_degraded(GDrive *drive)
GIO_AVAILABLE_IN_ALL gboolean g_drive_can_stop(GDrive *drive)
void g_drive_eject(GDrive *drive, GMountUnmountFlags flags, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
#define GIO_AVAILABLE_IN_ALL
#define GIO_AVAILABLE_IN_2_32
#define GIO_DEPRECATED_FOR(f)
#define GIO_AVAILABLE_IN_2_50
struct _GAsyncResult GAsyncResult
void(* GAsyncReadyCallback)(GObject *source_object, GAsyncResult *res, gpointer data)
typedefG_BEGIN_DECLS struct _GList GList
G_BEGIN_DECLS typedef char gchar
static void error(LoadState *S, const char *why)
void(* poll_for_media)(GDrive *drive, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
gboolean(* can_poll_for_media)(GDrive *drive)
gboolean(* has_media)(GDrive *drive)
gboolean(* start_finish)(GDrive *drive, GAsyncResult *result, GError **error)
void(* eject_button)(GDrive *drive)
GDriveStartStopType(* get_start_stop_type)(GDrive *drive)
void(* stop_button)(GDrive *drive)
gboolean(* eject_with_operation_finish)(GDrive *drive, GAsyncResult *result, GError **error)
gboolean(* is_removable)(GDrive *drive)
gboolean(* can_start_degraded)(GDrive *drive)
void(* eject_with_operation)(GDrive *drive, GMountUnmountFlags flags, GMountOperation *mount_operation, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
gboolean(* stop_finish)(GDrive *drive, GAsyncResult *result, GError **error)
void(* eject)(GDrive *drive, GMountUnmountFlags flags, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
gboolean(* has_volumes)(GDrive *drive)
gboolean(* is_media_removable)(GDrive *drive)
void(* stop)(GDrive *drive, GMountUnmountFlags flags, GMountOperation *mount_operation, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
void(* changed)(GDrive *drive)
gboolean(* can_stop)(GDrive *drive)
gboolean(* poll_for_media_finish)(GDrive *drive, GAsyncResult *result, GError **error)
gboolean(* can_eject)(GDrive *drive)
gboolean(* eject_finish)(GDrive *drive, GAsyncResult *result, GError **error)
void(* start)(GDrive *drive, GDriveStartFlags flags, GMountOperation *mount_operation, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
gboolean(* is_media_check_automatic)(GDrive *drive)
void(* disconnected)(GDrive *drive)
gboolean(* can_start)(GDrive *drive)