diff options
author | Vincent Sanders <vince@kyllikki.org> | 2015-08-21 12:53:52 +0200 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2015-08-21 12:53:52 +0200 |
commit | b0f64cff2c94d1a208528e2ed91c15ab037dbbb1 (patch) | |
tree | 85160c531ec6dd0a51c1aaa276e668cbac64298b /src/duk-libdom.h | |
parent | 56eee21ccb63cb7f040c5ce07bc226fbd229330d (diff) | |
download | nsgenbind-b0f64cff2c94d1a208528e2ed91c15ab037dbbb1.tar.gz nsgenbind-b0f64cff2c94d1a208528e2ed91c15ab037dbbb1.tar.bz2 |
split up duk-libdom generation source as it had grown unweildy
Diffstat (limited to 'src/duk-libdom.h')
-rw-r--r-- | src/duk-libdom.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/duk-libdom.h b/src/duk-libdom.h index 2ecd482..84fc497 100644 --- a/src/duk-libdom.h +++ b/src/duk-libdom.h @@ -9,6 +9,41 @@ #ifndef nsgenbind_duk_libdom_h #define nsgenbind_duk_libdom_h +/** + * Generate output for duktape and libdom bindings. + */ int duk_libdom_output(struct ir *ir); +/** + * generate a source file to implement an interface using duk and libdom. + */ +int output_interface(struct ir *ir, struct ir_entry *interfacee); + +/** + * generate a source file to implement a dictionary using duk and libdom. + */ +int output_dictionary(struct ir *ir, struct ir_entry *dictionarye); + +/** + * generate preface block for nsgenbind + */ +int output_tool_preface(FILE* outf); + +/** + * generate preface block for nsgenbind + */ +int output_tool_prologue(FILE* outf); + +/** + * output character data of node of given type. + * + * used for any cdata including pre/pro/epi/post sections + * + * \param outf The file handle to write output. + * \param node The node to search. + * \param nodetype the type of child node to search for. + * \return The number of nodes written or 0 for none. + */ +int output_cdata(FILE* outf, struct genbind_node *node, enum genbind_node_type nodetype); + #endif |