/* Sets the @attribute to contain the given value, if possible. To unset the attribute, use G_ATTRIBUTE_TYPE_INVALID for @type.  */
void g_file_info_set_attribute(GFileInfo *info, const char *attribute, GFileAttributeType type, gpointer value_p)
/* Sets the @attribute to contain the given value, if possible. To unset the attribute, use G_ATTRIBUTE_TYPE_INVALID for @type.  */
void g_file_info_set_attribute(GFileInfo *info, const char *attribute, GFileAttributeType type, gpointer value_p)
{
  g_return_if_fail (G_IS_FILE_INFO (info));
  g_return_if_fail (attribute != NULL && *attribute != '\0');
  _g_file_info_set_attribute_by_id (info, lookup_attribute (attribute), type, value_p);
}