From 13be4238314d1a9903b037ab749074575ef0d1eb Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sat, 25 Jul 2015 21:59:19 +0100 Subject: initial duktape libdom generator This generator creates all the output files and generates the finalisers for every class. --- src/interface-map.h | 32 ++++++++++++++++++++++++++------ 1 file changed, 26 insertions(+), 6 deletions(-) (limited to 'src/interface-map.h') diff --git a/src/interface-map.h b/src/interface-map.h index c9dd654..8a6ac05 100644 --- a/src/interface-map.h +++ b/src/interface-map.h @@ -25,19 +25,39 @@ struct interface_map_entry { * interface */ struct genbind_node *class; /**< class from binding (if any) */ + + /* The variables are created and used by the output generation but + * rtaher than have another allocation and pointer the data they are + * just inline here. + */ + + char *filename; /**< filename used for output */ + + char *class_name; /**< the interface name converted to output + * appropriate value. e.g. generators targetting c + * might lowercase the name or add underscores + * instead of caps + */ }; struct interface_map { - int entryc; /**< count of interfaces */ - struct interface_map_entry *entries; + int entryc; /**< count of interfaces */ + struct interface_map_entry *entries; }; int interface_map_new(struct genbind_node *genbind, - struct webidl_node *webidl, - struct interface_map **index_out); + struct webidl_node *webidl, + struct interface_map **index_out); -int interface_map_dump(struct interface_map *index); +int interface_map_dump(struct interface_map *map); -int interface_map_dumpdot(struct interface_map *index); +int interface_map_dumpdot(struct interface_map *map); + +/** + * interface map parent entry + * + * \return inherit entry or NULL if there is not one + */ +struct interface_map_entry *interface_map_inherit_entry(struct interface_map *map, struct interface_map_entry *entry); #endif -- cgit v1.2.3