Message ID | 20211121103834.922620-13-sbabic@denx.de |
---|---|
State | Accepted |
Headers | show
Return-Path: <swupdate+bncBCXPLOXJ6IKRBSGD5CGAMGQEGOUT5DY@googlegroups.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20210112 header.b=m7BO/hW7; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::340; helo=mail-wm1-x340.google.com; envelope-from=swupdate+bncbcxploxj6ikrbsgd5cgamgqegout5dy@googlegroups.com; receiver=<UNKNOWN>) Received: from mail-wm1-x340.google.com (mail-wm1-x340.google.com [IPv6:2a00:1450:4864:20::340]) (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 bilbo.ozlabs.org (Postfix) with ESMTPS id 4Hxn2M3MD9z9sf8 for <incoming@patchwork.ozlabs.org>; Sun, 21 Nov 2021 21:39:07 +1100 (AEDT) Received: by mail-wm1-x340.google.com with SMTP id 187-20020a1c02c4000000b003335872db8dsf5251679wmc.2 for <incoming@patchwork.ozlabs.org>; Sun, 21 Nov 2021 02:39:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1637491144; cv=pass; d=google.com; s=arc-20160816; b=jkHYMGWpTJrKRVZgO4RxlFEFShFIaog3dAnV2Goix/cDSaTCWjdvvBOL7mykF+FLI1 hnFz5/B8i/q3EWuU/mRKyiKVMniD2DqwzEh6sinwa/Np68xBwn89N6Y3D63CddwRwA1m 2GZfxw6WMIqhH7TWLKvhEEn/bYRBZTpaJyeaj+LB23BGzYUXB9XOOPgUPB3w0yjjUkFQ p+T8HHypJXDOPoRPalLBZivcqjKPsDueJq7PzJGkxEAKlMtcyh8HTVA7GoahyNvMTkBy GUodyxeU3coM+JOzjg7CXevmZv11V1VIjQGYxKajtjl549/P3nLiieI1yBfTpgqQ5ICz BTXg== 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:references:in-reply-to :message-id:date:subject:cc:to:from:sender:dkim-signature; bh=LkhGrf4QNni2XeiP3My/410ds+EVD3behbNErxdVOVY=; b=H2a0KAHWYlgt15GjTMy9mFM7lXt+yMAv9urET0D2ASXrAjJLzf9H4gqQyuYXHkD4cR FrpmynQkm0ftz3J/4ab6Ik8szkm22qCBYNtbr9vHMIIaWh0/ZGsZPv6TGPNMpVtQdBPZ YPVL0kETHKv5AVVINML8ZUF5o9KdVQ4d4eoE/s23YfAjpYuS0S7W5j25podsafaSTV+Q e4/SzyM3lyEAFZREepph6qVsLkV8EAfCyarMZtPwWH+jCIJk62i6MviOl3gPlSbc9EMD GRI6u6G7f67arc7++mEtg1q+Q+YREZA6P5ua9RRkKbeOeuCv+SDk3nCCe5ZutQNZ+mml 3gKg== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=neutral (google.com: 212.18.0.9 is neither permitted nor denied by domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :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=LkhGrf4QNni2XeiP3My/410ds+EVD3behbNErxdVOVY=; b=m7BO/hW727gwJNv8opIAUNuHj1+x5TB4mvoy6TuH81ak5cVO094iQrzPWAVAiCxBH5 9fD9YT4i2pVlGY5K6/s67nuF4lohXJChs6b+2qGns+IS3KolxYneTSlUozOLmk8lmsjb 8ewIBOLNXyAMweCuf8GfOG+Xu5CKd2/yfrN2pq4vXcDlUD0TIqtah1Gg5Bnjf8gRrYov aNIiZSoWqZaqMfXQQwI18TIXXp5vYE8R+/PC9KT/0+tL1YDvmcpuxdMYDZPwvs8XhGrh PgaL3NWOPGXE0gTUJf4gg4D6tgCt7PawAccXN51aRAZh6BGt8INiXpyda4CdD3AyMH5q E4NQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:from:to:cc:subject:date:message-id :in-reply-to:references: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=LkhGrf4QNni2XeiP3My/410ds+EVD3behbNErxdVOVY=; b=CnYMAmhoiltASXvTyVeGCgqmQLUDiEY4qRsLdUIq6F/KOjoaI28WjhVPyzgdrUKGOn tOob6qUzYPBg3tFNachrzGskLPsFUjQo4OXs0zCRJdm8l7OtUU7aYP/iA28uhSgW+A8b PkHX3W6cQzTM/awQwq4k/1vSdXF3l/Pl702fMerUsZD5pqiaxmsNiISPtzcMO7LMOlGR iCQJ0GS6Igp0PCgZHlsJieQa3iN0Y0G67UXNm+CPc4zijlmYo7AIqb38Lt+4XKFPHZCb 4WCnt4Hb1VTmbrewPpiZy3/7fVj70HUcvXes3aBHH+Hk9GXjK+0KBTlt8azKigvmTKOZ of3w== Sender: swupdate@googlegroups.com X-Gm-Message-State: AOAM531Nn2N2gDeUoJAffIZoBa/SPiU+obAZaLki8gHw2C6wVuyKKqwZ xRaGSWuyNn0ipuj9hRLtrTs= X-Google-Smtp-Source: ABdhPJyFrm4cZ3NVF585hBeWgg09rpBVsIQ7UwdDuXBykHubTi1i9tRfobYak7+KkPr+h7B8vLbVkA== X-Received: by 2002:a5d:4b45:: with SMTP id w5mr25737418wrs.272.1637491144443; Sun, 21 Nov 2021 02:39:04 -0800 (PST) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a05:600c:ad6:: with SMTP id c22ls9533228wmr.1.canary-gmail; Sun, 21 Nov 2021 02:39:03 -0800 (PST) X-Received: by 2002:a1c:8:: with SMTP id 8mr18898941wma.106.1637491143644; Sun, 21 Nov 2021 02:39:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1637491143; cv=none; d=google.com; s=arc-20160816; b=U5q01U2fezvNrlQrMB6rAh8cf+P8dHMQwe+2yxMShkIn4owjy4WvRGoOjwYneDCB/c ZtGnlxAKHfcdK91U9S7wrKbjCjowPLBQsSesiXpRZ2f1EndRB7JvXz0bvum2QYzIZ/bR ZbJSjkiRyKhigh+jgibEYcu/HXNdeUfpymm9S2qf4SDdxv/ORJvFKEJfFxScb7SlmuTr ctPKl6/pjBT4yi7sRmxPdn9kRgGHtORpe3NmNSyi+LEdQSG4bgQ6cJEzxSzI6vM75bFg CUrlyZFNZZUdXyPM3eU38UzJt4+4NpH5v2FwHyu7WBfHoQ69EUJr3kwYqEeaTolK758L NAgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=/ysHlb1iJ7tuVkZfSjxGgsxHT0yJAQced5rg1LXG0Ks=; b=OL5seMwB5R5/vGqgUmuTTMRiiCFfx/afsOUwq+hvAep6Bh+mJAjInvYlRRCMUEad1x CAehLtlQ5UbMb+r0q8ZL6dOa4K/pq8VgJXedJsXIvFIegRgnJ1Tpw33xsQDxdf2FX1AZ b64Gam0zGgTQSGfhkv6g2X3/U20omL1CdWz8oh81rOyIei3zvPE5gJk8RJWcAX1xpKZn p6AnttK2BLfSxifllJLlWf1z8RRhgvEYvPIrsBef/tFkXzz1nNB0Q5A7zG4DMo0TAkRG /PD73HNil/oK/VI0yT+cDifTL4uJxdK90EDUiq0A2dvUDSex92bPtWCdiD8wRugO2XlD ShpQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=neutral (google.com: 212.18.0.9 is neither permitted nor denied by 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.9]) by gmr-mx.google.com with ESMTPS id z64si620280wmc.0.2021.11.21.02.39.03 for <swupdate@googlegroups.com> (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 21 Nov 2021 02:39:03 -0800 (PST) Received-SPF: neutral (google.com: 212.18.0.9 is neither permitted nor denied by domain of sbabic@denx.de) client-ip=212.18.0.9; Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4Hxn2H3VSjz1qxHT; Sun, 21 Nov 2021 11:39:03 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4Hxn2H3Jvsz1qqkB; Sun, 21 Nov 2021 11:39:03 +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 RU2mktZRt8xp; Sun, 21 Nov 2021 11:39:02 +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; Sun, 21 Nov 2021 11:39:02 +0100 (CET) Received: from localhost (mail.babic.homelinux.org [127.0.0.1]) by babic.homelinux.org (Postfix) with ESMTP id 6C9784540CFF; Sun, 21 Nov 2021 11:39:02 +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 k3_xaYy4pyNZ; Sun, 21 Nov 2021 11:38:58 +0100 (CET) Received: from paperino.fritz.box (paperino.fritz.box [192.168.178.48]) by babic.homelinux.org (Postfix) with ESMTP id 2F3C54542881; Sun, 21 Nov 2021 11:38:39 +0100 (CET) From: Stefano Babic <sbabic@denx.de> To: swupdate@googlegroups.com Cc: Stefano Babic <sbabic@denx.de> Subject: [swupdate] [PATCH V3 12/37] channel_curl: statify entry points functions Date: Sun, 21 Nov 2021 11:38:09 +0100 Message-Id: <20211121103834.922620-13-sbabic@denx.de> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211121103834.922620-1-sbabic@denx.de> References: <20211121103834.922620-1-sbabic@denx.de> 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.9 is neither permitted nor denied by 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 |
DELTA Update
|
expand
|
diff --git a/corelib/channel_curl.c b/corelib/channel_curl.c index f64ca93..06a030f 100644 --- a/corelib/channel_curl.c +++ b/corelib/channel_curl.c @@ -75,12 +75,12 @@ char *channel_get_redirect_url(channel_t *this); static void channel_log_effective_url(channel_t *this); /* Prototypes for "public" functions */ +static channel_op_res_t channel_close(channel_t *this); +static channel_op_res_t channel_open(channel_t *this, void *cfg); +static channel_op_res_t channel_get(channel_t *this, void *data); +static channel_op_res_t channel_get_file(channel_t *this, void *data); +static channel_op_res_t channel_put(channel_t *this, void *data); channel_op_res_t channel_curl_init(void); -channel_op_res_t channel_close(channel_t *this); -channel_op_res_t channel_open(channel_t *this, void *cfg); -channel_op_res_t channel_get(channel_t *this, void *data); -channel_op_res_t channel_get_file(channel_t *this, void *data); -channel_op_res_t channel_put(channel_t *this, void *data); channel_t *channel_new(void);
Functions are defined as part of a generic channel and initialized via a channel_new() call. Scope can be set inside the module and not global. Signed-off-by: Stefano Babic <sbabic@denx.de> --- corelib/channel_curl.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)