]> pilppa.org Git - uci.git/blobdiff - uci.h
implement config unload
[uci.git] / uci.h
diff --git a/uci.h b/uci.h
index 26cc3b7016816b22c381d88d37784f6e18cd0848..8784c43d3be0c674c9b38e53859eb2b49601bebc 100644 (file)
--- a/uci.h
+++ b/uci.h
@@ -69,6 +69,14 @@ extern void uci_perror(struct uci_context *ctx, const char *str);
  */
 extern int uci_load(struct uci_context *ctx, const char *name);
 
+/**
+ * uci_unload: Unload a config file from the uci context
+ *
+ * @ctx: uci context
+ * @name: name of the config file
+ */
+extern int uci_unload(struct uci_context *ctx, const char *name);
+
 /**
  * uci_cleanup: Clean up after an error
  *