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:
bb50cb8
)
fix uci_lookup_ptr comments
author
Felix Fietkau
<nbd@pi.local>
Thu, 17 Sep 2009 09:27:15 +0000
(11:27 +0200)
committer
Felix Fietkau
<nbd@pi.local>
Thu, 17 Sep 2009 09:27:15 +0000
(11:27 +0200)
uci.h
patch
|
blob
|
history
diff --git
a/uci.h
b/uci.h
index 74bbdffa921cf8e2e8a34fcb103b0a0cd969165d..95d9c0a1ff464a94a4f696130390efe86fc616b8 100644
(file)
--- a/
uci.h
+++ b/
uci.h
@@
-147,7
+147,9
@@
extern int uci_unload(struct uci_context *ctx, struct uci_package *p);
* Examples:
* network.@interface[0].ifname ('ifname' option of the first interface section)
* network.@interface[-1] (last interface section)
* Examples:
* network.@interface[0].ifname ('ifname' option of the first interface section)
* network.@interface[-1] (last interface section)
- * Note: uci_lookup_ext will automatically load a config package if necessary
+ * Note: uci_lookup_ptr will automatically load a config package if necessary
+ * @str must not be constant, as it will be modified and used for the strings inside @ptr,
+ * thus it must also be available as long as @ptr is in use.
*/
extern int uci_lookup_ptr(struct uci_context *ctx, struct uci_ptr *ptr, char *str, bool extended);
*/
extern int uci_lookup_ptr(struct uci_context *ctx, struct uci_ptr *ptr, char *str, bool extended);