16 #ifndef __JSON_SCRIPT_H
17 #define __JSON_SCRIPT_H
123 const char *pattern);
static const struct json_handler cmd[]
static const struct json_handler expr[]
void json_script_init(struct json_script_ctx *ctx)
void json_script_free(struct json_script_ctx *ctx)
struct json_script_file * json_script_file_from_blobmsg(const char *name, void *data, int len)
void json_script_run(struct json_script_ctx *ctx, const char *filename, struct blob_attr *vars)
static void json_script_abort(struct json_script_ctx *ctx)
int json_script_eval_string(struct json_script_ctx *ctx, struct blob_attr *vars, struct blob_buf *buf, const char *name, const char *pattern)
void json_script_run_file(struct json_script_ctx *ctx, struct json_script_file *file, struct blob_attr *vars)
const char * json_script_find_var(struct json_script_ctx *ctx, struct blob_attr *vars, const char *name)
int(* handle_expr)(struct json_script_ctx *ctx, const char *name, struct blob_attr *expr, struct blob_attr *vars)
void(* handle_error)(struct json_script_ctx *ctx, const char *msg, struct blob_attr *context)
void(* handle_command)(struct json_script_ctx *ctx, const char *name, struct blob_attr *cmd, struct blob_attr *vars)
struct json_script_file * next
struct udebug_client_msg * msg