projects
/
project
/
uci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b892863
)
some helpful comments
author
Felix Fietkau
<nbd@openwrt.org>
Wed, 30 Jan 2008 02:46:54 +0000
(
03:46
+0100)
committer
Felix Fietkau
<nbd@openwrt.org>
Wed, 30 Jan 2008 02:46:54 +0000
(
03:46
+0100)
list.c
patch
|
blob
|
history
diff --git
a/list.c
b/list.c
index
88f07bd
..
4fe5116
100644
(file)
--- a/
list.c
+++ b/
list.c
@@
-251,6
+251,7
@@
notfound:
int uci_del_element(struct uci_context *ctx, struct uci_element *e)
{
int uci_del_element(struct uci_context *ctx, struct uci_element *e)
{
+ /* NB: UCI_INTERNAL use means without history tracking */
bool internal = ctx->internal;
struct uci_package *p = NULL;
struct uci_section *s = NULL;
bool internal = ctx->internal;
struct uci_package *p = NULL;
struct uci_section *s = NULL;
@@
-298,6
+299,7
@@
int uci_del_element(struct uci_context *ctx, struct uci_element *e)
int uci_set_element_value(struct uci_context *ctx, struct uci_element **element, char *value)
{
int uci_set_element_value(struct uci_context *ctx, struct uci_element **element, char *value)
{
+ /* NB: UCI_INTERNAL use means without history tracking */
bool internal = ctx->internal;
struct uci_list *list;
struct uci_element *e;
bool internal = ctx->internal;
struct uci_list *list;
struct uci_element *e;
@@
-367,6
+369,7
@@
int uci_set_element_value(struct uci_context *ctx, struct uci_element **element,
int uci_del(struct uci_context *ctx, struct uci_package *p, char *section, char *option)
{
int uci_del(struct uci_context *ctx, struct uci_package *p, char *section, char *option)
{
+ /* NB: pass on internal flag to uci_del_element */
bool internal = ctx->internal;
struct uci_element *e;
struct uci_section *s = NULL;
bool internal = ctx->internal;
struct uci_element *e;
struct uci_section *s = NULL;
@@
-387,6
+390,7
@@
int uci_del(struct uci_context *ctx, struct uci_package *p, char *section, char
int uci_set(struct uci_context *ctx, struct uci_package *p, char *section, char *option, char *value)
{
int uci_set(struct uci_context *ctx, struct uci_package *p, char *section, char *option, char *value)
{
+ /* NB: UCI_INTERNAL use means without history tracking */
bool internal = ctx->internal;
struct uci_element *e = NULL;
struct uci_section *s = NULL;
bool internal = ctx->internal;
struct uci_element *e = NULL;
struct uci_section *s = NULL;