summaryrefslogtreecommitdiffstats
path: root/src/rest.h
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2024-06-21 15:04:47 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2024-06-21 15:05:26 +0200
commit6cbe69e89e716f81a71f7541e2e0f036b297a2fc (patch)
treee6564b12103c1a19c07bfb702aee70c65ad3629d /src/rest.h
parent12d5caf6a6af5cb4870d375e185341909fc61b7e (diff)
rest: add cmd to shell/output
Add "cmd" field to json that provides the original command string, so it is provided with the output and the return code.
Diffstat (limited to 'src/rest.h')
-rw-r--r--src/rest.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rest.h b/src/rest.h
index 0fb1776..60edccb 100644
--- a/src/rest.h
+++ b/src/rest.h
@@ -72,6 +72,7 @@ struct og_client {
uint32_t speed;
uint32_t seq;
struct {
+ const char *cmd;
const char *output;
uint32_t retcode;
} shell;