Message ID | 20231017140657.95860-8-stefano.babic@swupdate.org |
---|---|
State | Accepted |
Delegated to: | Stefano Babic |
Headers | show
Return-Path: <swupdate+bncBAABBBVKXKUQMGQE4R2PGJI@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=JUVEIUJt; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::238; helo=mail-lj1-x238.google.com; envelope-from=swupdate+bncbaabbbvkxkuqmgqe4r2pgji@googlegroups.com; receiver=patchwork.ozlabs.org) Received: from mail-lj1-x238.google.com (mail-lj1-x238.google.com [IPv6:2a00:1450:4864:20::238]) (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 4S8wlc70X2z20Vq for <incoming@patchwork.ozlabs.org>; Wed, 18 Oct 2023 01:07:08 +1100 (AEDT) Received: by mail-lj1-x238.google.com with SMTP id 38308e7fff4ca-2c51d0f97e3sf23542651fa.0 for <incoming@patchwork.ozlabs.org>; Tue, 17 Oct 2023 07:07:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1697551623; cv=pass; d=google.com; s=arc-20160816; b=hidJnols5fVT0Wx00fv2pMN2C1RSEOZVkMB6RlI97mIfwEHiB/S1CtBvDWD0tXB8/j hId2/hB6KhAZ+EQA8L56qa5cvUAxcf5wbivMuvuNLn92qTPW+ptivEnQcHajS/Ov42O3 FUZOFxeolzKDLhlNABjk9t7NkusvouTR39q/mJT7HMOQ0ZdAwgNzmI9nI5oi2LxdU9JG 1N1HSIU9xWSYF1LTOTXvKIU/23b7XnsBq3bBZE9PNelMqSZ06Iz7Q7a8DMcwxH4MbqGQ k4DWHXKQaCluxt7aYA9+fjC8AlUlBREnCuVGvT5/eKK8isW6XVrbB60vIgUE9tyD9goy IW0A== 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=IqARoZMCKW5UFMVQHkNckPh3V7IQ+22jXi0m3Oc71e8=; fh=TiEWcqMcKpHk5s7uErzpntoONrNfOXwKpI5P8bIlggk=; b=ve+yozApl188ZNDVq3RBS0tEqCA0cysQbvfPDf+E1cYTXbAsRwYyNK9PoWIBriK4vG Y7YD/0udtNhOKHcB25jWXCTtXY/UY0GySIMIxSzvdd/ypHu2VXzr3uCOiYR9Pmon7MfL y/fNML3p4mVINkIQnmfRGSWb87bHYeBtdvgX9o7NmMSWtbNsr52DJncbz7/QyiSVXuJB rrezV0dmbdikKCeONSALJRDwl+UO3hI1sbqcDJmx9JcJpmXmbnEgvlFUtsKxElsBChVO gl2ECg6e+c8r/9w8GptYnP8UqmOVt4cR7b/9ZXGbYeZUgXW1x5cj+FOiPMGgbHxvPw6h kEsQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of stefano.babic@swupdate.org designates 212.227.17.24 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=1697551623; x=1698156423; 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=IqARoZMCKW5UFMVQHkNckPh3V7IQ+22jXi0m3Oc71e8=; b=JUVEIUJt93pl7Yc5sAIl4V7am4xMyha4TfXy9JtF9+nJR83JN3TPe1VuIszX7LMaBn eBAtnjHg9NBrSEY/HrLlvfvsdyxwYpuKM8y4+Y18TegtYqv545KgXZNrsp9yC9qVIuQa 2UbmeNizXhS64asB3oDoK5KjRIhwQkin52xWGdM8b6L8j7dQ8cnE7V0YRpXFel1lkmKI 3kYZuE51B5j20VS5ZhYmoNV6Hw2DgIPkKJvD4iuQGUdIfG7tbxbSN0CgivDcgQvMu8En TU54dfjnc+52bFU77OSyDrYCDnVEUJb922RS0Jq99V3AqNF1DZZAb7qQsK2W6eG9bI4d xdNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697551623; x=1698156423; 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=IqARoZMCKW5UFMVQHkNckPh3V7IQ+22jXi0m3Oc71e8=; b=EHih5dV+Ep8H34HKn2lawphWXGWdQSKL4K7Mhu5KRU6MNInhdNXprBHxcGKlR7u1rR eeXmt8dCBKFiQ4tPMBLzT8L9ejcIqDrvREmsAGI1282IvtQirdB0OXTnXPSxPUN245a+ +4EKfnXIpeC7e+s4jmhpvfIjkO2t6t9HXvk2XLDCKtJCak51uERbteZLSS+5WVhEbKlz ERaZ4mqOkV/LbE95zM4yktaSdQdVNiosCHb4zPtFwbACH8FLEj/rpDcYxgHPydnNOvrh kloHKQVAoTCwSL0Og8oDY5OL5aWSFNaPapGkQQbEqVTOD6nZlAia3rrJG/2nWLgAeqUv cnWQ== Sender: swupdate@googlegroups.com X-Gm-Message-State: AOJu0YxSP9MTBETIhUO9yqUvUMk5fWkeFgljdnTt0Uej3nNoxArwcfaL MT62ihWvMMMrKQxz1eUNoa8= X-Google-Smtp-Source: AGHT+IEkGzSHZQh6Tlix+qwEGyh+3tk1NfTNi5ZXnfVyNElMlltYiKYMgy2y1Eg/RRXyC2e/C7SFjQ== X-Received: by 2002:a05:651c:3ca:b0:2c4:fe0a:dc3a with SMTP id f10-20020a05651c03ca00b002c4fe0adc3amr1700028ljp.47.1697551623010; Tue, 17 Oct 2023 07:07:03 -0700 (PDT) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a2e:720a:0:b0:2be:574a:3b1b with SMTP id n10-20020a2e720a000000b002be574a3b1bls1719310ljc.0.-pod-prod-05-eu; Tue, 17 Oct 2023 07:07:01 -0700 (PDT) X-Received: by 2002:a2e:bc1f:0:b0:2c5:2eaa:5397 with SMTP id b31-20020a2ebc1f000000b002c52eaa5397mr2066702ljf.11.1697551621292; Tue, 17 Oct 2023 07:07:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697551621; cv=none; d=google.com; s=arc-20160816; b=DhBSwuA/SGAjushpxkFfSl+ZSq+erra9xIyZpNYmmn3VJURhH/uTL4QiZf1ugKJX17 uB6kqH6yMIRvC3PcYEl+eKrcpnSQe7roiddFfrVad9uN6Si4v9fA8z3qiZ2EyZWVCHlY LnKYg5Yab3mdaQAfNU9dhbZEE4vr1Stj3ATwfcBxMvDnB6C67DKrYTgGN/urxPk85VtY A8mWNgSnx3FfjZztmMf9mABzhVJjCdLP7SFVlPxZ+TRsfdDMSfud4Qq+qYCBgdsgsKzY mvM9d/83BsIRsX5SQixYFt7uKwHhjsBgTbCgcSKnNaDDWO8VA+MbRgmOzj+aVe2P5+m6 tljQ== 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=LVkifU/7rmT3QNTOn6X874yfD8yHmZQeFmj2esgTwiY=; fh=TiEWcqMcKpHk5s7uErzpntoONrNfOXwKpI5P8bIlggk=; b=CQlXN7k6arPQQ3ABILTHX5MHc/DxR5Vsa/Jsxv7hzMqXot1pGohoGfPp3qtZ8scPji rYo3i0nW5Sl6Sw3ug10z15GwBqFw1ZRLR66DK94qWH5i25hxfyh+lvzR5bTaCMRWnTOS gBs76gDtqLPh8qW8j2li/P/c5X0/7PF3l59+/WF85U6eQqur5H30+t4wUK3fu6PVSz3G p7QO9lam7wzc4ga5yfYBIeWGAlObMhjq6wnFQGApp+aGppq5ukV2MjRxZIZFGtiiuLLD m/pfvJQRAZcW7x/AyeiHq5liuy2XIRHJatUzMxsaJyrWg6TRdEYcRnVBM+BJE73tv0ZX A8pQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of stefano.babic@swupdate.org designates 212.227.17.24 as permitted sender) smtp.mailfrom=stefano.babic@swupdate.org Received: from mout.kundenserver.de (mout.kundenserver.de. [212.227.17.24]) by gmr-mx.google.com with ESMTPS id bh25-20020a05600c3d1900b00407c8777ecasi54026wmb.0.2023.10.17.07.07.01 for <swupdate@googlegroups.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 07:07:01 -0700 (PDT) Received-SPF: pass (google.com: domain of stefano.babic@swupdate.org designates 212.227.17.24 as permitted sender) client-ip=212.227.17.24; Received: from paperino.fritz.box ([88.217.136.221]) by mrelayeu.kundenserver.de (mreue108 [213.165.67.113]) with ESMTPSA (Nemesis) id 1MSKly-1qzSqi3NLE-00Sg7b; Tue, 17 Oct 2023 16:07:00 +0200 From: Stefano Babic <stefano.babic@swupdate.org> To: swupdate@googlegroups.com Cc: Stefano Babic <stefano.babic@swupdate.org> Subject: [swupdate] [PATCH V2 07/11] Enum for cause field in progress messages Date: Tue, 17 Oct 2023 16:06:53 +0200 Message-Id: <20231017140657.95860-8-stefano.babic@swupdate.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231017140657.95860-1-stefano.babic@swupdate.org> References: <20231017140657.95860-1-stefano.babic@swupdate.org> MIME-Version: 1.0 X-Provags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hOPG71VWMxVEuPxczdh4x5XOVR4tfulJtnwVI6CWl ihfDl1Py5t0crbhWgA+SN2FNs34GRA49Gc32SjoOC/azTZlJnYrTYWYktG4jsVPnknTKUAfHt 3Xh47G5DHm6fvDg== 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.24 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 |
Handle Hawkbit action_id and on the fly updates
|
expand
|
diff --git a/core/parser.c b/core/parser.c index 50d9957b..28005597 100644 --- a/core/parser.c +++ b/core/parser.c @@ -265,7 +265,7 @@ int parse(struct swupdate_cfg *sw, const char *descfile) if (asprintf(&versioninfo, "{\"VERSION\" : \"%s\"}", sw->version) == ENOMEM_ASPRINTF) ERROR("OOM sending version info"); else { - swupdate_progress_info(RUN, 0, versioninfo); + swupdate_progress_info(RUN, NONE, versioninfo); free(versioninfo); } diff --git a/include/progress_ipc.h b/include/progress_ipc.h index e00a081f..c1ff78b0 100644 --- a/include/progress_ipc.h +++ b/include/progress_ipc.h @@ -16,6 +16,11 @@ extern "C" { #define PRINFOSIZE 2048 + typedef enum progress_cause { + CAUSE_NONE, + CAUSE_REBOOT_MODE, +} progress_cause_t; + extern char* SOCKET_PROGRESS_PATH; /*
The cause field is unused up now and just zeroed. Add an enum to support info of specific type and replace occurencies where zero is forced. The first introduced cause is CAUSE_REBOOT_MODE to infor if the update requires a reboot or it is a on the fly update. Signed-off-by: Stefano Babic <stefano.babic@swupdate.org> --- core/parser.c | 2 +- include/progress_ipc.h | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-)