From patchwork Tue Feb 3 04:44:45 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 44188 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 B72652034D for ; Tue, 3 Feb 2015 04:45:46 +0000 (UTC) Received: by mail-la0-f71.google.com with SMTP id s18sf18858382lam.2 for ; Mon, 02 Feb 2015 20:45:45 -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: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=1sAZz0lGwXTwmPQ8kUTAQbuRfos5TqC4PRrkHeihXcQ=; b=aWv8Gy7a3YWrjR/oIMWSYx9c/bljrSZouVX1QLigBnuW0ohefo5OQAtN7t8fqe9dXM ++m0dFGM8773Lom25fvAlQP9kXW8dFlZdRhur2FPSmOPvUW1NELcqVCkXJBOsCrI+Dns TVyNfb8KWWwF1vtx2VUjWoyCWeXqEARgSKdWf2zO25EWlwJ82ze1idmbeY4SmNfGJ1Y2 FpI8wacHfZl+GtRP7JgPApJfux0PU04fXo9sFsfk3OzMj7Jn+R7ULSUQFxvHmfbqIJvo 64+2fviD1H9P/UMfxyd9geV4MnCIyiEvf9sQdIdRXEOqPnrs2srDoXw3H3QqFsVJ+f7p X/Lg== X-Gm-Message-State: ALoCoQmX5Y7zqZeuwcdojPco3OfEwHDeElaYl+MNw8A2TOW9m5aZhUQP95kp9nsf29CoTVSbDG+7 X-Received: by 10.112.174.36 with SMTP id bp4mr2732688lbc.15.1422938745716; Mon, 02 Feb 2015 20:45:45 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.28.71 with SMTP id z7ls696642lag.92.gmail; Mon, 02 Feb 2015 20:45:45 -0800 (PST) X-Received: by 10.152.9.41 with SMTP id w9mr22252822laa.17.1422938745191; Mon, 02 Feb 2015 20:45:45 -0800 (PST) Received: from mail-la0-f50.google.com (mail-la0-f50.google.com. [209.85.215.50]) by mx.google.com with ESMTPS id jj3si5232745lbc.96.2015.02.02.20.45.44 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 02 Feb 2015 20:45:44 -0800 (PST) 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 mail-la0-f50.google.com with SMTP id hs14so47801725lab.9 for ; Mon, 02 Feb 2015 20:45:44 -0800 (PST) X-Received: by 10.112.144.164 with SMTP id sn4mr17419814lbb.2.1422938744413; Mon, 02 Feb 2015 20:45:44 -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 h5csp1712289lbj; Mon, 2 Feb 2015 20:45:43 -0800 (PST) X-Received: by 10.140.21.229 with SMTP id 92mr46760264qgl.33.1422938743264; Mon, 02 Feb 2015 20:45:43 -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 m18si14212625qax.110.2015.02.02.20.45.42 (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 02 Feb 2015 20:45:43 -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 1YIVMq-00062M-LI; Tue, 03 Feb 2015 04:45:40 +0000 Received: from mail-oi0-f50.google.com ([209.85.218.50]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YIVMX-0005zM-LF for lng-odp@lists.linaro.org; Tue, 03 Feb 2015 04:45:21 +0000 Received: by mail-oi0-f50.google.com with SMTP id h136so47712307oig.9 for ; Mon, 02 Feb 2015 20:45:16 -0800 (PST) X-Received: by 10.182.210.138 with SMTP id mu10mr13930623obc.31.1422938716406; Mon, 02 Feb 2015 20:45:16 -0800 (PST) Received: from localhost.localdomain (cpe-24-28-70-239.austin.res.rr.com. [24.28.70.239]) by mx.google.com with ESMTPSA id vs5sm10277537oeb.14.2015.02.02.20.45.15 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 02 Feb 2015 20:45:15 -0800 (PST) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Mon, 2 Feb 2015 22:44:45 -0600 Message-Id: <1422938699-12877-6-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1422938699-12877-1-git-send-email-bill.fischofer@linaro.org> References: <1422938699-12877-1-git-send-email-bill.fischofer@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv5 05/19] api: packets: add strong typing handle display function 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: bill.fischofer@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 Add function odp_packet_to_u64() Signed-off-by: Bill Fischofer --- include/odp/api/packet.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/include/odp/api/packet.h b/include/odp/api/packet.h index 3c1c646..fa0e442 100644 --- a/include/odp/api/packet.h +++ b/include/odp/api/packet.h @@ -869,6 +869,31 @@ void odp_packet_print(odp_packet_t pkt); */ int odp_packet_is_valid(odp_packet_t pkt); +/** + * Get printable value for an odp_packet_t + * + * @param hdl odp_packet_t handle to be printed + * @return uint64_t value that can be used to print/display this + * handle + * + * @note This routine is intended to be used for diagnostic purposes + * to enable applications to generate a printable value that represents + * an odp_packet_t handle. + */ +uint64_t odp_packet_to_u64(odp_packet_t hdl); + +/** + * Get printable value for an odp_packet_seg_t + * + * @param hdl odp_packet_seg_t handle to be printed + * @return uint64_t value that can be used to print/display this + * handle + * + * @note This routine is intended to be used for diagnostic purposes + * to enable applications to generate a printable value that represents + * an odp_packet_seg_t handle. + */ +uint64_t odp_packet_seg_to_u64(odp_packet_seg_t hdl); /** * @}