X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fuci.git;a=blobdiff_plain;f=uci.h;h=a34a36bb4b3095451dfd55a2bcb2d09a25bb26bf;hp=4b792d6822a2d4dcc7dce1ff073f03a3b7386067;hb=9487b850844e4fb873b90cf357c2d0367ebc065c;hpb=04a7e4c12fa0584671ac25d8cf6c2dfdec57509b diff --git a/uci.h b/uci.h index 4b792d6..a34a36b 100644 --- a/uci.h +++ b/uci.h @@ -73,6 +73,14 @@ extern void uci_perror(struct uci_context *ctx, const char *str); extern int uci_import(struct uci_context *ctx, FILE *stream, const char *name, struct uci_config **cfg); /** + * uci_export: Export one or all uci config packages + * @ctx: uci context + * @stream: output stream + * @cfg: (optional) uci config package to export + */ +extern int uci_export(struct uci_context *ctx, FILE *stream, struct uci_config *cfg); + +/** * uci_load: Parse an uci config file and store it in the uci context * * @ctx: uci context @@ -115,6 +123,8 @@ struct uci_context /* private: */ int errno; jmp_buf trap; + char *buf; + int bufsz; }; struct uci_parse_context