From patchwork Fri Jun 5 11:53:46 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zoltan Kiss X-Patchwork-Id: 49565 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f72.google.com (mail-wg0-f72.google.com [74.125.82.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id EBC582154F for ; Fri, 5 Jun 2015 11:56:42 +0000 (UTC) Received: by wgv5 with SMTP id 5sf16819070wgv.0 for ; Fri, 05 Jun 2015 04:56:42 -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=WD4uBFGXyIKYs+LxBF9XMJ02qF7e1rjXLTi1b+HwLjaV6yqh+cm/IRCR5knhCWB6CY OuryXMxbPEYCwWyR1c0VAz6PtJhoNwFb65BrQkL6n5a0WuE7+IvKB9zIHnsC5zKWGFn4 ljOnjASLq6DgHtZMuyy97rM5hl7l3UK/+RBYC3Rqt/cOL/vr367HKLRqs8fc4RxXR35a QOdUHMzZ34KWifXhBVy7GRrisA4vt2nnT7OtW6cNro2x++Cl5TwuK94QNd6R0cGiycmG 7c0jVhQV5e/ck7/hKHdX8gVRlFbw5sYoiaua+810gW/veQDozU4Ujs/fd7GTK2YG7nZx cgSg== X-Gm-Message-State: ALoCoQlbhugfMAtb55gR+iAZoiT9BJZEthPIm0Nkc3rRl5WEAygA+DAKTLyTfTeYj4VYWOXuMivw X-Received: by 10.112.203.168 with SMTP id kr8mr2950323lbc.10.1433505402126; Fri, 05 Jun 2015 04:56:42 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.37.40 with SMTP id v8ls328885laj.88.gmail; Fri, 05 Jun 2015 04:56:42 -0700 (PDT) X-Received: by 10.152.206.75 with SMTP id lm11mr2920465lac.41.1433505401971; Fri, 05 Jun 2015 04:56:41 -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 rd3si4607211lac.167.2015.06.05.04.56.41 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 05 Jun 2015 04:56:41 -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 labpy14 with SMTP id py14so52548376lab.0 for ; Fri, 05 Jun 2015 04:56:41 -0700 (PDT) X-Received: by 10.112.140.231 with SMTP id rj7mr3023168lbb.76.1433505401846; Fri, 05 Jun 2015 04:56:41 -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 hn6csp1369177lbb; Fri, 5 Jun 2015 04:56:40 -0700 (PDT) X-Received: by 10.140.218.198 with SMTP id o189mr3562812qhb.47.1433505400194; Fri, 05 Jun 2015 04:56:40 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id f83si7255951qki.63.2015.06.05.04.56.39; Fri, 05 Jun 2015 04:56:40 -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 3444062055; Fri, 5 Jun 2015 11:56:39 +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 7135862060; Fri, 5 Jun 2015 11:54:47 +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 8730C62057; Fri, 5 Jun 2015 11:54:41 +0000 (UTC) Received: from mail-wg0-f44.google.com (mail-wg0-f44.google.com [74.125.82.44]) by lists.linaro.org (Postfix) with ESMTPS id 9F16961F79 for ; Fri, 5 Jun 2015 11:54:17 +0000 (UTC) Received: by wgme6 with SMTP id e6so54894662wgm.2 for ; Fri, 05 Jun 2015 04:54:16 -0700 (PDT) X-Received: by 10.194.9.104 with SMTP id y8mr6003795wja.86.1433505256917; Fri, 05 Jun 2015 04:54:16 -0700 (PDT) Received: from localhost.localdomain ([90.152.119.35]) by mx.google.com with ESMTPSA id b20sm10268741wjb.46.2015.06.05.04.54.15 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 05 Jun 2015 04:54:16 -0700 (PDT) From: Zoltan Kiss To: lng-odp@lists.linaro.org Date: Fri, 5 Jun 2015 12:53:46 +0100 Message-Id: <1433505231-28843-5-git-send-email-zoltan.kiss@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1433505231-28843-1-git-send-email-zoltan.kiss@linaro.org> References: <1433505231-28843-1-git-send-email-zoltan.kiss@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCH v2 4/9] 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); + +/** * @} */