From 841ecdf404e166945f5cc6cd320ca15dfb93b57c Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Wed, 19 Dec 2012 19:28:29 +0000 Subject: allow generation of header for exported interfaces and structures. --- src/jsapi-libdom.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/jsapi-libdom.h') diff --git a/src/jsapi-libdom.h b/src/jsapi-libdom.h index 8af39b2..bdc941d 100644 --- a/src/jsapi-libdom.h +++ b/src/jsapi-libdom.h @@ -24,11 +24,16 @@ struct binding { struct genbind_node *finalise; /* binding api finalise node or NULL */ struct genbind_node *mark; /* binding api mark node or NULL */ - FILE *outfile ; /* output file */ + FILE *outfile ; /* file handle output should be written to, + * allows reuse of callback routines to output + * to headers and source files + */ + FILE *srcfile ; /* output source file */ + FILE *hdrfile ; /* output header file */ }; /** Generate binding between jsapi and netsurf libdom */ -int jsapi_libdom_output(char *outfile, struct genbind_node *genbind_root); +int jsapi_libdom_output(char *outfile, char *hdrfile, struct genbind_node *genbind_root); /** output code block from a node */ void output_code_block(struct binding *binding, struct genbind_node *codelist); -- cgit v1.2.3