From patchwork Thu Feb 5 14:18:45 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taras Kondratiuk X-Patchwork-Id: 44456 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f71.google.com (mail-wg0-f71.google.com [74.125.82.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7479721521 for ; Thu, 5 Feb 2015 14:19:17 +0000 (UTC) Received: by mail-wg0-f71.google.com with SMTP id y19sf5570209wgg.2 for ; Thu, 05 Feb 2015 06:19:16 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:cc: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=rpws6TvoqC746trMfoCDVwm25QRmbxM9fvFntQi6TSA=; b=Y7EWa7DxJpi85N3gzzQhA+9M2B62+IULbU0Cc8cbeXWFDTw8v6AmL2vaG3aAQuUxZ8 75xK+CgqWF9L+Any7KSEEV8LoA68tyDDklaOZNSUpBHQPGYFFWNdYIPypgkmkcj/XeTr thz4PCJE2S25fMKHrA24B21ZnY6koMBWsMxGw9mk/ggar3D13fuPCpctYHosPinVKsqW CeX0bX2vCweyKYYPlynateuoOIrWciTsRiNcxq2GLEcy/hxLpPvb5//hws7/jFOMB0B/ 5daRQHJoJJFhgtLRXeIXxxhL9Oc2Le9A9iuFC4V5JFIqRCRXLYCXEl37bRHsH1RRR2Xi SgHw== X-Gm-Message-State: ALoCoQnyzlV/p+50gsatqHPUIDVsfdepQrgRxa+vtax6onUIzc2/76Yr25GEYfhxhc/6+EMwlxS3 X-Received: by 10.112.148.198 with SMTP id tu6mr516394lbb.3.1423145956645; Thu, 05 Feb 2015 06:19:16 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.42.205 with SMTP id q13ls159639lal.54.gmail; Thu, 05 Feb 2015 06:19:16 -0800 (PST) X-Received: by 10.152.8.1 with SMTP id n1mr3582441laa.47.1423145956299; Thu, 05 Feb 2015 06:19:16 -0800 (PST) Received: from mail-lb0-f176.google.com (mail-lb0-f176.google.com. [209.85.217.176]) by mx.google.com with ESMTPS id m6si4096203laf.0.2015.02.05.06.19.16 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Feb 2015 06:19:16 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) client-ip=209.85.217.176; Received: by mail-lb0-f176.google.com with SMTP id w7so3250240lbi.7 for ; Thu, 05 Feb 2015 06:19:16 -0800 (PST) X-Received: by 10.112.54.167 with SMTP id k7mr3756511lbp.72.1423145956026; Thu, 05 Feb 2015 06:19:16 -0800 (PST) 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.35.133 with SMTP id h5csp1169581lbj; Thu, 5 Feb 2015 06:19:15 -0800 (PST) X-Received: by 10.236.32.209 with SMTP id o57mr1526251yha.76.1423145954761; Thu, 05 Feb 2015 06:19:14 -0800 (PST) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id t65si6233616qgt.49.2015.02.05.06.19.10 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 05 Feb 2015 06:19:14 -0800 (PST) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-35-177-41.ec2.internal) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YJNGu-00042G-Fm; Thu, 05 Feb 2015 14:19:08 +0000 Received: from mail-lb0-f181.google.com ([209.85.217.181]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YJNGo-00042B-HG for lng-odp@lists.linaro.org; Thu, 05 Feb 2015 14:19:02 +0000 Received: by mail-lb0-f181.google.com with SMTP id u14so1174328lbd.12 for ; Thu, 05 Feb 2015 06:18:56 -0800 (PST) X-Received: by 10.152.43.228 with SMTP id z4mr251868lal.111.1423145936595; Thu, 05 Feb 2015 06:18:56 -0800 (PST) Received: from condor-x220.synapse.com ([80.77.38.170]) by mx.google.com with ESMTPSA id r3sm985024lar.35.2015.02.05.06.18.55 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 05 Feb 2015 06:18:55 -0800 (PST) From: Taras Kondratiuk To: lng-odp@lists.linaro.org Date: Thu, 5 Feb 2015 16:18:45 +0200 Message-Id: <1423145925-32630-1-git-send-email-taras.kondratiuk@linaro.org> X-Mailer: git-send-email 1.9.1 X-Topics: patch Cc: petri.savolainen@nsn.com Subject: [lng-odp] [PATCH] api: pool: move buffer allocation to buffer.h X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 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-bounces@lists.linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: taras.kondratiuk@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.217.176 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: Taras Kondratiuk --- include/odp/api/buffer.h | 19 +++++++++++++++++++ include/odp/api/pool.h | 19 ------------------- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/include/odp/api/buffer.h b/include/odp/api/buffer.h index 09bddf2..4bbac1e 100644 --- a/include/odp/api/buffer.h +++ b/include/odp/api/buffer.h @@ -105,6 +105,25 @@ int odp_buffer_is_valid(odp_buffer_t buf); odp_pool_t odp_buffer_pool(odp_buffer_t buf); /** + * Buffer alloc + * + * The validity of a buffer can be cheked at any time with odp_buffer_is_valid() + * @param pool Pool handle + * + * @return Handle of allocated buffer + * @retval ODP_BUFFER_INVALID Buffer could not be allocated + */ +odp_buffer_t odp_buffer_alloc(odp_pool_t pool); + +/** + * Buffer free + * + * @param buf Buffer handle + * + */ +void odp_buffer_free(odp_buffer_t buf); + +/** * Print buffer metadata to STDOUT * * @param buf Buffer handle diff --git a/include/odp/api/pool.h b/include/odp/api/pool.h index 14d18fb..b0b26e4 100644 --- a/include/odp/api/pool.h +++ b/include/odp/api/pool.h @@ -195,25 +195,6 @@ void odp_pool_print(odp_pool_t pool); uint64_t odp_pool_to_u64(odp_pool_t hdl); /** - * Buffer alloc - * - * The validity of a buffer can be cheked at any time with odp_buffer_is_valid() - * @param pool Pool handle - * - * @return Handle of allocated buffer - * @retval ODP_BUFFER_INVALID Buffer could not be allocated - */ -odp_buffer_t odp_buffer_alloc(odp_pool_t pool); - -/** - * Buffer free - * - * @param buf Buffer handle - * - */ -void odp_buffer_free(odp_buffer_t buf); - -/** * @} */