diff options
author | Vincent Sanders <vince@kyllikki.org> | 2015-07-29 16:22:36 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2015-07-29 16:22:36 +0100 |
commit | 0c5f196017056b257c4c5a28338f90ada379310a (patch) | |
tree | b523e4a5ec71b194f7cbce3ec462301a845ba621 /src/interface-map.h | |
parent | cb23f1f911523752db095781d0d5fa3e334f1aa5 (diff) | |
download | nsgenbind-0c5f196017056b257c4c5a28338f90ada379310a.tar.gz nsgenbind-0c5f196017056b257c4c5a28338f90ada379310a.tar.bz2 |
Generate constant values on the class prototype
Diffstat (limited to 'src/interface-map.h')
-rw-r--r-- | src/interface-map.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/interface-map.h b/src/interface-map.h index 9d66dfb..8ce6c01 100644 --- a/src/interface-map.h +++ b/src/interface-map.h @@ -12,12 +12,14 @@ struct genbind_node; struct webidl_node; +/** map entry for operations on an interface */ struct interface_map_operation_entry { const char *name; /** operation name */ struct webidl_node *node; /**< AST operation node */ struct genbind_node *method; /**< method from binding (if any) */ }; +/** map entry for attributes on an interface */ struct interface_map_attribute_entry { const char *name; /** attribute name */ struct webidl_node *node; /**< AST attribute node */ @@ -26,6 +28,13 @@ struct interface_map_attribute_entry { struct genbind_node *setter; /**< getter from binding (if any) */ }; +/** map entry for constants on an interface */ +struct interface_map_constant_entry { + const char *name; /** attribute name */ + struct webidl_node *node; /**< AST constant node */ +}; + +/** map entry for an interface */ struct interface_map_entry { const char *name; /** interface name */ struct webidl_node *node; /**< AST interface node */ @@ -37,6 +46,9 @@ struct interface_map_entry { int attributec; /**< number of attributes on interface */ struct interface_map_attribute_entry *attributev; + int constantc; /**< number of constants on interface */ + struct interface_map_constant_entry *constantv; + int inherit_idx; /**< index into map of inherited interface or -1 for * not in map */ @@ -62,6 +74,7 @@ struct interface_map_entry { */ }; +/** WebIDL interface map */ struct interface_map { int entryc; /**< count of interfaces */ struct interface_map_entry *entries; |