From 5755930ae93b6305b40620fff0e90bc2e4c64b46 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sat, 7 Dec 2013 14:28:19 +0000 Subject: move binding type from explicit statement into declaration. As a side effect the binding declaration changes and looses its (unused) name/identifier --- src/jsapi-libdom.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/jsapi-libdom.h') diff --git a/src/jsapi-libdom.h b/src/jsapi-libdom.h index 7db664d..5a93ff1 100644 --- a/src/jsapi-libdom.h +++ b/src/jsapi-libdom.h @@ -9,12 +9,12 @@ #ifndef nsgenbind_jsapi_libdom_h #define nsgenbind_jsapi_libdom_h +struct options; + struct binding { struct genbind_node *gb_ast; /* root node of binding AST */ struct webidl_node *wi_ast; /* root node of webidl AST */ - - const char *name; /* name of the binding */ const char *interface; /* webidl interface binding is for */ bool has_private; /* true if the binding requires a private structure */ @@ -41,7 +41,7 @@ struct binding { }; /** Generate binding between jsapi and netsurf libdom */ -int jsapi_libdom_output(char *outfile, char *hdrfile, struct genbind_node *genbind_root); +int jsapi_libdom_output(struct options *options, struct genbind_node *genbind_ast, struct genbind_node *binding_node); /** output code block from a node */ void output_code_block(struct binding *binding, struct genbind_node *codelist); -- cgit v1.2.3