Add enum type for GVariantParseError

This commit is contained in:
Ryan Lortie 2010-06-20 12:30:27 -04:00
parent 09aa2e79ab
commit ede159ec45
3 changed files with 13 additions and 0 deletions

View 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

View File

@ -39,6 +39,13 @@
* 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)
{

View 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);