diff options
author | Vincent Sanders <vince@kyllikki.org> | 2014-01-04 09:38:43 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2014-05-16 14:38:56 +0100 |
commit | 74158664a1826e5763e7c6949a915c75c8c1a23d (patch) | |
tree | 76bc3afdad973a54b49ae721120fb362b3feaf9e /src/jsapi-libdom.h | |
parent | 26e5be085e5c7a17cea4af7cb9e13502ffb0ebd1 (diff) | |
download | nsgenbind-74158664a1826e5763e7c6949a915c75c8c1a23d.tar.gz nsgenbind-74158664a1826e5763e7c6949a915c75c8c1a23d.tar.bz2 |
split out jsapi class generation and make use interface map
Diffstat (limited to 'src/jsapi-libdom.h')
-rw-r--r-- | src/jsapi-libdom.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/jsapi-libdom.h b/src/jsapi-libdom.h index 82258ae..cf27318 100644 --- a/src/jsapi-libdom.h +++ b/src/jsapi-libdom.h @@ -21,6 +21,7 @@ struct binding_interface { int inherit_idx; /* index into binding map of inherited interface or -1 for not in map */ int refcount; /* number of entries in map that refer to this interface */ + int output_idx; /* for interfaces that will be output (node is valid) this is the output array index */ }; struct binding { @@ -59,15 +60,18 @@ struct binding { int jsapi_libdom_output(struct options *options, struct genbind_node *genbind_ast, struct genbind_node *binding_node); /** build interface mapping */ -struct genbind_node * -build_interface_map(struct genbind_node *binding_node, +int build_interface_map(struct genbind_node *binding_node, struct webidl_node *webidl_ast, int *interfacec_out, struct binding_interface **interfaces_out); + /** output code block from a node */ void output_code_block(struct binding *binding, struct genbind_node *codelist); +/** generate classes */ +int output_jsclasses(struct binding *binding); + /* Generate jsapi native function specifiers */ int output_function_spec(struct binding *binding); |