#include "../cbi.h" int section_init(struct cbi_ctx *ctx, struct cbi_element *e) { return 0; } struct cbi_widget_property section_props[] = { { "id", PROP_REQUIRED }, { "src", PROP_OPTIONAL }, { "ref", PROP_OPTIONAL }, }; struct cbi_widget section = { .caps = CAP_DATA | CAP_PACKAGE | CAP_SECTION, .parent_caps = CAP_PACKAGE, .init = section_init, WPROPS(section_props), }; WIDGET(section)