Message ID | 20231016165740.1374614-3-stefano.babic@swupdate.org |
---|---|
State | Changes Requested |
Delegated to: | Stefano Babic |
Headers | show
Return-Path: <swupdate+bncBAABBCWXWWUQMGQEGFGQ6DA@googlegroups.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20230601 header.b=N+zDFjuV; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::438; helo=mail-wr1-x438.google.com; envelope-from=swupdate+bncbaabbcwxwwuqmgqegfgq6da@googlegroups.com; receiver=patchwork.ozlabs.org) Received: from mail-wr1-x438.google.com (mail-wr1-x438.google.com [IPv6:2a00:1450:4864:20::438]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4S8Nb41Vd4z26jQ for <incoming@patchwork.ozlabs.org>; Tue, 17 Oct 2023 03:57:51 +1100 (AEDT) Received: by mail-wr1-x438.google.com with SMTP id ffacd0b85a97d-30932d15a30sf2811897f8f.1 for <incoming@patchwork.ozlabs.org>; Mon, 16 Oct 2023 09:57:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1697475466; cv=pass; d=google.com; s=arc-20160816; b=zHDLMprlZBbQvtG7rGAzZJg8Ql3sYbRIDZx265NveopqJghKDyh8nmvFHPQVD7HnF5 KtfHeo6P9hZ5AeP1JacPSJuqnEMdglboQOcDSvswJo0OruKb7KBXpYuC7tRlimLYDF7K JuwCgXFuk3Dr6+5gue+ioMoG2mYO0IQjyCHbq3YCD0EVIYSHQetKyKZEyC2SRblydNga 14UQlPfLvX02TCvIdK1YAlHE4KxQM3+jmRZviMNuVgfhRlnFGO9PjG2rYC2zkDwXq+dJ mj7+ITv+W5ulW8ty6uGOGdAVHvU7FMdvanNhdJXePd/6loelG4cgDKOosDR1Udxonq73 Y3iw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:ui-outboundreport:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from:sender :dkim-signature; bh=5EnjULk7DgPb8QwF+czZD27cNUqDIfYGcaei4ulgcdY=; fh=TiEWcqMcKpHk5s7uErzpntoONrNfOXwKpI5P8bIlggk=; b=iS+UilDJdIv+X2JNDprXqS91HspscRWrB8M5BDhWp3IkxZxp/Q4zam9z3uKSlIK3f6 pC/Z65Y+dEuZs2flJbE/BtWhku03x7aCCu7+IYs8Zd0fUE4YNPZdEMF1xKErhZeYCeIR WGHqZAtR/MBFC5wURT01CSq7JcvQ2wQMcO2nFgozWDHSA+kByec41E6+50QAUAIstoqI 2/XuvnTrC+9F3UIse1veNwn5xp+OwoNYrb1bsdMO1O9whOn32+gl2JIrnsAhKKcoxK0H odWtvAHYKZhvsbQNg0qfgUF2AXbzzZ2tSG9ZXReJgv1tkbJDHZR+QT5lR0I/2RnZPWQk 4p1Q== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of stefano.babic@swupdate.org designates 212.227.17.13 as permitted sender) smtp.mailfrom=stefano.babic@swupdate.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1697475466; x=1698080266; darn=patchwork.ozlabs.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:ui-outboundreport:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:sender:from:to:cc :subject:date:message-id:reply-to; bh=5EnjULk7DgPb8QwF+czZD27cNUqDIfYGcaei4ulgcdY=; b=N+zDFjuVo7WvUOzTv1K5MtUf8nm8fJ2TJwhPhrzr+TsYlvjNkx02VBKAbVGQCqTJgI BxxUhu2VM/o+3LJI2Y4r5/LO29PHvFCpVMeHqg1ES9i6prjEPu9UC6ErgYZ8TxZe0wtZ JpnI/8ibhiMnfPVhbodHSck1Pc4M/B7JNgRfDQwTthqbkmIIiT3AP29+0zm2qPzmN07D JIweAvLYIWY8XBw56kZoV2mgkNctZT9nFaQ5wniBeaCayD1qfk1ec3T0TPxJT6GLl9B2 xr701qM4KSpibbzdAXCC5LAd2gT47ld/BBoaLLB7axE+nswQufrpxdY09DzMiQw6kUc1 8H8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697475466; x=1698080266; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender :ui-outboundreport:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:x-beenthere:x-gm-message-state:sender:from :to:cc:subject:date:message-id:reply-to; bh=5EnjULk7DgPb8QwF+czZD27cNUqDIfYGcaei4ulgcdY=; b=fLTwtLMEiKFr7phzYkv4mMxgPcteflnDyxLQDekhXlm50XyFlx7/zeVAT2I2svdVI5 N3pUz7a4GeybSGM1LjTrHdp0DX8hZttkYPBrBISPo22dSNDN/mMLM3yA9xA1oDnxheXm RZSZBC9BdjsUKogMyUuVnWbBjzdA1kRF5TB++fln16s9bWs2YTH6td4JNd7jf4kj3GQo gipNPFeXOClz7Mf80K8IiX4xT6A8lBsjuV2lEdlHg9/5kksnpCB/Uy/5FkvrdSXiktp0 sOjdJOzVgxExbW721zn7o/FL3dEJKS7CREHCsSoJetLPrBS3s4zYcPT5q7AaKCl6EuWT AOqA== Sender: swupdate@googlegroups.com X-Gm-Message-State: AOJu0YzY9zsbO7WOFmYknRJ3Q7kg2WvT/qg1Tc+KsmRXHWwSwVu0QN3G xCft/a670IpnK6lIweOeA8o= X-Google-Smtp-Source: AGHT+IF+pCE7hhdUYjbxXdxp4Hfw8QCpbcTNVmQ1Wv2r+6Ei9QgPZafzKt+zHO+dhPu840aDEuxpRw== X-Received: by 2002:adf:e703:0:b0:32d:8220:8991 with SMTP id c3-20020adfe703000000b0032d82208991mr32769wrm.8.1697475466558; Mon, 16 Oct 2023 09:57:46 -0700 (PDT) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a05:6000:2c1:b0:313:f555:72ba with SMTP id o1-20020a05600002c100b00313f55572bals1138451wry.1.-pod-prod-07-eu; Mon, 16 Oct 2023 09:57:44 -0700 (PDT) X-Received: by 2002:adf:fa47:0:b0:319:67ac:4191 with SMTP id y7-20020adffa47000000b0031967ac4191mr196wrr.37.1697475464502; Mon, 16 Oct 2023 09:57:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697475463; cv=none; d=google.com; s=arc-20160816; b=NI4CVjmLAb/DGo+bpQ8p4CUWoBsC3LXR0UuoYJ2XyX9MdaS9/MCXVrXy8FrmA3AndX FUYBH6tUCMqf/tpnMunfpN+GlNtrb0BMF8Oa236Gm5QK7MZ71v5yAlO4VkQk+UecDzGs M0RU15jRc4qusK3gGlPRB1B+9UYOrIZfeoH7YrBrFHv3uFyTcPYmoj1t6wqykSlkJ+Fv k2uIS1kcVqAoXyEZViVs99Fkc8kwYQU2fyDdi9zKubUN5aAbiPYdlXhE3Rc6HB4D9is4 xjqMJtZy1ZM4yGOnGI7AkWXsT6ws2RmQ8LGcAcLvnuvz/7lK0dM7dZ3ZdwNYTBpPtWI5 /kTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=ui-outboundreport:content-transfer-encoding:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from; bh=KVihscVSQwx+e7bXIjoECK7teIS4UyRxaB46QHN6KC0=; fh=TiEWcqMcKpHk5s7uErzpntoONrNfOXwKpI5P8bIlggk=; b=ch8A+lw2PYE3Q2AYocHDJHOx/KnSx3UHbCkCChbHn7LjYHnzOtUgKHI2iQKN74xvvD dfWCqaCJSDAaQhZoVGbXxMVSKuUfbo2uoCgXRWmE07+6qsIc8imZ3bbEtKsSO0QoZK6y rxFsGwo1vflb8TiKuU825QNXw9/YkD8HiS8rBZmGgGVP+wSoIOtY5D1Mm4bxMriU2KSn 1HwA24iPAkmc6I9C+d0i9VbfQgTx6izToPgoRtNTHnA1QJRNQi9KQHyIjV+4ZgZZSyuB Q4zysA8jry86HNuIF+iSIsziFv1MSJ7PKZsU0/hlVddmy5HZ1M87Em/NW3gAPWAkgV0d SMcw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of stefano.babic@swupdate.org designates 212.227.17.13 as permitted sender) smtp.mailfrom=stefano.babic@swupdate.org Received: from mout.kundenserver.de (mout.kundenserver.de. [212.227.17.13]) by gmr-mx.google.com with ESMTPS id bh10-20020a05600c3d0a00b004047722bcc7si369844wmb.1.2023.10.16.09.57.43 for <swupdate@googlegroups.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 09:57:43 -0700 (PDT) Received-SPF: pass (google.com: domain of stefano.babic@swupdate.org designates 212.227.17.13 as permitted sender) client-ip=212.227.17.13; Received: from paperino.fritz.box ([88.217.136.221]) by mrelayeu.kundenserver.de (mreue109 [213.165.67.113]) with ESMTPSA (Nemesis) id 1MZCSt-1r5GqM1yAT-00V9dP; Mon, 16 Oct 2023 18:57:43 +0200 From: Stefano Babic <stefano.babic@swupdate.org> To: swupdate@googlegroups.com Cc: Stefano Babic <stefano.babic@swupdate.org> Subject: [swupdate] [PATCH 03/12] IPC: add SET_SWUPDATE_VARS and GET_SWUPDATE_VARS Date: Mon, 16 Oct 2023 18:57:31 +0200 Message-Id: <20231016165740.1374614-3-stefano.babic@swupdate.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231016165740.1374614-1-stefano.babic@swupdate.org> References: <20231016165740.1374614-1-stefano.babic@swupdate.org> MIME-Version: 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6FSqHZ8hWkungAFwHOZtz0ig/V4cSTN7 R92aGabQ3yAOLhbIVbqNphggECfss2d8Q5hvVLsVFieJGF1NqbjpaCxi9ofvFY548gP3yeOHj ZRjPNFjBFumrWow== X-Original-Sender: stefano.babic@swupdate.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of stefano.babic@swupdate.org designates 212.227.17.13 as permitted sender) smtp.mailfrom=stefano.babic@swupdate.org Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: <swupdate.googlegroups.com> X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: <https://groups.google.com/group/swupdate/post>, <mailto:swupdate@googlegroups.com> List-Help: <https://groups.google.com/support/>, <mailto:swupdate+help@googlegroups.com> List-Archive: <https://groups.google.com/group/swupdate List-Subscribe: <https://groups.google.com/group/swupdate/subscribe>, <mailto:swupdate+subscribe@googlegroups.com> List-Unsubscribe: <mailto:googlegroups-manage+605343134186+unsubscribe@googlegroups.com>, <https://groups.google.com/group/swupdate/subscribe> |
Series |
[01/12] Cleanup: use #pragma once in all headers
|
expand
|
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 {
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(-)