openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/glib-2.0/1_2.60.3-r0/glib-2.60.3/gio/gfile.c
void g_file_eject_mountable(GFile* file, GMountUnmountFlags flags,
                            GCancellable* cancellable,
                            GAsyncReadyCallback callback, gpointer user_data)
{
    GFileIface* iface;

    g_return_if_fail(G_IS_FILE(file));

    iface = G_FILE_GET_IFACE(file);

    if (iface->eject_mountable == NULL)
    {
        g_task_report_new_error(
            file, callback, user_data, g_file_eject_mountable_with_operation,
            G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED, _("Operation not supported"));
        return;
    }

    (*iface->eject_mountable)(file, flags, cancellable, callback, user_data);
}
/**
 * g_file_eject_mountable:
 * @file: input #GFile
 * @flags: flags affecting the operation
 * @cancellable: (nullable): optional #GCancellable object,
 *     %NULL to ignore
 * @callback: (scope async) (nullable): a #GAsyncReadyCallback to call
 *     when the request is satisfied, or %NULL
 * @user_data: (closure): the data to pass to callback function
 *
 * Starts an asynchronous eject on a mountable.
 * When this operation has completed, @callback will be called with
 * @user_user data, and the operation can be finalized with
 * g_file_eject_mountable_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.
 *
 * Deprecated: 2.22: Use g_file_eject_mountable_with_operation() instead.
 */


Starts an asynchronous eject on a mountable.
When this operation has completed, @callback will be called with
@user_user data, and the operation can be finalized with
g_file_eject_mountable_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.


Starts an asynchronous eject on a mountable . When this operation has completed @callback will be called with @user_user data and the operation can be finalized with g_file_eject_mountable_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_file_eject_mountable(GFile* file, GMountUnmountFlags flags,
                            GCancellable* cancellable,
                            GAsyncReadyCallback callback, gpointer user_data)
{
    GFileIface* iface;
    g_return_if_fail(G_IS_FILE(file));
    iface = G_FILE_GET_IFACE(file);
    if (iface->eject_mountable == NULL)
    {
        g_task_report_new_error(
            file, callback, user_data, g_file_eject_mountable_with_operation,
            G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED, _("Operation not supported"));
        return;
    }
    (*iface->eject_mountable)(file, flags, cancellable, callback, user_data);
}
void g_file_eject_mountable ( GFile * file , GMountUnmountFlags flags , GCancellable * cancellable , GAsyncReadyCallback callback , gpointer user_data ) { GFileIface * iface ; g_return_if_fail ( G_IS_FILE ( file ) ) ; iface = G_FILE_GET_IFACE ( file ) ; if ( iface -> eject_mountable == NULL ) { g_task_report_new_error ( file , callback , user_data , g_file_eject_mountable_with_operation , G_IO_ERROR , G_IO_ERROR_NOT_SUPPORTED , _ ( " " ) ) ; return ; } ( * iface -> eject_mountable ) ( file , flags , cancellable , callback , user_data ) ; }
g_file_eject_mountable:
 @file: input #GFile
 @flags: flags affecting the operation
 @cancellable: (nullable): optional #GCancellable object,
     %NULL to ignore
 @callback: (scope async) (nullable): a #GAsyncReadyCallback to call
     when the request is satisfied, or %NULL
 @user_data: (closure): the data to pass to callback function
g_file_eject_mountable : @file : input #GFile @flags : flags affecting the operation @cancellable : ( nullable ) : optional #GCancellable object %NULL to ignore @callback : ( scope async ) ( nullable ) : a #GAsyncReadyCallback to call when the request is satisfied or %NULL @user_data : ( closure ) : the data to pass to callback function