mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 11:26:16 +01:00
Add enum type for GVariantParseError
This commit is contained in:
parent
09aa2e79ab
commit
ede159ec45
@ -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
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user