diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2020-05-22 17:31:37 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2020-05-22 17:31:37 +0100 |
commit | 819943b7eaa3de48d80a20008250b9e2ea911aaa (patch) | |
tree | eeef65699f859cee4ed7133a35697cc3283b29a3 /src/ir.h | |
parent | 81198cd635beb60913d26878ce51c48e9d73c624 (diff) | |
download | nsgenjsbind-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.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 */ |