Add enum type for GVariantParseError
authorRyan Lortie <desrt@desrt.ca>
Sun, 20 Jun 2010 16:30:27 +0000 (12:30 -0400)
committerRyan Lortie <desrt@desrt.ca>
Sun, 20 Jun 2010 16:31:37 +0000 (12:31 -0400)
docs/reference/glib/glib-sections.txt
glib/gvariant-parser.c
glib/gvariant.h

index 026fc39..8f16358 100644 (file)
@@ -2920,6 +2920,7 @@ g_variant_builder_open
 g_variant_builder_close
 
 <SUBSECTION>
+GVariantParseError
 G_VARIANT_PARSE_ERROR
 g_variant_parse
 g_variant_new_parsed_va
index d237334..93a5dd3 100644 (file)
  * are not currently defined for this domain.  See #GError for
  * information on error domains.
  **/
+/**
+ * GVariantParseError:
+ * @G_VARIANT_PARSE_ERROR_FAILED: generic error
+ *
+ * Error codes returned by parsing text-format GVariants.  Currently the
+ * parser makes no distinction between different types of error.
+ **/
 GQuark
 g_variant_parser_get_error_quark (void)
 {
index 6647c40..24d9f40 100644 (file)
@@ -180,7 +180,12 @@ struct _GVariantBuilder {
   gsize x[16];
 };
 
+typedef enum
+{
+  G_VARIANT_PARSE_ERROR_FAILED
+} GVariantParseError;
 #define G_VARIANT_PARSE_ERROR (g_variant_parser_get_error_quark ())
+
 GQuark                          g_variant_parser_get_error_quark        (void);
 
 GVariantBuilder *               g_variant_builder_new                   (const GVariantType   *type);