/* Returns: (transfer none): a #GObject associated with the given @attribute, or NULL otherwise.  */
GObject* g_file_info_get_attribute_object(GFileInfo *info, const char *attribute)
/* Returns: (transfer none): a #GObject associated with the given @attribute, or NULL otherwise.  */
GObject* g_file_info_get_attribute_object(GFileInfo *info, const char *attribute)
{
  GFileAttributeValue *value;
  g_return_val_if_fail (G_IS_FILE_INFO (info), NULL);
  g_return_val_if_fail (attribute != NULL && *attribute != '\0', NULL);
  value = g_file_info_find_value_by_name (info, attribute);
  return _g_file_attribute_value_get_object (value);
}