Method

GioFileInfoget_attribute_data

Declaration

gboolean
g_file_info_get_attribute_data (
  GFileInfo* info,
  const char* attribute,
  GFileAttributeType* type,
  gpointer* value_pp,
  GFileAttributeStatus* status
)

Description

Gets the attribute type, value and status for an attribute key.

Parameters

attribute const char*
 

A file attribute key.

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

Return location for the attribute type, or NULL.

 The argument will be set by the function.
 The argument can be NULL.
 The instance takes ownership of the data, and is responsible for freeing it.
value_pp gpointer*
 

Return location for the attribute value, or NULL; the attribute value will not be NULL.

 The argument will be set by the function.
 The argument can be NULL.
status GFileAttributeStatus
 

Return location for the attribute status, or NULL.

 The argument will be set by the function.
 The argument can be NULL.
 The instance takes ownership of the data, and is responsible for freeing it.

Return value

Returns: gboolean
 

TRUE if info has an attribute named attribute, FALSE otherwise.