From patchwork Wed Nov 18 16:22:57 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zoltan Kiss X-Patchwork-Id: 56945 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp2656235lbb; Wed, 18 Nov 2015 08:23:23 -0800 (PST) X-Received: by 10.140.32.200 with SMTP id h66mr2380334qgh.16.1447863802899; Wed, 18 Nov 2015 08:23:22 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id d204si2861602qkb.109.2015.11.18.08.23.22; Wed, 18 Nov 2015 08:23:22 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dkim=neutral (body hash did not verify) header.i=@linaro-org.20150623.gappssmtp.com Received: by lists.linaro.org (Postfix, from userid 109) id 5E3E361D87; Wed, 18 Nov 2015 16:23:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id E120861D3E; Wed, 18 Nov 2015 16:23:17 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 08F7761D82; Wed, 18 Nov 2015 16:23:16 +0000 (UTC) Received: from mail-wm0-f54.google.com (mail-wm0-f54.google.com [74.125.82.54]) by lists.linaro.org (Postfix) with ESMTPS id 41FC461CE3 for ; Wed, 18 Nov 2015 16:23:15 +0000 (UTC) Received: by wmec201 with SMTP id c201so80722445wme.1 for ; Wed, 18 Nov 2015 08:23:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=HZJaAXlLLpCySA9oTEEIitU2CYk+kDBygb7FG6hUjjQ=; b=CvPyi6qZpy4V2J4Ee+ugMyzspHdmJMGR474hIPF+SY0riQBLOzrj34EEbEVEWNDOnO tsCoDXkhRAjz2vfoGSy71EsKwQJ5r1LbCtV/8QrbJ22YgzmkClKp8PIWqAI/VY+L09J/ SzRlOdz6683V6GYeljsN0GAUxDV5lF3K7FvJ7Gh7vJgXrLUpnJVGEdwaMrsXfVJkwaTE LtF7j/2VgwkQ1bZt0RGtXV4Shy+sXoGs9XfNa994uCkvZ+hJEEo7JzBJTY8Md9gUZcpg 8UcRkVeavFfriTDVqdnZ2e6OPUALAxqrec9npnT/t9B2P8OFS4gg1FRM+Cly9NyRuAqr Sjnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=HZJaAXlLLpCySA9oTEEIitU2CYk+kDBygb7FG6hUjjQ=; b=HO8J18aVeb5HtqVyOhKW0odOUHViPoOcYISGcJehLkugectTtl9ET1K1cCt1WBZs/O ktYDEzUzY0Ak14yAc2L7GP/U6EfPEDymYKi7sdKRSXGDdohhVNmg85w1tMd/cBjq09on eAnjmr6X23w/UrOKpzuJ/D/v3pSeEz8NWGlPoF/i+aZfxRvBkdQX1Ku+gZ/5dkdrlUEs yosfTiwIxaXCENBJ3Ht+6mQnfUWVPM5o3qoCtlKqtfIqnPY0OsdC39CjCa6rY/YpWs/k NdUZqBqRq0E/B/V7ZTZGb1w7ncu1MTju4dnkdYj0EoW19pwcLJayYamN75qwWUUfDLs4 0Mjg== X-Gm-Message-State: ALoCoQmQ3pd2D3fFUh1tpJsXbpyv36FBN2w1X3bF8VTLVmm211wG1U6EdyiIB5olHjvhkpo4iIL6 X-Received: by 10.28.222.138 with SMTP id v132mr5254330wmg.23.1447863794416; Wed, 18 Nov 2015 08:23:14 -0800 (PST) Received: from localhost.localdomain ([90.152.119.35]) by smtp.googlemail.com with ESMTPSA id gl4sm3602188wjd.17.2015.11.18.08.23.13 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 18 Nov 2015 08:23:13 -0800 (PST) From: Zoltan Kiss To: lng-odp@lists.linaro.org Date: Wed, 18 Nov 2015 16:22:57 +0000 Message-Id: <1447863777-16401-1-git-send-email-zoltan.kiss@linaro.org> X-Mailer: git-send-email 1.9.1 X-Topics: patch Cc: petri.savolainen@nokia.com Subject: [lng-odp] [API-NEXT PATCH] api: init: allow implementation to use private ways for its own configuration X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" This could help the existing configuration methods to be used if the application prefers that. The platform_params should always supersede that though. Signed-off-by: Zoltan Kiss diff --git a/include/odp/api/init.h b/include/odp/api/init.h index 737ff6d..24f4f3a 100644 --- a/include/odp/api/init.h +++ b/include/odp/api/init.h @@ -141,6 +141,9 @@ typedef struct odp_platform_init_t { * * This function must be called once before calling any other ODP API * functions. + * The underlying implementation may have another way to get configuration + * related to platform_params (e.g. environmental variable, configuration + * file), but if the application passes it, it should always supersede. * * @param params Those parameters that are interpreted by the ODP API. * Use NULL to set all parameters to their defaults.