root/luci2/cbi2/widgets/tsection.c
@
5686
| Revision 5686, 372 bytes (checked in by blogic, 3 years ago) |
|---|
| Line | |
|---|---|
| 1 | #include "../cbi.h" |
| 2 | |
| 3 | int tsection_init(struct cbi_ctx *ctx, struct cbi_element *e) |
| 4 | { |
| 5 | return 0; |
| 6 | } |
| 7 | |
| 8 | struct cbi_widget_property tsection_props[] = { |
| 9 | { "id", PROP_REQUIRED }, |
| 10 | { "name", PROP_REQUIRED }, |
| 11 | }; |
| 12 | |
| 13 | struct cbi_widget tsection = { |
| 14 | .caps = CAP_SECTION | CAP_TEMPLATE, |
| 15 | .parent_caps = CAP_PACKAGE, |
| 16 | .init = tsection_init, |
| 17 | WPROPS(tsection_props), |
| 18 | }; |
| 19 | |
| 20 | WIDGET(tsection) |
Note: See TracBrowser
for help on using the browser.
