diff options
author | Vincent Sanders <vincent.sanders@collabora.co.uk> | 2012-12-19 19:28:29 +0000 |
---|---|---|
committer | Vincent Sanders <vincent.sanders@collabora.co.uk> | 2012-12-19 19:28:29 +0000 |
commit | 841ecdf404e166945f5cc6cd320ca15dfb93b57c (patch) | |
tree | 0e5ee476df22f90c91d9631c74618bd0d8b475ca /src/jsapi-libdom.h | |
parent | 8c1dc149575cfab4f3fdac91d9fd3c41be9d75bc (diff) | |
download | nsgenbind-841ecdf404e166945f5cc6cd320ca15dfb93b57c.tar.gz nsgenbind-841ecdf404e166945f5cc6cd320ca15dfb93b57c.tar.bz2 |
allow generation of header for exported interfaces and structures.
Diffstat (limited to 'src/jsapi-libdom.h')
-rw-r--r-- | src/jsapi-libdom.h | 9 |
1 files changed, 7 insertions, 2 deletions
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); |