Changeset 5670
- Timestamp:
- 02/23/10 21:58:14 (3 years ago)
- Location:
- luci2/cbi2
- Files:
-
- 2 modified
-
lucip.c (modified) (5 diffs)
-
network.luci (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
luci2/cbi2/lucip.c
r5664 r5670 14 14 #define TAG_OPEN 0 15 15 #define TAG_CLOSE 1 16 #define TAG_OPENCLOSE 2 16 17 17 18 #define lucip_fail(a,b) lucip_error(a,b,"") … … 104 105 } 105 106 106 static int lucip_add_tag(struct lucip *l, const char *namespace, const char *widget, char *data )107 static int lucip_add_tag(struct lucip *l, const char *namespace, const char *widget, char *data, int close) 107 108 { 108 109 int r; … … 124 125 else 125 126 list_add_tail(&t->list, &l->tags); 127 if(close) 128 return MORE; 126 129 if(l->stackcount >= STACK_DEPTH) 127 130 return lucip_error(l, STACK_TOO_DEEP, "Stack depth has reached %d", STACK_DEPTH); … … 200 203 ctag = TAG_CLOSE; 201 204 } 205 if(stop[-1] == '/') 206 { 207 stop[-1] = '\0'; 208 printf("%s:%s[%d]\n", __FILE__, __func__, __LINE__); 209 ctag = TAG_OPENCLOSE; 210 } 202 211 *stop++ = '\0'; 203 212 *colon++ = '\0'; … … 207 216 l->last = l->pos = stop; 208 217 if(ctag == TAG_OPEN) 209 return lucip_add_tag(l, start, colon, space); 218 return lucip_add_tag(l, start, colon, space, 0); 219 if(ctag == TAG_OPENCLOSE) 220 return lucip_add_tag(l, start, colon, space, 1); 210 221 return lucip_close_tag(l, start, colon); 211 222 } -
luci2/cbi2/network.luci
r5668 r5670 34 34 35 35 <luci:page uci="network"> 36 <luci:section ref="network.interface" name="wan" ></luci:section>36 <luci:section ref="network.interface" name="wan"/> 37 37 <luci:section package="dhcp" name="dhcp"> 38 38 <luci:option uci="enable">Enable</luci:option>
