From patchwork Wed Jul 1 17:06:14 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zoltan Kiss X-Patchwork-Id: 50533 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 47AB5214B3 for ; Wed, 1 Jul 2015 17:09:05 +0000 (UTC) Received: by lagx9 with SMTP id x9sf13737208lag.2 for ; Wed, 01 Jul 2015 10:09:04 -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: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=ReJBQf/48fLI3ic9vgIHrtcMRAynd8hysu4TrSeG6yM=; b=cO7havjvTyolT6xgmrsSCM/EJJP8EEVgeIhaPIoWA+/jr2wKxz/IDqxMyjyhUc8gMA xvkm62hevqVHptDWnz/zfKZSAr3ywrOGSLEpa0twUdP2chHUUvKlxZbMBfilEDyD2ayS VllwZAzKYS9ODEQy27vUHPuwJBYzOECiyEMwLmBhMZxFJXRVx2G+6VK+0FX7g9/sKe+o Xbt4CVb+7bAcHTkJAm1WE2gPcnDUNc/70SqlKVNftvYI7yjh53NS7ECKdEOcLOtWWRFr 7nHaqfHcHNUgLOrmL9UZI4Vmdg4W8jI8iUOlHMez12ke42YtScDXK7er7XW+mxy4+hbd AE+A== X-Gm-Message-State: ALoCoQkqcGexKOXf7TTFufa1BwtUZo11/0QRjBPEMhJpl8mswRpcWPqOG1adUNg3AZOyvptv4tyd X-Received: by 10.112.28.111 with SMTP id a15mr17620060lbh.21.1435770544268; Wed, 01 Jul 2015 10:09:04 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.43.36 with SMTP id t4ls232290lal.99.gmail; Wed, 01 Jul 2015 10:09:04 -0700 (PDT) X-Received: by 10.152.170.234 with SMTP id ap10mr22845485lac.28.1435770543989; Wed, 01 Jul 2015 10:09:03 -0700 (PDT) Received: from mail-lb0-f172.google.com (mail-lb0-f172.google.com. [209.85.217.172]) by mx.google.com with ESMTPS id e3si2207477laa.104.2015.07.01.10.09.03 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Jul 2015 10:09:03 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.172 as permitted sender) client-ip=209.85.217.172; Received: by lbcpe5 with SMTP id pe5so16873303lbc.2 for ; Wed, 01 Jul 2015 10:09:03 -0700 (PDT) X-Received: by 10.112.220.7 with SMTP id ps7mr2874729lbc.72.1435770543515; Wed, 01 Jul 2015 10:09:03 -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 hn6csp743207lbb; Wed, 1 Jul 2015 10:09:02 -0700 (PDT) X-Received: by 10.55.15.99 with SMTP id z96mr56865809qkg.75.1435770542252; Wed, 01 Jul 2015 10:09:02 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id b193si2985284qka.39.2015.07.01.10.08.59; Wed, 01 Jul 2015 10:09:02 -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 B4AC061F47; Wed, 1 Jul 2015 17:08:59 +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 2AF8261F71; Wed, 1 Jul 2015 17:07:07 +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 243DE61F49; Wed, 1 Jul 2015 17:07:02 +0000 (UTC) Received: from mail-wg0-f49.google.com (mail-wg0-f49.google.com [74.125.82.49]) by lists.linaro.org (Postfix) with ESMTPS id 002BF61F41 for ; Wed, 1 Jul 2015 17:06:40 +0000 (UTC) Received: by wgjx7 with SMTP id x7so42247422wgj.2 for ; Wed, 01 Jul 2015 10:06:39 -0700 (PDT) X-Received: by 10.180.182.33 with SMTP id eb1mr8192606wic.8.1435770399115; Wed, 01 Jul 2015 10:06:39 -0700 (PDT) Received: from localhost.localdomain ([90.152.119.35]) by mx.google.com with ESMTPSA id fi6sm4335895wib.6.2015.07.01.10.06.37 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 01 Jul 2015 10:06:38 -0700 (PDT) From: Zoltan Kiss To: lng-odp@lists.linaro.org Date: Wed, 1 Jul 2015 18:06:14 +0100 Message-Id: <1435770379-30000-5-git-send-email-zoltan.kiss@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1435770379-30000-1-git-send-email-zoltan.kiss@linaro.org> References: <1435770379-30000-1-git-send-email-zoltan.kiss@linaro.org> X-Topics: patch Cc: Petri Savolainen Subject: [lng-odp] [API-NEXT PATCH v4 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.217.172 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 --- v4: incorporate Petri's suggestions into formatting include/odp/api/event.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/include/odp/api/event.h b/include/odp/api/event.h index 63b476f..cefad12 100644 --- a/include/odp/api/event.h +++ b/include/odp/api/event.h @@ -78,6 +78,17 @@ int odp_event_type(odp_event_t event); uint64_t odp_event_to_u64(odp_event_t hdl); /** + * Free event + * + * Frees the event based on its type. Results are undefined if event + * type is unknown. + * + * @param event Event handle + * + */ +void odp_event_free(odp_event_t event); + +/** * @} */