|
Revision 5680, 461 bytes
(checked in by blogic, 3 years ago)
|
|
rename uci= into src=
|
| Line | |
|---|
| 1 | #include "../cbi.h" |
|---|
| 2 | |
|---|
| 3 | int section_init(struct cbi_ctx *ctx, struct cbi_element *e) |
|---|
| 4 | { |
|---|
| 5 | return 0; |
|---|
| 6 | } |
|---|
| 7 | |
|---|
| 8 | struct 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 | |
|---|
| 16 | struct 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 | |
|---|
| 23 | WIDGET(section) |
|---|