summaryrefslogtreecommitdiff
path: root/src/duk-libdom.h
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2015-08-30 09:14:38 +0100
committerVincent Sanders <vince@kyllikki.org>2015-08-30 09:14:38 +0100
commit83956295f66576becbf5de8cef915cd0d54f409b (patch)
treeb8040d623ed6d0998ddb23224f364cc1b4be2460 /src/duk-libdom.h
parentd6f41574a18866ebfbb8b61f9afcd0a0de2d40cf (diff)
downloadnsgenbind-83956295f66576becbf5de8cef915cd0d54f409b.tar.gz
nsgenbind-83956295f66576becbf5de8cef915cd0d54f409b.tar.bz2
Change dictionary generation to produce C accessors.
This generates routines which correctly handle reading a member from a dictionary and returning it as the correct c type. Currently the types "any", "user" and "sequence" remain unhandled.
Diffstat (limited to 'src/duk-libdom.h')
-rw-r--r--src/duk-libdom.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/duk-libdom.h b/src/duk-libdom.h
index 84fc497..79b440e 100644
--- a/src/duk-libdom.h
+++ b/src/duk-libdom.h
@@ -20,11 +20,21 @@ int duk_libdom_output(struct ir *ir);
int output_interface(struct ir *ir, struct ir_entry *interfacee);
/**
+ * generate a declaration to implement a dictionary using duk and libdom.
+ */
+int output_interface_declaration(FILE* outf, 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 a declaration to implement a dictionary using duk and libdom.
+ */
+int output_dictionary_declaration(FILE* outf, struct ir_entry *dictionarye);
+
+/**
* generate preface block for nsgenbind
*/
int output_tool_preface(FILE* outf);