diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-04-28 19:54:25 +0400 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-04-28 19:54:25 +0400 |
commit | d416bf66555c9398f81b4546c96084b1d311fd8d (patch) | |
tree | b4cf163db084e05761895a80b4e9699c5d5ee53c /json_script.h | |
parent | 178fe974af1d0fa4130f865f7b494b0d6b1b05a4 (diff) |
json_script: add json_script_run_file()
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'json_script.h')
-rw-r--r-- | json_script.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/json_script.h b/json_script.h index 25cc04f..9475baa 100644 --- a/json_script.h +++ b/json_script.h @@ -97,6 +97,8 @@ void json_script_free(struct json_script_ctx *ctx); void json_script_run(struct json_script_ctx *ctx, const char *filename, struct blob_attr *vars); +void json_script_run_file(struct json_script_ctx *ctx, struct json_script_file *file, + struct blob_attr *vars); /* * json_script_eval_string - evaluate a string and store the result * |