diff options
Diffstat (limited to 'src/webidl-ast.h')
-rw-r--r-- | src/webidl-ast.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/webidl-ast.h b/src/webidl-ast.h index 8af3aeb..682bb27 100644 --- a/src/webidl-ast.h +++ b/src/webidl-ast.h @@ -31,6 +31,7 @@ struct webidl_node { /** callback for search and iteration routines */ typedef int (webidl_callback_t)(struct webidl_node *node, void *ctx); +int webidl_cmp_node_type(struct webidl_node *node, void *ctx); struct webidl_node *webidl_node_new(enum webidl_node_type, struct webidl_node *l, void *r); @@ -47,6 +48,18 @@ int webidl_node_for_each_type(struct webidl_node *node, webidl_callback_t *cb, void *ctx); +struct webidl_node * +webidl_node_find(struct webidl_node *node, + struct webidl_node *prev, + webidl_callback_t *cb, + void *ctx); + +struct webidl_node * +webidl_node_find_type_ident(struct webidl_node *root_node, + enum webidl_node_type type, + const char *ident); + + /* debug dump */ int webidl_ast_dump(struct webidl_node *node, int indent); |