From patchwork Fri Jun 5 17:51:26 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zoltan Kiss X-Patchwork-Id: 49587 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f71.google.com (mail-la0-f71.google.com [209.85.215.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E0D222154F for ; Fri, 5 Jun 2015 17:54:49 +0000 (UTC) Received: by laboh3 with SMTP id oh3sf21542278lab.0 for ; Fri, 05 Jun 2015 10:54:48 -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=EpPqQZa9MI7WeDSogtm7PnZx+98yK+OyqxzRmNYe9wM=; b=mbRcipeCCDrMZOzSBN7j+8/mkb98CelWGpFdR7ILzPxi7wKGJLIWQ8ftgND4Zz9MQb FsWRXsWcJAXDMhGCvcS8EGHSoUFXBKRN9RwdZvo799Yk/Cxiytw1hnohY5GNZEtP/Xl4 EUHiPEUa2UQion0hJAH4gZOEC2JKqwj9fD0XtHDPehP3u3cp5xRSviQLF/zT6ftaTakW b53IJwXap1Fx39fDThRmxCITgn3GG/T2OuUgpehlf6iVUzgcOR4PdhVD6xzBK1ThmQoL P4mNPNbwHjP0NNVZmPJXdTE/QpupQuPQF9xa2hlxSeQs4FkQYLxyB7/rN5bbJ1uCZIUq TDhw== X-Gm-Message-State: ALoCoQmCA+Hc7iIUNmFRZG8Vv4g7tTWiJzMaOhegegbOnWeQE6P4N+kVavDmj0YsxJAnDSxxsQJX X-Received: by 10.152.87.140 with SMTP id ay12mr4162568lab.1.1433526888657; Fri, 05 Jun 2015 10:54:48 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.120.227 with SMTP id lf3ls397263lab.93.gmail; Fri, 05 Jun 2015 10:54:48 -0700 (PDT) X-Received: by 10.152.30.4 with SMTP id o4mr4321780lah.74.1433526888498; Fri, 05 Jun 2015 10:54:48 -0700 (PDT) Received: from mail-la0-f50.google.com (mail-la0-f50.google.com. [209.85.215.50]) by mx.google.com with ESMTPS id lf11si5374546lac.125.2015.06.05.10.54.48 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 05 Jun 2015 10:54:48 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.50 as permitted sender) client-ip=209.85.215.50; Received: by laew7 with SMTP id w7so59483765lae.1 for ; Fri, 05 Jun 2015 10:54:48 -0700 (PDT) X-Received: by 10.112.131.98 with SMTP id ol2mr4578341lbb.56.1433526888382; Fri, 05 Jun 2015 10:54:48 -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 hn6csp45019lbb; Fri, 5 Jun 2015 10:54:46 -0700 (PDT) X-Received: by 10.140.235.147 with SMTP id g141mr5545132qhc.35.1433526885541; Fri, 05 Jun 2015 10:54:45 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 11si8114150qkr.34.2015.06.05.10.54.27; Fri, 05 Jun 2015 10:54:45 -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 B847462127; Fri, 5 Jun 2015 17:54:27 +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 1A0496213E; Fri, 5 Jun 2015 17:52:25 +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 7129062137; Fri, 5 Jun 2015 17:52:18 +0000 (UTC) Received: from mail-wi0-f171.google.com (mail-wi0-f171.google.com [209.85.212.171]) by lists.linaro.org (Postfix) with ESMTPS id 59F7C62125 for ; Fri, 5 Jun 2015 17:51:53 +0000 (UTC) Received: by wiga1 with SMTP id a1so28409223wig.0 for ; Fri, 05 Jun 2015 10:51:52 -0700 (PDT) X-Received: by 10.180.206.45 with SMTP id ll13mr64059368wic.94.1433526712517; Fri, 05 Jun 2015 10:51:52 -0700 (PDT) Received: from localhost.localdomain ([90.152.119.35]) by mx.google.com with ESMTPSA id bg4sm11582752wjc.10.2015.06.05.10.51.51 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 05 Jun 2015 10:51:51 -0700 (PDT) From: Zoltan Kiss To: lng-odp@lists.linaro.org Date: Fri, 5 Jun 2015 18:51:26 +0100 Message-Id: <1433526691-20058-5-git-send-email-zoltan.kiss@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1433526691-20058-1-git-send-email-zoltan.kiss@linaro.org> References: <1433526691-20058-1-git-send-email-zoltan.kiss@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCH v3 4/9] api: event: define odp_event_free() 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: zoltan.kiss@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.50 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 We need a convenient function which calls the right type-depending free() function. Signed-off-by: Zoltan Kiss --- include/odp/api/event.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/odp/api/event.h b/include/odp/api/event.h index 63b476f..7ec5e76 100644 --- a/include/odp/api/event.h +++ b/include/odp/api/event.h @@ -78,6 +78,16 @@ int odp_event_type(odp_event_t event); uint64_t odp_event_to_u64(odp_event_t hdl); /** + * Call the free function of the event's type + * + * @param event Event handle + * + * @note This routine aborts if event type is unsupported + * + */ +void odp_event_free(odp_event_t event); + +/** * @} */