Method

GioFileset_attribute_uint32

Declaration

gboolean
g_file_set_attribute_uint32 (
  GFile* file,
  const char* attribute,
  guint32 value,
  GFileQueryInfoFlags flags,
  GCancellable* cancellable,
  GError** error
)

Description

Sets attribute of type G_FILE_ATTRIBUTE_TYPE_UINT32 to value. If attribute is of a different type, this operation will fail.

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.

Parameters

attribute const char*
 

A string containing the attribute’s name.

 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.
value guint32
 

A #guint32 containing the attribute’s new value.

flags GFileQueryInfoFlags
 

A GFileQueryInfoFlags.

cancellable GCancellable
 

Optional GCancellable object, NULL to ignore.

 The argument can be NULL.
 The data is owned by the caller of the function.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: gboolean
 

TRUE if the attribute was successfully set to value in the file, FALSE otherwise.