diff options
Diffstat (limited to 'src/rest.h')
-rw-r--r-- | src/rest.h | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -51,6 +51,14 @@ enum og_cmd_result { OG_SUCCESS = 2, }; +struct og_cmd_ctx { + union { + struct { + uint32_t id; + } image; + }; +}; + #define OG_MSG_REQUEST_MAXLEN 131072 struct og_client { @@ -70,6 +78,7 @@ struct og_client { enum og_cmd_type type; unsigned int id; enum og_cmd_result result; + struct og_cmd_ctx ctx; } last_cmd; uint32_t speed; uint32_t seq; @@ -159,7 +168,7 @@ enum og_rest_method { int og_send_request(enum og_rest_method method, enum og_cmd_type type, const struct og_msg_params *params, - const json_t *data); + const json_t *data, const struct og_cmd_ctx *ctx); int og_dbi_scope_get(struct og_dbi *dbi, json_t *array); |