diff -r ce04d79b8e57 -r b75cc2cf4e50 svghmi/svghmi.c --- a/svghmi/svghmi.c Tue Aug 20 10:32:34 2019 +0200 +++ b/svghmi/svghmi.c Thu Aug 22 14:58:53 2019 +0200 @@ -1,7 +1,37 @@ +#include "iec_types_all.h" +#include "POUS.h" +#include "config.h" +#include "beremiz.h" -void test_me(void){ - /* - %(hmi_tree)s - */ - return; +%(extern_variables_declarations)s + +typedef const struct { + void *ptr; + __IEC_types_enum type; + /* TODO : w/r buffer, flags, locks */ +} hmi_tree_item_t; + +static hmi_tree_item_t hmi_tree_item[] = { +%(variable_decl_array)s +}; + +int __init_svghmi() +{ + %(varinit)s + return 0; } + +void __cleanup_svghmi() +{ +} + +void __retrieve_svghmi() +{ +%(varret)s +} + +void __publish_svghmi() +{ +%(varpub)s +} +