From patchwork Wed Jul 1 01:39:17 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 50496 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f70.google.com (mail-la0-f70.google.com [209.85.215.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7D300229DF for ; Wed, 1 Jul 2015 01:41:57 +0000 (UTC) Received: by lagh6 with SMTP id h6sf8449363lag.0 for ; Tue, 30 Jun 2015 18:41:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:date :message-id:in-reply-to:references:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :mime-version:content-type:content-transfer-encoding:errors-to :sender:x-original-sender:x-original-authentication-results :mailing-list; bh=vGQuUj/1J8hs7E6QSBs8A3pSpczHSMkVg9mN/vmPy70=; b=bZXGkW+G04dLp8rxXuVXsEXKBmebbWKE0lcDl7bXMtuKkmm8LJUgZ3cabJ/gYCfKkE ZQaKoVy64HHJubfKaFk1YfwOrbZDDFNHUOk+ZNMzKGF1/FcWEcfV5QCRyl4G6SL+R53Y R9usSNjS8H1y90PDvBpSngrsCzs5Hmn/0X+veRtxJ4V/6O5CKalqpENhV+L+C9z1uF36 HjWRVIC5G30Sot+YczVZGP7nga1amUiCxpqUF82xXabDux6DxdyPC9mCuIvIlFmPbb/7 tVSeYQsFsM9ZaOcp0S1aRlLl3WlvKEY/ENhNGXs56DS7nCxHZYWH7KxJNmHWmBrIsKig aOjQ== X-Gm-Message-State: ALoCoQmpR6lds/Vn9E5E//LVfST3JKjkL4J6lv1UICfw2twTLzWA+0onq6ZyGCd6oIPZMxWUQ3JA X-Received: by 10.180.216.12 with SMTP id om12mr416968wic.1.1435714916916; Tue, 30 Jun 2015 18:41:56 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.5.67 with SMTP id q3ls107846laq.78.gmail; Tue, 30 Jun 2015 18:41:56 -0700 (PDT) X-Received: by 10.152.179.139 with SMTP id dg11mr8149688lac.46.1435714916227; Tue, 30 Jun 2015 18:41:56 -0700 (PDT) Received: from mail-la0-f46.google.com (mail-la0-f46.google.com. [209.85.215.46]) by mx.google.com with ESMTPS id h4si230900lbm.158.2015.06.30.18.41.56 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 Jun 2015 18:41:56 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.46 as permitted sender) client-ip=209.85.215.46; Received: by lagx9 with SMTP id x9so31142438lag.1 for ; Tue, 30 Jun 2015 18:41:56 -0700 (PDT) X-Received: by 10.112.42.50 with SMTP id k18mr20702365lbl.76.1435714916103; Tue, 30 Jun 2015 18:41:56 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.108.230 with SMTP id hn6csp270298lbb; Tue, 30 Jun 2015 18:41:55 -0700 (PDT) X-Received: by 10.140.148.144 with SMTP id 138mr30959069qhu.60.1435714914811; Tue, 30 Jun 2015 18:41:54 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id n99si446653qkh.3.2015.06.30.18.41.54; Tue, 30 Jun 2015 18:41:54 -0700 (PDT) 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; Received: by lists.linaro.org (Postfix, from userid 109) id 92B4561E34; Wed, 1 Jul 2015 01:41:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from ip-10-142-244-252.ec2.internal (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 14AF261F2B; Wed, 1 Jul 2015 01:39:50 +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 4013461EB1; Wed, 1 Jul 2015 01:39:36 +0000 (UTC) Received: from mail-oi0-f49.google.com (mail-oi0-f49.google.com [209.85.218.49]) by lists.linaro.org (Postfix) with ESMTPS id 3F27A61D5A for ; Wed, 1 Jul 2015 01:39:35 +0000 (UTC) Received: by oiyy130 with SMTP id y130so21421210oiy.0 for ; Tue, 30 Jun 2015 18:39:35 -0700 (PDT) X-Received: by 10.182.79.197 with SMTP id l5mr1648230obx.59.1435714775264; Tue, 30 Jun 2015 18:39:35 -0700 (PDT) Received: from localhost.localdomain (cpe-24-28-70-239.austin.res.rr.com. [24.28.70.239]) by mx.google.com with ESMTPSA id p184sm226149oig.10.2015.06.30.18.39.34 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 30 Jun 2015 18:39:34 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Tue, 30 Jun 2015 20:39:17 -0500 Message-Id: <1435714761-23951-6-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1435714761-23951-1-git-send-email-bill.fischofer@linaro.org> References: <1435714761-23951-1-git-send-email-bill.fischofer@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCHv2 06/10] api: pool: use odp_pool_type_t X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: 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" X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: bill.fischofer@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.46 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Signed-off-by: Bill Fischofer --- include/odp/api/pool.h | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/include/odp/api/pool.h b/include/odp/api/pool.h index ed6971b..6a7291b 100644 --- a/include/odp/api/pool.h +++ b/include/odp/api/pool.h @@ -37,6 +37,10 @@ extern "C" { * Invalid pool */ +/** + * @typedef odp_pool_type_t + */ + /** Maximum queue name length in chars */ #define ODP_POOL_NAME_LEN 32 @@ -46,7 +50,7 @@ extern "C" { */ typedef struct odp_pool_param_t { /** Pool type */ - int type; + odp_pool_type_t type; union { struct { @@ -90,13 +94,6 @@ typedef struct odp_pool_param_t { }; } odp_pool_param_t; -/** Packet pool*/ -#define ODP_POOL_PACKET ODP_EVENT_PACKET -/** Buffer pool */ -#define ODP_POOL_BUFFER ODP_EVENT_BUFFER -/** Timeout pool */ -#define ODP_POOL_TIMEOUT ODP_EVENT_TIMEOUT - /** * Create a pool *