X-Git-Url: http://git.archive.openwrt.org/?a=blobdiff_plain;f=uci.h;h=c5583ed0f798a081e964ba120760c59d179b36e2;hb=f34c2de12f6f79c72c0b0b9a4f3649ed24817bc8;hp=abba660826c33fd64acc3e46a2d6f5f1510dfd04;hpb=790d30606d545956a64f183c3199f472a70a6385;p=project%2Fuci.git diff --git a/uci.h b/uci.h index abba660..c5583ed 100644 --- a/uci.h +++ b/uci.h @@ -252,6 +252,8 @@ extern int uci_list_configs(struct uci_context *ctx, char ***list); * uci_set_savedir: override the default delta save directory * @ctx: uci context * @dir: directory name + * + * This will also try adding the specified dir to the end of delta pathes. */ extern int uci_set_savedir(struct uci_context *ctx, const char *dir); @@ -269,8 +271,8 @@ extern int uci_set_confdir(struct uci_context *ctx, const char *dir); * * This function allows you to add directories, which contain 'overlays' * for the active config, that will never be committed. - * Caller of this API should ensure that no duplicate entries (including the - * default search path, e.g. `UCI_SAVEDIR') should be added. + * + * Adding a duplicate directory will cause UCI_ERR_DUPLICATE be returned. */ extern int uci_add_delta_path(struct uci_context *ctx, const char *dir);