From 16cc22df3eec0acca53df3178be22f862bf9fa99 Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Thu, 31 Oct 2024 00:05:42 +0100 Subject: src: place last client command information in struct just a preparation, no functional changes are intended. --- src/rest.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/rest.h') 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 { -- cgit v1.2.3-18-g5258