summaryrefslogtreecommitdiff
path: root/girepository/girparser.c
diff options
context:
space:
mode:
Diffstat (limited to 'girepository/girparser.c')
-rw-r--r--girepository/girparser.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/girepository/girparser.c b/girepository/girparser.c
index be74e0bb..e32acc0d 100644
--- a/girepository/girparser.c
+++ b/girepository/girparser.c
@@ -1480,6 +1480,7 @@ start_member (GMarkupParseContext *context,
const gchar *name;
const gchar *value;
const gchar *deprecated;
+ const gchar *c_identifier;
GIrNodeEnum *enum_;
GIrNodeValue *value_;
@@ -1490,6 +1491,7 @@ start_member (GMarkupParseContext *context,
name = find_attribute ("name", attribute_names, attribute_values);
value = find_attribute ("value", attribute_names, attribute_values);
deprecated = find_attribute ("deprecated", attribute_names, attribute_values);
+ c_identifier = find_attribute ("c:identifier", attribute_names, attribute_values);
if (name == NULL)
{
@@ -1509,6 +1511,10 @@ start_member (GMarkupParseContext *context,
else
value_->deprecated = FALSE;
+ g_hash_table_insert (((GIrNode *)value_)->attributes,
+ g_strdup ("c:identifier"),
+ g_strdup (c_identifier));
+
enum_ = (GIrNodeEnum *)CURRENT_NODE (ctx);
enum_->values = g_list_append (enum_->values, value_);