diff options
author | Alexander Larsson <alexl@redhat.com> | 2008-02-11 11:12:36 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2008-02-11 11:12:36 +0000 |
commit | e3fdcd1fa78c831f5cea78cf0a2c07bfdb4b6561 (patch) | |
tree | f4749777f6c18dc300d96fcb0fdc1e23419d8b76 /gio/gfile.h | |
parent | 52e49aee357e700f44cfb62912975dca6bd1bb20 (diff) |
Added GMountMountFlags enum and added a flags argument to all mount calls.
2008-02-11 Alexander Larsson <alexl@redhat.com>
* gfile.[ch]:
* gmount.[ch]:
* gvolume.[ch]:
Added GMountMountFlags enum and added a flags
argument to all mount calls.
This is an API/ABI change for future extensibility,
as I think we will need at least an
inhibit-autorun flag (the panel needs this).
There are no flags defined yet though.
svn path=/trunk/; revision=6497
Diffstat (limited to 'gio/gfile.h')
-rw-r--r-- | gio/gfile.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/gio/gfile.h b/gio/gfile.h index 0072224ea..84e5169c5 100644 --- a/gio/gfile.h +++ b/gio/gfile.h @@ -67,13 +67,25 @@ typedef enum { G_FILE_CREATE_PRIVATE = (1<<0) } GFileCreateFlags; + +/** + * GMountMountFlags: + * @G_MOUNT_MOUNT_NONE: No flags set. + * + * Flags used when mounting a mount. + */ +typedef enum { + G_MOUNT_MOUNT_NONE = 0, +} GMountMountFlags; + + /** * GMountUnmountFlags: * @G_MOUNT_UNMOUNT_NONE: No flags set. * @G_MOUNT_UNMOUNT_FORCE: Unmount even if there are outstanding * file operations on the mount. * - * Flags used when an operation may create a file. + * Flags used when an unmounting a mount. */ typedef enum { G_MOUNT_UNMOUNT_NONE = 0, @@ -493,6 +505,7 @@ struct _GFileIface void (*mount_mountable) (GFile *file, + GMountMountFlags flags, GMountOperation *mount_operation, GCancellable *cancellable, GAsyncReadyCallback callback, @@ -519,6 +532,7 @@ struct _GFileIface void (*mount_enclosing_volume) (GFile *location, + GMountMountFlags flags, GMountOperation *mount_operation, GCancellable *cancellable, GAsyncReadyCallback callback, @@ -788,6 +802,7 @@ gboolean g_file_set_attribute_int64 (GFile GCancellable *cancellable, GError **error); void g_file_mount_enclosing_volume (GFile *location, + GMountMountFlags flags, GMountOperation *mount_operation, GCancellable *cancellable, GAsyncReadyCallback callback, @@ -796,6 +811,7 @@ gboolean g_file_mount_enclosing_volume_finish (GFile GAsyncResult *result, GError **error); void g_file_mount_mountable (GFile *file, + GMountMountFlags flags, GMountOperation *mount_operation, GCancellable *cancellable, GAsyncReadyCallback callback, |