summaryrefslogtreecommitdiffstats
path: root/src/rest.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/rest.h')
-rw-r--r--src/rest.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/rest.h b/src/rest.h
index d586ef6..df6b225 100644
--- a/src/rest.h
+++ b/src/rest.h
@@ -42,6 +42,12 @@ enum og_cmd_type {
OG_CMD_MAX
};
+enum og_cmd_result {
+ OG_UNKNOWN = 0,
+ OG_FAILURE = 1,
+ OG_SUCCESS = 2,
+};
+
#define OG_MSG_REQUEST_MAXLEN 131072
struct og_client {
@@ -59,6 +65,7 @@ struct og_client {
enum og_client_status status;
enum og_cmd_type last_cmd;
unsigned int last_cmd_id;
+ enum og_cmd_result last_cmd_result;
bool autorun;
uint32_t speed;
const char *shell_output;