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

Revision 5692, 402 bytes (checked in by blogic, 3 years ago)

adds cbi_create_instance to allow creating instances of template references

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