mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 07:23:41 +02:00
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
This commit is contained in:
committed by
Alexander Larsson
parent
52e49aee35
commit
e3fdcd1fa7
@@ -3277,6 +3277,7 @@ g_file_set_attribute_int64 (GFile *file,
|
||||
/**
|
||||
* g_file_mount_mountable:
|
||||
* @file: input #GFile.
|
||||
* @flags: flags affecting the operation
|
||||
* @mount_operation: a #GMountOperation, or %NULL to avoid user interaction.
|
||||
* @cancellable: optional #GCancellable object, %NULL to ignore.
|
||||
* @callback: a #GAsyncReadyCallback to call when the request is satisfied, or %NULL.
|
||||
@@ -3295,6 +3296,7 @@ g_file_set_attribute_int64 (GFile *file,
|
||||
**/
|
||||
void
|
||||
g_file_mount_mountable (GFile *file,
|
||||
GMountMountFlags flags,
|
||||
GMountOperation *mount_operation,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
@@ -3315,6 +3317,7 @@ g_file_mount_mountable (GFile *file,
|
||||
_("Operation not supported"));
|
||||
|
||||
(* iface->mount_mountable) (file,
|
||||
flags,
|
||||
mount_operation,
|
||||
cancellable,
|
||||
callback,
|
||||
@@ -4491,6 +4494,7 @@ g_file_new_for_commandline_arg (const char *arg)
|
||||
/**
|
||||
* g_file_mount_enclosing_volume:
|
||||
* @location: input #GFile.
|
||||
* @flags: flags affecting the operation
|
||||
* @mount_operation: a #GMountOperation or %NULL to avoid user interaction.
|
||||
* @cancellable: optional #GCancellable object, %NULL to ignore.
|
||||
* @callback: a #GAsyncReadyCallback to call when the request is satisfied, or %NULL.
|
||||
@@ -4508,6 +4512,7 @@ g_file_new_for_commandline_arg (const char *arg)
|
||||
**/
|
||||
void
|
||||
g_file_mount_enclosing_volume (GFile *location,
|
||||
GMountMountFlags flags,
|
||||
GMountOperation *mount_operation,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
@@ -4529,7 +4534,7 @@ g_file_mount_enclosing_volume (GFile *location,
|
||||
return;
|
||||
}
|
||||
|
||||
(* iface->mount_enclosing_volume) (location, mount_operation, cancellable, callback, user_data);
|
||||
(* iface->mount_enclosing_volume) (location, flags, mount_operation, cancellable, callback, user_data);
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user