aboutsummaryrefslogtreecommitdiff
path: root/dtc.h
diff options
context:
space:
mode:
authorDavid Gibson <dgibson@sneetch.(none)>2005-06-16 14:36:37 +1000
committerDavid Gibson <dgibson@sneetch.(none)>2005-06-16 14:36:37 +1000
commit4102d840d993e7cce7d5c5aea8ef696dc81236fc (patch)
treeab70f0a9e968780ed282f1bbd8d7ea1be3db5b6b /dtc.h
parentfc14dad7692d84d5f0f547fd0456b3f98526b6cc (diff)
downloaddtc-4102d840d993e7cce7d5c5aea8ef696dc81236fc.zip
dtc-4102d840d993e7cce7d5c5aea8ef696dc81236fc.tar.gz
dtc-4102d840d993e7cce7d5c5aea8ef696dc81236fc.tar.bz2
Initial label support. Also switch to glr-parser mode and get rid of
hacks that were necessary without it.
Diffstat (limited to 'dtc.h')
-rw-r--r--dtc.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/dtc.h b/dtc.h
index 75a1ac5..cbd5eb7 100644
--- a/dtc.h
+++ b/dtc.h
@@ -115,6 +115,8 @@ struct property {
struct data val;
struct property *next;
+
+ char *label;
};
struct node {
@@ -130,6 +132,8 @@ struct node {
cell_t phandle;
int addr_cells, size_cells;
+
+ char *label;
};
#define for_each_property(n, p) \
@@ -138,12 +142,12 @@ struct node {
#define for_each_child(n, c) \
for ((c) = (n)->children; (c); (c) = (c)->next_sibling)
-struct property *build_property(char *name, struct data val);
-struct property *build_empty_property(char *name);
+struct property *build_property(char *name, struct data val, char *label);
+struct property *build_empty_property(char *name, char *label);
struct property *chain_property(struct property *first, struct property *list);
struct node *build_node(struct property *proplist, struct node *children);
-struct node *name_node(struct node *node, char *name);
+struct node *name_node(struct node *node, char *name, char *label);
struct node *chain_node(struct node *first, struct node *list);
void add_property(struct node *node, struct property *prop);