menuselect: Add an opaque "member_data" string to the acceptable xml

Change-Id: Id5ac43b95c8d7395f3be37f983632169db3d1afe
This commit is contained in:
George Joseph
2016-08-01 15:13:17 -06:00
parent de7e9fe95b
commit f6276441b1
2 changed files with 8 additions and 0 deletions

View File

@@ -386,6 +386,11 @@ static int process_xml_use_node(xmlNode *node, struct member *mem)
return process_xml_ref_node(node, mem, &mem->uses);
}
static int process_xml_member_data_node(xmlNode *node, struct member *mem)
{
return 0;
}
static int process_xml_unknown_node(xmlNode *node, struct member *mem)
{
fprintf(stderr, "Encountered unknown node: %s\n", node->name);
@@ -404,6 +409,7 @@ static const struct {
{ "depend", process_xml_depend_node },
{ "conflict", process_xml_conflict_node },
{ "use", process_xml_use_node },
{ "member_data", process_xml_member_data_node },
};
static node_handler lookup_node_handler(xmlNode *node)

View File

@@ -70,6 +70,8 @@ struct member {
const char *touch_on_change;
const char *support_level;
const char *replacement;
/*! member_data is just an opaque, member-specific string */
const char *member_data;
/*! This module is currently selected */
unsigned int enabled:1;
/*! This module was enabled when the config was loaded */