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_with_operation(
    GFile* file, GMountUnmountFlags flags, GMountOperation* mount_operation,
    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 &&
        iface->eject_mountable_with_operation == 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;
    }

    if (iface->eject_mountable_with_operation != NULL)
        (*iface->eject_mountable_with_operation)(
            file, flags, mount_operation, cancellable, callback, user_data);
    else
        (*iface->eject_mountable)(file, flags, cancellable, callback,
                                  user_data);
}
/**
 * g_file_eject_mountable_with_operation:
 * @file: input #GFile
 * @flags: flags affecting the operation
 * @mount_operation: (nullable): a #GMountOperation,
 *     or %NULL to avoid user interaction
 * @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_with_operation_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.
 *
 * Since: 2.22
 */


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_with_operation_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_with_operation_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_with_operation(
    GFile* file, GMountUnmountFlags flags, GMountOperation* mount_operation,
    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 &&
        iface->eject_mountable_with_operation == 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;
    }
    if (iface->eject_mountable_with_operation != NULL)
        (*iface->eject_mountable_with_operation)(
            file, flags, mount_operation, cancellable, callback, user_data);
    else
        (*iface->eject_mountable)(file, flags, cancellable, callback,
                                  user_data);
}
void g_file_eject_mountable_with_operation ( GFile * file , GMountUnmountFlags flags , GMountOperation * mount_operation , 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 && iface -> eject_mountable_with_operation == 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 ; } if ( iface -> eject_mountable_with_operation != NULL ) ( * iface -> eject_mountable_with_operation ) ( file , flags , mount_operation , cancellable , callback , user_data ) ; else ( * iface -> eject_mountable ) ( file , flags , cancellable , callback , user_data ) ; }
g_file_eject_mountable_with_operation:
 @file: input #GFile
 @flags: flags affecting the operation
 @mount_operation: (nullable): a #GMountOperation,
     or %NULL to avoid user interaction
 @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_with_operation : @file : input #GFile @flags : flags affecting the operation @mount_operation : ( nullable ) : a #GMountOperation or %NULL to avoid user interaction @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