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
gboolean g_file_set_attributes_from_info(GFile* file, GFileInfo* info,
                                         GFileQueryInfoFlags flags,
                                         GCancellable* cancellable,
                                         GError** error)
{
    GFileIface* iface;

    g_return_val_if_fail(G_IS_FILE(file), FALSE);
    g_return_val_if_fail(G_IS_FILE_INFO(info), FALSE);

    if (g_cancellable_set_error_if_cancelled(cancellable, error))
        return FALSE;

    g_file_info_clear_status(info);

    iface = G_FILE_GET_IFACE(file);

    return (*iface->set_attributes_from_info)(file, info, flags, cancellable,
                                              error);
}
/**
 * g_file_set_attributes_from_info:
 * @file: input #GFile
 * @info: a #GFileInfo
 * @flags: #GFileQueryInfoFlags
 * @cancellable: (nullable): optional #GCancellable object,
 *     %NULL to ignore
 * @error: a #GError, or %NULL
 *
 * Tries to set all attributes in the #GFileInfo on the target
 * values, not stopping on the first error.
 *
 * If there is any error during this operation then @error will
 * be set to the first error. Error on particular fields are flagged
 * by setting the "status" field in the attribute value to
 * %G_FILE_ATTRIBUTE_STATUS_ERROR_SETTING, which means you can
 * also detect further errors.
 *
 * 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.
 *
 * Returns: %FALSE if there was any error, %TRUE otherwise.
 */


Tries to set all attributes in the #GFileInfo on the target
values, not stopping on the first error.

If there is any error during this operation then @error will
be set to the first error. Error on particular fields are flagged
by setting the "status" field in the attribute value to
%G_FILE_ATTRIBUTE_STATUS_ERROR_SETTING, which means you can
also detect further errors.

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.

%FALSE if there was any error, %TRUE otherwise.
Tries to set all attributes in the #GFileInfo on the target values not stopping on the first error . If there is any error during this operation then @error will be set to the first error . Error on particular fields are flagged by setting the " status " field in the attribute value to %G_FILE_ATTRIBUTE_STATUS_ERROR_SETTING which means you can also detect further errors . 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 . %FALSE if there was any error %TRUE otherwise .
gboolean g_file_set_attributes_from_info(GFile* file, GFileInfo* info,
                                         GFileQueryInfoFlags flags,
                                         GCancellable* cancellable,
                                         GError** error)
{
    GFileIface* iface;
    g_return_val_if_fail(G_IS_FILE(file), FALSE);
    g_return_val_if_fail(G_IS_FILE_INFO(info), FALSE);
    if (g_cancellable_set_error_if_cancelled(cancellable, error))
        return FALSE;
    g_file_info_clear_status(info);
    iface = G_FILE_GET_IFACE(file);
    return (*iface->set_attributes_from_info)(file, info, flags, cancellable,
                                              error);
}
gboolean g_file_set_attributes_from_info ( GFile * file , GFileInfo * info , GFileQueryInfoFlags flags , GCancellable * cancellable , GError * * error ) { GFileIface * iface ; g_return_val_if_fail ( G_IS_FILE ( file ) , FALSE ) ; g_return_val_if_fail ( G_IS_FILE_INFO ( info ) , FALSE ) ; if ( g_cancellable_set_error_if_cancelled ( cancellable , error ) ) return FALSE ; g_file_info_clear_status ( info ) ; iface = G_FILE_GET_IFACE ( file ) ; return ( * iface -> set_attributes_from_info ) ( file , info , flags , cancellable , error ) ; }
g_file_set_attributes_from_info:
 @file: input #GFile
 @info: a #GFileInfo
 @flags: #GFileQueryInfoFlags
 @cancellable: (nullable): optional #GCancellable object,
     %NULL to ignore
 @error: a #GError, or %NULL
g_file_set_attributes_from_info : @file : input #GFile @info : a #GFileInfo @flags : #GFileQueryInfoFlags @cancellable : ( nullable ) : optional #GCancellable object %NULL to ignore @error : a #GError or %NULL