/* Returns: the UTF-8 string value contained within the attribute, or NULL.  */
const char* _g_file_attribute_value_get_string(const GFileAttributeValue *attr)
/* Returns: the UTF-8 string value contained within the attribute, or NULL.  */
const char* _g_file_attribute_value_get_string(const GFileAttributeValue *attr)
{
  if (attr == NULL)
    return NULL;
  g_return_val_if_fail (attr->type == G_FILE_ATTRIBUTE_TYPE_STRING, NULL);
  return attr->u.string;
}