diff options
author | Vincent Sanders <vince@kyllikki.org> | 2014-01-03 02:07:11 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2014-05-16 14:38:56 +0100 |
commit | 26e5be085e5c7a17cea4af7cb9e13502ffb0ebd1 (patch) | |
tree | bcf6bd9e83cdf03c851d3878c1141b0f2337ea60 /src/jsapi-libdom.h | |
parent | 202be5081e4b201a3937407b2aff3328139ef1a3 (diff) | |
download | nsgenbind-26e5be085e5c7a17cea4af7cb9e13502ffb0ebd1.tar.gz nsgenbind-26e5be085e5c7a17cea4af7cb9e13502ffb0ebd1.tar.bz2 |
complete implementation of interface map generation and split out to own module
Diffstat (limited to 'src/jsapi-libdom.h')
-rw-r--r-- | src/jsapi-libdom.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/jsapi-libdom.h b/src/jsapi-libdom.h index ce50589..82258ae 100644 --- a/src/jsapi-libdom.h +++ b/src/jsapi-libdom.h @@ -16,11 +16,11 @@ struct binding_interface { struct genbind_node *node; /* node of interface in binding */ struct webidl_node *widl_node; /* node of interface in webidl */ const char *inherit_name; /* name of interface this inherits from */ - 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 own_properties; /* the number of properties the interface has */ int own_functions; /* the number of functions the interface has */ + 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 */ }; struct binding { @@ -58,6 +58,13 @@ struct binding { /** Generate binding between jsapi and netsurf libdom */ 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, + 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); |