Changeset e41ba05 for storage_xml.c
- Timestamp:
- 2016-03-23T06:44:13Z (9 years ago)
- Branches:
- master
- Children:
- 446a23e
- Parents:
- 3ac6d9f
- git-author:
- Dennis Kaarsemaker <dennis@…> (22-02-16 21:26:15)
- git-committer:
- Dennis Kaarsemaker <dennis@…> (23-03-16 06:44:13)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
storage_xml.c
r3ac6d9f re41ba05 65 65 { 66 66 struct xt_node *c; 67 struct set *s; 67 68 68 69 for (c = node->children; (c = xt_find_node(c, "setting")); c = c->next) { 69 70 char *name = xt_find_attr(c, "name"); 71 char *locked = xt_find_attr(c, "locked"); 70 72 71 73 if (!name) { … … 80 82 } 81 83 set_setstr(head, name, c->text); 84 if (locked && !g_strcasecmp(locked, "true")) { 85 s = set_find(head, name); 86 if (s) { 87 s->flags |= SET_LOCKED; 88 } 89 } 82 90 } 83 91 } … … 371 379 xt_add_child(cur, xset = xt_new_node("setting", set->value, NULL)); 372 380 xt_add_attr(xset, "name", set->key); 381 if (set->flags & SET_LOCKED) { 382 xt_add_attr(xset, "locked", "true"); 383 } 373 384 } 374 385 }
Note: See TracChangeset
for help on using the changeset viewer.