diff mbox series

[03/12] IPC: add SET_SWUPDATE_VARS and GET_SWUPDATE_VARS

Message ID 20231016165740.1374614-3-stefano.babic@swupdate.org
State Changes Requested
Delegated to: Stefano Babic
Headers show
Series [01/12] Cleanup: use #pragma once in all headers | expand

Commit Message

Stefano Babic Oct. 16, 2023, 4:57 p.m. UTC
Add setter / getter via IPC for not-bootloader variables, that are used
for general purposes or to store variables evaluated by SWUpdate but not
by the bootloader.

Signed-off-by: Stefano Babic <stefano.babic@swupdate.org>
---
 include/network_ipc.h | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/include/network_ipc.h b/include/network_ipc.h
index e0ef14a3..4d41b7b4 100644
--- a/include/network_ipc.h
+++ b/include/network_ipc.h
@@ -37,7 +37,9 @@  typedef enum {
 	REQ_INSTALL_EXT,
 	SET_VERSIONS_RANGE,
 	NOTIFY_STREAM,
-	GET_HW_REVISION
+	GET_HW_REVISION,
+	SET_SWUPDATE_VARS,
+	GET_SWUPDATE_VARS,
 } msgtype;
 
 /*
@@ -119,6 +121,11 @@  typedef union {
 		char boardname[256];
 		char revision[256];
 	} revisions;
+	struct {
+		char varnamespace[256];
+		char varname[256];
+		char varvalue[256];
+	} vars;
 } msgdata;
 	
 typedef struct {