From patchwork Wed Nov 26 17:03:07 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taras Kondratiuk X-Patchwork-Id: 41552 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f70.google.com (mail-ee0-f70.google.com [74.125.83.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C3115203C2 for ; Wed, 26 Nov 2014 17:03:34 +0000 (UTC) Received: by mail-ee0-f70.google.com with SMTP id b57sf2196794eek.9 for ; Wed, 26 Nov 2014 09:03:33 -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: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=fMOlf9/lJCOsBBPvGW47eBh3mSTLoJNCmWElxrzcqaE=; b=O0wcMudX+5wACzS3QhB4DjOiTT8ouM0kEHTNsecCLkcqmsI6mk+dg0bCJJA40/C+1j D3yh0FlRIzhPjS22HLluQLvTFMyDbeCph5KKCrkndj1PuUCCvypEeOCaC0N2ucEfyUZ6 an/QrUThZOBq97OmHSuD9BFCay/FUk10Uf649V3tW0NtgY8PSm5lh3eEGx+clHXmsYEe zCBERIB0Lqzg/E7PRzHPy32NE8n76KB44N9Z+1mar+0d8LWgmdPD02zuKUV7cCwZEO1q sTo7z9vuF0xvFRQb/8C/RokvhqSVAyagvL8GnPoQ+n+oE0SQBDbbrIZWv+JnLInHXChg YfeQ== X-Gm-Message-State: ALoCoQl2y0bStZD8GAJBBnSJydwoiHjapIh/tTgy4pLp8JxjwhP6wcSNn0xHt4k0obs5ArMC9ewX X-Received: by 10.112.201.169 with SMTP id kb9mr280062lbc.20.1417021413882; Wed, 26 Nov 2014 09:03:33 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.88.99 with SMTP id bf3ls747120lab.13.gmail; Wed, 26 Nov 2014 09:03:33 -0800 (PST) X-Received: by 10.152.7.146 with SMTP id j18mr34702553laa.58.1417021413425; Wed, 26 Nov 2014 09:03:33 -0800 (PST) Received: from mail-la0-f53.google.com (mail-la0-f53.google.com. [209.85.215.53]) by mx.google.com with ESMTPS id jo7si4976896lbc.39.2014.11.26.09.03.33 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 26 Nov 2014 09:03:33 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.53 as permitted sender) client-ip=209.85.215.53; Received: by mail-la0-f53.google.com with SMTP id gm9so2791812lab.26 for ; Wed, 26 Nov 2014 09:03:33 -0800 (PST) X-Received: by 10.152.43.103 with SMTP id v7mr11528343lal.29.1417021413311; Wed, 26 Nov 2014 09:03:33 -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.184.201 with SMTP id ew9csp658705lbc; Wed, 26 Nov 2014 09:03:32 -0800 (PST) X-Received: by 10.220.177.138 with SMTP id bi10mr18607401vcb.1.1417021410809; Wed, 26 Nov 2014 09:03:30 -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 n10si1848091vcr.87.2014.11.26.09.03.29 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 26 Nov 2014 09:03:30 -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 1Xtg00-0001qq-4A; Wed, 26 Nov 2014 17:03:28 +0000 Received: from mail-la0-f51.google.com ([209.85.215.51]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1Xtfzt-0001qg-Kf for lng-odp@lists.linaro.org; Wed, 26 Nov 2014 17:03:21 +0000 Received: by mail-la0-f51.google.com with SMTP id ms9so2780102lab.24 for ; Wed, 26 Nov 2014 09:03:16 -0800 (PST) X-Received: by 10.112.201.6 with SMTP id jw6mr35337206lbc.30.1417021395723; Wed, 26 Nov 2014 09:03:15 -0800 (PST) Received: from uglx0153363.synapse.com ([195.238.92.128]) by mx.google.com with ESMTPSA id u2sm1302695laj.1.2014.11.26.09.03.14 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 26 Nov 2014 09:03:15 -0800 (PST) From: Taras Kondratiuk To: lng-odp@lists.linaro.org Date: Wed, 26 Nov 2014 19:03:07 +0200 Message-Id: <1417021388-15432-1-git-send-email-taras.kondratiuk@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Topics: patch Subject: [lng-odp] [PATCH 1/2] api: queue: add odp_queue_destroy() 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.215.53 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 --- platform/linux-generic/include/api/odp_queue.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/platform/linux-generic/include/api/odp_queue.h b/platform/linux-generic/include/api/odp_queue.h index b8ac4bb..3321950 100644 --- a/platform/linux-generic/include/api/odp_queue.h +++ b/platform/linux-generic/include/api/odp_queue.h @@ -124,6 +124,15 @@ odp_queue_t odp_queue_create(const char *name, odp_queue_type_t type, odp_queue_param_t *param); /** + * Destroy ODP queue + * + * @param queue Queue handle + * + * @return 0 if successful + */ +int odp_queue_destroy(odp_queue_t queue); + +/** * Find a queue by name * * @param name Queue name