Message ID | 20201117094035.2153271-1-sbabic@denx.de |
---|---|
State | Accepted |
Headers | show
Return-Path: <swupdate+bncBCXPLOXJ6IKRBGNVZ36QKGQEDC73JKA@googlegroups.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::53f; helo=mail-ed1-x53f.google.com; envelope-from=swupdate+bncbcxploxj6ikrbgnvz36qkgqedc73jka@googlegroups.com; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20161025 header.b=Hlg+kiDT; dkim-atps=neutral Received: from mail-ed1-x53f.google.com (mail-ed1-x53f.google.com [IPv6:2a00:1450:4864:20::53f]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Cb1CS6MKXz9sRK for <incoming@patchwork.ozlabs.org>; Tue, 17 Nov 2020 20:40:49 +1100 (AEDT) Received: by mail-ed1-x53f.google.com with SMTP id l12sf9387487edw.11 for <incoming@patchwork.ozlabs.org>; Tue, 17 Nov 2020 01:40:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1605606042; cv=pass; d=google.com; s=arc-20160816; b=mv9A9pH0uplzNsJd36ZLJKLkI3QQ+cRFpOzoBFSdeKIk3xBq7GNCIHeJ/1koYn0VZR G+6v+mhKLxaxbnWqc3Pa9oE7HyrmKDV2rSpKwxiJg8x8uoig+4Xpan9dmnxnR+6J+l/j ibTJOus6XQHkOMjKrWkXm5d9E42RrRLmHoHP1gszmSEZOj4wIoEEHs7ryFsg7M7wwCbW l9R+A0d7/T6vF+6BR5U1kGiPFXd9Ok3TZDdYOX6GtZ3EEya8Cjp7MfOF28clIhagTlAc HGyD1Kg0YTtqXirr0HBmBQfBwfnJput1AvvTUfx4CIT6gxgHi96lidblCA7uTrw42Gzu YqOQ== 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:mime-version:message-id:date :subject:cc:to:from:sender:dkim-signature; bh=xUy0O0/tJGJztA0g9UM/IMAjxnor3/1n45b6UlY6oaw=; b=keno1pORfpXzd0wb0UeMIr85sd4KCabyJ6cmOKLRuE0kijBN7yzM9Z7QkrRauE8IMz HWGjBz9BYp2MX3WO8Wyrzx0XDC3x8zhMMlsst5dmYIaZYn9uhxI44Tz0qp29mFmOknip S2QDIdKK+/tza6WOeUX3fi0MCD10lDSzufv61lxDOObxdClwTX7EadBZ9FeQ2xyPMk6r J/Yu7o4dSb8G4ZGpzrwXay2tZUaBaXgr7wH4iZJfi8RyXvheppqL5y/nPz7ZdzN/wJq1 945t9RVp6o7MQY8Ironf1e6XT1mVls98LwQp19VOUwPMaQYwDhV3beog82RIXsxKdkS/ G3dg== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=neutral (google.com: 212.18.0.10 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=xUy0O0/tJGJztA0g9UM/IMAjxnor3/1n45b6UlY6oaw=; b=Hlg+kiDTnm45eC2EHX6qINEQz9l8BfjGGrwl+5w3t0SHnt2uXvlPCanAJUwAErqJVC MBIfWHHk9TougGtNiZ2lgfcVeS1wiRTWhTwpgOZzveGxTbCZp0Lpl2gpH0/J9U76gulH y8c14Difa/tZlGYgkozAiLtBeLbAuGe2OdMDVj7pkV3WaWq7ibyyDpDNb17fcdvC6qIm kRlwmtwelpZ5YpwrcHo/UPF2475T/gtV8o+Ye4BqPnW13RNv2TozFu/JXUm/xGiOdzfF v1sSwq6aw7L+PtBvkEbKpUIWulb1UijpBMICfGechr9FdG1G3sPf5omq0JIp2uE1gnuy TqYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:cc:subject:date:message-id :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=xUy0O0/tJGJztA0g9UM/IMAjxnor3/1n45b6UlY6oaw=; b=kIQT4APuPRyGUnHss72kpFRiHOQZpE2bmrMoiKNocnBPsoszsOFPhAtiwVvT97/ttJ wVnZMEqJaLPXEprioHdHZ4ZvZWAkaGcrrm1SmZBpLZHzFctnqIqYLH0s3/R6GZZZMbQ1 jE8+T2B3nOMhclyimGuyXZ/XuTws6ciN9+PFngpPKuHHYU/kfQ2mkeUAkyMDFEKa9FqY w9ZeqVCGv1pp8zVtJw7BLYheIpXp2sao1jz7jKHI7px00r1v6looDbB43Kr3mjIscDxA PPLH3f7zKXGrzWT0qAsyvCp06sCO4xoHzMUmxMqEfQeNavZ7vV6zjjR1kgUWt6bCLbMI alng== Sender: swupdate@googlegroups.com X-Gm-Message-State: AOAM532ZZEqlSI8nususEYPZvVH/yA04e5mRyfP7zLM0qEHLantErFey GsNxWLBmDqF+nRKpUgldPCU= X-Google-Smtp-Source: ABdhPJzhrtPOQeHScoqyNw4/klkE+tiq3kz2ApfcJ76MHn6931v6hBBo7YglSw4S5oMyunZv9CZh1A== X-Received: by 2002:a17:906:c407:: with SMTP id u7mr16578044ejz.261.1605606042593; Tue, 17 Nov 2020 01:40:42 -0800 (PST) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a17:906:b088:: with SMTP id x8ls2564296ejy.6.gmail; Tue, 17 Nov 2020 01:40:41 -0800 (PST) X-Received: by 2002:a17:906:860b:: with SMTP id o11mr11820801ejx.252.1605606041102; Tue, 17 Nov 2020 01:40:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605606041; cv=none; d=google.com; s=arc-20160816; b=XFklsNHF2th36tEAGyqDCRTg2O8I/X6EAFhc/Llw7d/aoKil4DT//Hh7jEtkyviQoH ZfZ8p5wHTIXcWej0pPSSJfRb7vDYz3eQK8/aWqI/V62xw+HtUNy/1hm6dbxfBHfE7vmw o83WSRJbhpb2G8n5/TFvJA5kV4YNGGwow9IY0qRt6pzuJzKv4MuztoC5vK5POQoM2noM PELX8oW3Ow59TbNvdiZM7mxId4XivHgIBbEMe9x2SJXqUZTVE5jtwVoioWHb3kibr6P0 hCNy33z1/jCjajcjx5tg0gYS8/tCXzdSESyJO2/+RoA3K25AKVXw4Tqju+2xeLcldn+3 3dmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from; bh=Be0qEbDjqLvKPmKZG8wzM5GeiAZVonL0/CI/cDfqLX4=; b=fjUsaiVVpOit5NAdz3NZwFJAKvI/Wz6mHF03B5Eu8NNSViOwCK+UKgvEUT9A/cLxBB xjtqa/Le+ns5FxZBc59kLA/XhhUFvYvf4sXklwVf1EfyAWyYkoLG60QumP5joHpATOXY uTEfs8CROEsS7idx2UI1TDBsNV4iytYFrSL8vo/akfVSWZ5SfHq06SdWXvwLn6ObSyxF cU/RP6AdQj9Xc8FgrXxO0LwUEIXbroD8inF7gAq1TbcqasNvyYLnzIxYA0SL0MeHafKH GweBTJGaC50tnGfrPaJwId5nKCvIovrwsslOaZzqu/Y33KQTZQ4YelvvDe5F1Eiikhc8 hAyQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=neutral (google.com: 212.18.0.10 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de Received: from mail-out.m-online.net (mail-out.m-online.net. [212.18.0.10]) by gmr-mx.google.com with ESMTPS id v7si1054583edj.5.2020.11.17.01.40.41 for <swupdate@googlegroups.com> (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Nov 2020 01:40:41 -0800 (PST) Received-SPF: neutral (google.com: 212.18.0.10 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) client-ip=212.18.0.10; Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4Cb1CD6BBHz1s1JH; Tue, 17 Nov 2020 10:40:40 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4Cb1CD5zNVz1rYFK; Tue, 17 Nov 2020 10:40:40 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id tSx_0QmV7xLG; Tue, 17 Nov 2020 10:40:39 +0100 (CET) Received: from babic.homelinux.org (host-88-217-136-221.customer.m-online.net [88.217.136.221]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS; Tue, 17 Nov 2020 10:40:39 +0100 (CET) Received: from localhost (mail.babic.homelinux.org [127.0.0.1]) by babic.homelinux.org (Postfix) with ESMTP id 7C77F454042F; Tue, 17 Nov 2020 10:40:39 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at babic.homelinux.org Received: from babic.homelinux.org ([127.0.0.1]) by localhost (mail.babic.homelinux.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vY_uw4DAVXFF; Tue, 17 Nov 2020 10:40:36 +0100 (CET) Received: from paperino.fritz.box (paperino.fritz.box [192.168.178.64]) by babic.homelinux.org (Postfix) with ESMTP id A23C44540191; Tue, 17 Nov 2020 10:40:36 +0100 (CET) From: Stefano Babic <sbabic@denx.de> To: swupdate@googlegroups.com Cc: Stefano Babic <sbabic@denx.de> Subject: [swupdate] [PATCH] Lua: export missing PROGRESS status Date: Tue, 17 Nov 2020 10:40:35 +0100 Message-Id: <20201117094035.2153271-1-sbabic@denx.de> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Original-Sender: sbabic@denx.de X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 212.18.0.10 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de 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 |
Lua: export missing PROGRESS status
|
expand
|
diff --git a/corelib/lua_interface.c b/corelib/lua_interface.c index a0d9297..a19e9ef 100644 --- a/corelib/lua_interface.c +++ b/corelib/lua_interface.c @@ -927,6 +927,7 @@ static int luaopen_swupdate(lua_State *L) lua_push_enum(L, "DOWNLOAD", DOWNLOAD); lua_push_enum(L, "DONE", DONE); lua_push_enum(L, "SUBPROCESS", SUBPROCESS); + lua_push_enum(L, "PROGRESS", SUBPROCESS); lua_settable(L, -3); #ifdef CONFIG_HANDLER_IN_LUA
This was added but not yet exported to Lua. Fixing this, it is possible to send a message to the progress interface from Lua code like: swupdate.notify(RECOVERY_STATUS.PROGRESS, ...) Signed-off-by: Stefano Babic <sbabic@denx.de> --- corelib/lua_interface.c | 1 + 1 file changed, 1 insertion(+)