From patchwork Wed Jan 3 12:34:56 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Storm, Christian" X-Patchwork-Id: 855022 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4010:c07::23e; helo=mail-lf0-x23e.google.com; envelope-from=swupdate+bncbdd6bwv65qpbbme5wpjakgqeh5262hq@googlegroups.com; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.b="Q2eyqQ5D"; dkim-atps=neutral Received: from mail-lf0-x23e.google.com (mail-lf0-x23e.google.com [IPv6:2a00:1450:4010:c07::23e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zBVpD2WYBz9s7s for ; Wed, 3 Jan 2018 23:38:11 +1100 (AEDT) Received: by mail-lf0-x23e.google.com with SMTP id 64sf255005lfx.16 for ; Wed, 03 Jan 2018 04:38:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1514983088; cv=pass; d=google.com; s=arc-20160816; b=oC9Nc6utHJiGnT/MRWZmnzWnYlCp3au61Dv560u8eRfpDhGWhYubZ3GhRyGoxvbDpr gIVtciP5zYmsSMWA+xvcpMaCBjULWDx55qTZDkM45SJgTbd/4AiyMrpU3Ef0pESeU71i RdxGvaUgJwS0Uy7X3s1Xr2233RWML3GuN+Hzhtx9ZqoE4BDId4OZl0yfe6eo8TCu8hXX BliVy2zNqDCOR/2y63+abU998+lxO1w/sdCX8qevLKl8Bcjjx6RPYOLZP2y3ccQiedMA UJvLcadXMs9TbwJxu0ZCNbeY9eOAfjC2V/B8G4VbenF4DtKjdH0ft8A+5RBpEyaoEvjd 5uRg== 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:references:in-reply-to:message-id :date:subject:cc:to:from:arc-authentication-results :arc-message-signature:mime-version:sender:dkim-signature :arc-authentication-results; bh=1kOyQjFBkWR2AVaEJmLGfwJv9B7v6hjSWByAIooylKg=; b=LChFj4p08oCv4kelD6uR6Rq4gJRaIxebSQZ/6mKMLxhfZiJfVE999octrhF3pf9YYn hzAxPoF4Pv5skt0q+CQsJKOWR0uWdA/Gno8TKup59+uC1dQ0afNiSpy+UC9DvLNS4fGi dyQENZBYBiKDZur9u3GxxD8v7vi1qWd0JYM9MfmMeTOA2jbdy7F2Xh4GcD5IpHgOgsjz KIQ/tLDS+PABNyDlTQKujJnU1KmpexoZXJDh/JliA2UnpTy2YkHeF+qwMpjGk292HdJN LIGa43GTQlgZUx9bjkcyZFccwj0qpliitEgBx6b+6QpkWQLTrUUQB9cWDqWIcbaxOFaR G8Xg== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of christian.storm@siemens.com designates 192.35.17.14 as permitted sender) smtp.mailfrom=christian.storm@siemens.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:mime-version:from:to:cc:subject:date:message-id:in-reply-to :references:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=1kOyQjFBkWR2AVaEJmLGfwJv9B7v6hjSWByAIooylKg=; b=Q2eyqQ5DWkYBsHOSlSPQcJoZVotFc/vfYiV3yM2mv6GdBZjsJ/DFzjsU9tB5/mcaBI R2p+ckESMjWIGydR2nc/VGHJssbs9YWYXD2PFd1z8pPakVMJRRPGCZHDyn0iJ00YPKJr 6XDjRktJ43weTeC9n8+RguLku2O9lQfO1k9ddV4uXMr2UG2oFfCS2KDSJeSgsPvQRsdX +Q1ot1WplXonGHH8s+Bvc48mO8Bh3M8yrBoJQ2+eATIOc72e8m0hFU4C6yzhrjq6ECEg pdyLoztppR77HLgeonpGgVocd88zzMnn++Ha/rFuq5OcKSRsbg2VELSgKbFM9up/H7UT yCTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:mime-version:from:to:cc:subject:date :message-id:in-reply-to:references: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=1kOyQjFBkWR2AVaEJmLGfwJv9B7v6hjSWByAIooylKg=; b=U99JAQa6ZLFgJg2ne1Qn1PFRAyuRtddQ9SC5Ekzjeg2anPIQv8VRkZ4gySnXanfqKh 9fB4ez0aQXlbkRv/CUKWb4zWml6I/Pg6wZnDV4rR1VAP3gVLQEajT51mK5YtLj0LYXmv BvPJQo+LeMWXWwiOHJN34cj1911lIQIwVYx1SLV1VtZjQ3DXiAZpN7PF9nFO+5LpRruW sqITmwehstwpHSEDEw1ANzQhCxz7moynm+V8yB3VBe4zvNHE1u2maXdCSjuRYPfliWIJ LuylRGRsvgqhL+jcAErKBWrTuTYJfe0pCJbBTtBJDy+GSrTLFeROLhjYji980bWHTeIG 0R5w== Sender: swupdate@googlegroups.com X-Gm-Message-State: AKGB3mIhQK0nSVJoxWbKrJADaDyeY3g3+MdTQBawdAyEU+uc5Lv/T4xC XYoBH9ctz6QeS/hlGZ/lvJ4= X-Google-Smtp-Source: ACJfBosWAvfPEYMG27WFfpU9JExLVMAsEiSL59E3Iqp8OfdoHqs/p8hWN1ku9qdxSIHxQGJt+Ksfpw== X-Received: by 10.25.140.82 with SMTP id i18mr3447lfj.0.1514983088290; Wed, 03 Jan 2018 04:38:08 -0800 (PST) MIME-Version: 1.0 X-BeenThere: swupdate@googlegroups.com Received: by 10.46.67.136 with SMTP id z8ls3738468lje.2.gmail; Wed, 03 Jan 2018 04:38:07 -0800 (PST) X-Received: by 10.46.99.204 with SMTP id s73mr110601lje.11.1514983087756; Wed, 03 Jan 2018 04:38:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1514983087; cv=none; d=google.com; s=arc-20160816; b=DcAD8dAeGYv14Xw5H1fJtGGxvsAFb++WynRVNa4rmVZx4ftUYdIRglT8uXkRmdqh/2 SQAOM+WV5G1ZofY66PfjpquSxL7RVfniUgZG5uP/gdYS3Lg/AHJ2Jm9+JvdbXK/azsIA 3RMQGodJHEHhTivfl9rPnmMWsMdRMaoZ+H286l9BFycBHISop2jRz+5RceS74iSW1AJf /1W2LShGhH70mCJa5xNXvxHWdmcdYtxA4B3B8UC4TWvog1mQh6y8Yj6l48e0Zft6XhRc m6Cqp16wt4dpsr997KI6lZPax2WnZpUeOh63PyK7SSOfDxThrqcHnxVvVERcvXxeJtw2 juGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=dGqS3G9eTY6Rxmc/B1EnjtWT6+v3wRjbN6tQ3IJWNec=; b=foRkfhArZgGuuUav2U3Ha7Db2lSqMwXjNGE7QvEL2cKLPwd0AeCqnX40vpxEzNHTIp i+oVLKn4zuBRq+CLMNkL1m8XQAiIq7eDsfMgQCota92phINwl36VFuv6LT0DFEQNz+gR PJinSw+bh0zot+B9KD18G2Rlzm54LgnEphPbaHN1MjL3lBXUlNh4oBT2B7alIbVrft6W /eMEIqrWU1XIDae/kKpmn0aGLjj2Rk4WBypfTjo3s4EilemXQqK1LI2nH5t+bm2P6I0Y KqQHW7sXRMdBXu1AUH/nqco4WMndfdtPrTcb55uD0CVTFEw+fQv+lpWDm04Q9QyuVkf4 2Urw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of christian.storm@siemens.com designates 192.35.17.14 as permitted sender) smtp.mailfrom=christian.storm@siemens.com Received: from david.siemens.de (david.siemens.de. [192.35.17.14]) by gmr-mx.google.com with ESMTPS id n75si111486ljb.0.2018.01.03.04.38.07 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 Jan 2018 04:38:07 -0800 (PST) Received-SPF: pass (google.com: domain of christian.storm@siemens.com designates 192.35.17.14 as permitted sender) client-ip=192.35.17.14; Received: from mail3.siemens.de (mail3.siemens.de [139.25.208.14]) by david.siemens.de (8.15.2/8.15.2) with ESMTPS id w03Cc6xX015588 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 3 Jan 2018 13:38:07 +0100 Received: from MD1KR9XC.ww002.siemens.net ([139.25.69.251]) by mail3.siemens.de (8.15.2/8.15.2) with ESMTP id w03Cc6Jr007564; Wed, 3 Jan 2018 13:38:06 +0100 From: Christian Storm To: swupdate@googlegroups.com Cc: Christian Storm Subject: [swupdate] [PATCH v2 3/3] suricatta: add channel_curl prototypes to hawkbit test Date: Wed, 3 Jan 2018 13:34:56 +0100 Message-Id: <20180103123456.9238-3-christian.storm@siemens.com> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180103123456.9238-1-christian.storm@siemens.com> References: <20180103123456.9238-1-christian.storm@siemens.com> X-Original-Sender: christian.storm@siemens.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of christian.storm@siemens.com designates 192.35.17.14 as permitted sender) smtp.mailfrom=christian.storm@siemens.com Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , As they're required by the hawkbit server test, add the curl channel's prototypes to the test itself. Signed-off-by: Christian Storm --- suricatta/test/test_server_hawkbit.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/suricatta/test/test_server_hawkbit.c b/suricatta/test/test_server_hawkbit.c index 86e2dc5..fcb81ac 100644 --- a/suricatta/test/test_server_hawkbit.c +++ b/suricatta/test/test_server_hawkbit.c @@ -35,6 +35,14 @@ #define JSON_OBJECT_FREED 1 #define JSONQUOTE(...) #__VA_ARGS__ +/* Keep in sync with corelib/channel_curl.c's prototypes for public functions. */ +extern channel_op_res_t channel_close(channel_t *this); +extern channel_op_res_t channel_open(channel_t *this, void *cfg); +extern channel_op_res_t channel_put(channel_t *this, void *data); +extern channel_op_res_t channel_get_file(channel_t *this, void *data, int file_handle); +extern channel_op_res_t channel_get(channel_t *this, void *data); +extern channel_op_res_t channel_curl_init(void); + extern json_object *json_get_key(json_object *json_root, const char *key); extern int __real_ipc_wait_for_complete(getstatus callback);