summaryrefslogtreecommitdiffstats
path: root/src/rest.h
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2024-10-31 00:05:42 +0100
committerOpenGnSys Support Team <soporte-og@soleta.eu>2024-10-31 00:37:03 +0100
commit16cc22df3eec0acca53df3178be22f862bf9fa99 (patch)
tree6cf547f442a62d3cdf84a1d8e1051e16cd131497 /src/rest.h
parent2febb50a92adb91e88825a7839c1f055c10ba6cf (diff)
src: place last client command information in struct
just a preparation, no functional changes are intended.
Diffstat (limited to 'src/rest.h')
-rw-r--r--src/rest.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/rest.h b/src/rest.h
index 58129d7..ff1486b 100644
--- a/src/rest.h
+++ b/src/rest.h
@@ -66,9 +66,11 @@ struct og_client {
int content_length;
char auth_token[64];
enum og_client_status status;
- enum og_cmd_type last_cmd;
- unsigned int last_cmd_id;
- enum og_cmd_result last_cmd_result;
+ struct {
+ enum og_cmd_type type;
+ unsigned int id;
+ enum og_cmd_result result;
+ } last_cmd;
uint32_t speed;
uint32_t seq;
struct {