summaryrefslogtreecommitdiff
path: root/src/ir.h
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2020-05-22 17:31:37 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2020-05-22 17:31:37 +0100
commit819943b7eaa3de48d80a20008250b9e2ea911aaa (patch)
treeeeef65699f859cee4ed7133a35697cc3283b29a3 /src/ir.h
parent81198cd635beb60913d26878ce51c48e9d73c624 (diff)
downloadnsgenjsbind-819943b7eaa3de48d80a20008250b9e2ea911aaa.tar.gz
duktape: Guess at and support more than pointer init arguments
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'src/ir.h')
-rw-r--r--src/ir.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ir.h b/src/ir.h
index 6b848ea..72e2137 100644
--- a/src/ir.h
+++ b/src/ir.h
@@ -123,6 +123,13 @@ enum ir_entry_type {
IR_ENTRY_TYPE_DICTIONARY,
};
+enum ir_init_argtype {
+ IR_INIT_ARG_POINTER,
+ IR_INIT_ARG_UNSIGNED,
+ IR_INIT_ARG_INT,
+ IR_INIT_ARG_BOOL,
+};
+
/** top level entry info common to interfaces and dictionaries */
struct ir_entry {
const char *name; /** IDL name */
@@ -158,6 +165,7 @@ struct ir_entry {
int class_init_argc; /**< The number of parameters on the class
* initializer.
*/
+ enum ir_init_argtype *class_init_argt; /**< The types of the initialiser parameters */
};
/** intermediate representation of WebIDL and binding data */