Changeset 5695
- Timestamp:
- 02/28/10 18:44:28 (3 years ago)
- Location:
- luci2/cbi2
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
luci2/cbi2/cbi.c
r5694 r5695 166 166 if(!(e->w)) 167 167 return 1; 168 list_add_tail(&e->widget_ref, &e->w->refs); 168 169 if(widget_find_prop(e->w, "id")) 169 170 cbi_gen_default_id(e, count); … … 567 568 } 568 569 } 569 /* printf("\nglobals:\n");570 cbi_dump_list(&ctx->globals);571 printf("\npagess:\n");572 cbi_dump_list(&ctx->pages);*/573 570 } 574 571 -
luci2/cbi2/cbi.h
r5694 r5695 81 81 { 82 82 struct list_head list; 83 struct list_head refs; 83 84 char *name; 84 85 uint64_t caps; … … 101 102 struct list_head properties; 102 103 struct list_head index; 104 struct list_head widget_ref; 103 105 104 106 int broken; … … 146 148 { \ 147 149 if(!widget.name) widget.name = strdup(#widget); \ 150 INIT_LIST_HEAD(&widget.refs); \ 148 151 cbi_widget_register(#widget, & widget); \ 149 152 }
