From: Alexander Larsson Date: Thu, 13 Dec 2007 16:22:43 +0000 (+0000) Subject: Rename g_mount_for_location to g_file_mount_enclosing_volume. X-Git-Tag: GLIB_2_15_1~145 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f6b9b4f45e2b5e98f8e460815d39b1b014007c1d;p=platform%2Fupstream%2Fglib.git Rename g_mount_for_location to g_file_mount_enclosing_volume. 2007-12-13 Alexander Larsson * gfile.[ch]: * gio.symbols: Rename g_mount_for_location to g_file_mount_enclosing_volume. svn path=/trunk/; revision=6114 --- diff --git a/gio/ChangeLog b/gio/ChangeLog index 6d98a07..0e50b9b 100644 --- a/gio/ChangeLog +++ b/gio/ChangeLog @@ -1,5 +1,11 @@ 2007-12-13 Alexander Larsson + * gfile.[ch]: + * gio.symbols: + Rename g_mount_for_location to g_file_mount_enclosing_volume. + +2007-12-13 Alexander Larsson + * gmountoperation.h: G_PASSWORD_FLAGS_ANON_SUPPORTED -> G_PASSWORD_FLAGS_ANONYMOUS_SUPPORTED diff --git a/gio/gfile.c b/gio/gfile.c index e1f3eef..abfdec8 100644 --- a/gio/gfile.c +++ b/gio/gfile.c @@ -3969,7 +3969,7 @@ g_file_new_for_commandline_arg (const char *arg) } /** - * g_mount_for_location: + * g_file_mount_enclosing_volume: * @location: input #GFile. * @mount_operation: a #GMountOperation. * @cancellable: optional #GCancellable object, %NULL to ignore. @@ -3980,18 +3980,18 @@ g_file_new_for_commandline_arg (const char *arg) * * When this operation has completed, @callback will be called with * @user_user data, and the operation can be finalized with - * g_mount_for_location_finish(). + * g_file_mount_enclosing_volume_finish(). * * If @cancellable is not %NULL, then the operation can be cancelled by * triggering the cancellable object from another thread. If the operation * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. **/ void -g_mount_for_location (GFile *location, - GMountOperation *mount_operation, - GCancellable *cancellable, - GAsyncReadyCallback callback, - gpointer user_data) +g_file_mount_enclosing_volume (GFile *location, + GMountOperation *mount_operation, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data) { GFileIface *iface; @@ -4000,7 +4000,7 @@ g_mount_for_location (GFile *location, iface = G_FILE_GET_IFACE (location); - if (iface->mount_for_location == NULL) + if (iface->mount_enclosing_volume == NULL) { g_simple_async_report_error_in_idle (G_OBJECT (location), callback, user_data, @@ -4010,26 +4010,26 @@ g_mount_for_location (GFile *location, return; } - (* iface->mount_for_location) (location, mount_operation, cancellable, callback, user_data); + (* iface->mount_enclosing_volume) (location, mount_operation, cancellable, callback, user_data); } /** - * g_mount_for_location_finish: + * g_file_mount_enclosing_volume_finish: * @location: input #GFile. * @result: a #GAsyncResult. * @error: a #GError, or %NULL * - * Finishes a mount operation started by g_mount_for_location(). + * Finishes a mount operation started by g_file_mount_enclosing_volume(). * * Returns: %TRUE if successful. If an error * has occured, this function will return %FALSE and set @error * appropriately if present. **/ gboolean -g_mount_for_location_finish (GFile *location, - GAsyncResult *result, - GError **error) +g_file_mount_enclosing_volume_finish (GFile *location, + GAsyncResult *result, + GError **error) { GFileIface *iface; @@ -4045,7 +4045,7 @@ g_mount_for_location_finish (GFile *location, iface = G_FILE_GET_IFACE (location); - return (* iface->mount_for_location_finish) (location, result, error); + return (* iface->mount_enclosing_volume_finish) (location, result, error); } /******************************************** diff --git a/gio/gfile.h b/gio/gfile.h index cf16027..07d7992 100644 --- a/gio/gfile.h +++ b/gio/gfile.h @@ -222,8 +222,8 @@ typedef gboolean (* GFileReadMoreCallback) (const char *file_contents, * @unmount_mountable_finish: Finishes an unmount operation. * @eject_mountable: Ejects a mountable. * @eject_mountable_finish: Finishes an eject operation. - * @mount_for_location: Mounts a specified location. - * @mount_for_location_finish: Finishes mounting a specified location. + * @g_file_mount_enclosing_volume: Mounts a specified location. + * @g_file_mount_enclosing_volume_finish: Finishes mounting a specified location. * @monitor_dir: Creates a #GDirectoryMonitor for the location. * @monitor_file: Creates a #GFileMonitor for the location. * @@ -487,14 +487,14 @@ struct _GFileIface GError **error); - void (*mount_for_location) (GFile *location, - GMountOperation *mount_operation, - GCancellable *cancellable, - GAsyncReadyCallback callback, - gpointer user_data); - gboolean (*mount_for_location_finish) (GFile *location, - GAsyncResult *result, - GError **error); + void (*mount_enclosing_volume) (GFile *location, + GMountOperation *mount_operation, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + gboolean (*mount_enclosing_volume_finish) (GFile *location, + GAsyncResult *result, + GError **error); GDirectoryMonitor* (*monitor_dir) (GFile *file, GFileMonitorFlags flags, @@ -731,12 +731,12 @@ gboolean g_file_set_attribute_int64 (GFile GFileQueryInfoFlags flags, GCancellable *cancellable, GError **error); -void g_mount_for_location (GFile *location, +void g_file_mount_enclosing_volume (GFile *location, GMountOperation *mount_operation, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data); -gboolean g_mount_for_location_finish (GFile *location, +gboolean g_file_mount_enclosing_volume_finish (GFile *location, GAsyncResult *result, GError **error); void g_file_mount_mountable (GFile *file, diff --git a/gio/gio.symbols b/gio/gio.symbols index d185ddb..bb405e9 100644 --- a/gio/gio.symbols +++ b/gio/gio.symbols @@ -299,8 +299,8 @@ g_file_set_attribute_uint32 g_file_set_attribute_int32 g_file_set_attribute_uint64 g_file_set_attribute_int64 -g_mount_for_location -g_mount_for_location_finish +g_file_mount_enclosing_volume +g_file_mount_enclosing_volume_finish g_file_mount_mountable g_file_mount_mountable_finish g_file_unmount_mountable