root/luci2/cbi2/widgets/section.c @ 5680

Revision 5680, 461 bytes (checked in by blogic, 3 years ago)

rename uci= into src=

Line 
1#include "../cbi.h"
2
3int section_init(struct cbi_ctx *ctx, struct cbi_element *e)
4{
5    return 0;
6}
7
8struct cbi_widget_property section_props[] = {
9    { "name", PROP_REQUIRED },
10    { "id", PROP_REQUIRED },
11    { "src", PROP_OPTIONAL },
12    { "package", PROP_OPTIONAL },
13    { "ref", PROP_OPTIONAL },
14};
15
16struct cbi_widget section = {
17    .caps = CAP_DATA | CAP_PACKAGE | CAP_SECTION,
18    .parent_caps = CAP_PACKAGE,
19    .init = section_init,
20    WPROPS(section_props),
21};
22
23WIDGET(section)
Note: See TracBrowser for help on using the browser.