libubox
C utility functions for OpenWrt.
json_script_ctx Struct Reference

#include <json_script.h>

Collaboration diagram for json_script_ctx:

Data Fields

struct avl_tree files
 
struct blob_buf buf
 
uint32_t run_seq
 
bool abort
 
void(* handle_command )(struct json_script_ctx *ctx, const char *name, struct blob_attr *cmd, struct blob_attr *vars)
 
int(* handle_expr )(struct json_script_ctx *ctx, const char *name, struct blob_attr *expr, struct blob_attr *vars)
 
const char *(* handle_var )(struct json_script_ctx *ctx, const char *name, struct blob_attr *vars)
 
struct json_script_file *(* handle_file )(struct json_script_ctx *ctx, const char *name)
 
void(* handle_error )(struct json_script_ctx *ctx, const char *msg, struct blob_attr *context)
 

Detailed Description

Definition at line 26 of file json_script.h.

Field Documentation

◆ abort

bool json_script_ctx::abort

Definition at line 31 of file json_script.h.

◆ buf

struct blob_buf json_script_ctx::buf

Definition at line 133 of file json_script.h.

◆ files

struct avl_tree json_script_ctx::files

Definition at line 133 of file json_script.h.

◆ handle_command

void(* json_script_ctx::handle_command) (struct json_script_ctx *ctx, const char *name, struct blob_attr *cmd, struct blob_attr *vars)

Definition at line 40 of file json_script.h.

◆ handle_error

void(* json_script_ctx::handle_error) (struct json_script_ctx *ctx, const char *msg, struct blob_attr *context)

Definition at line 77 of file json_script.h.

◆ handle_expr

int(* json_script_ctx::handle_expr) (struct json_script_ctx *ctx, const char *name, struct blob_attr *expr, struct blob_attr *vars)

Definition at line 50 of file json_script.h.

◆ handle_file

struct json_script_file*(* json_script_ctx::handle_file) (struct json_script_ctx *ctx, const char *name)

Definition at line 57 of file json_script.h.

◆ handle_var

const char*(* json_script_ctx::handle_var) (struct json_script_ctx *ctx, const char *name, struct blob_attr *vars)

Definition at line 57 of file json_script.h.

◆ run_seq

uint32_t json_script_ctx::run_seq

Definition at line 30 of file json_script.h.


The documentation for this struct was generated from the following file: