/* Returns: the signed 32-bit integer from the attribute, or 0.  */
gint32 _g_file_attribute_value_get_int32(const GFileAttributeValue *attr)
/* Returns: the signed 32-bit integer from the attribute, or 0.  */
gint32 _g_file_attribute_value_get_int32(const GFileAttributeValue *attr)
{
  if (attr == NULL)
    return 0;
  g_return_val_if_fail (attr->type == G_FILE_ATTRIBUTE_TYPE_INT32, 0);
  return attr->u.int32;
}