From patchwork Wed Apr 1 16:15:18 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Emil Velikov X-Patchwork-Id: 6141191 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id E381F9F434 for ; Wed, 1 Apr 2015 16:12:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2B2FA20154 for ; Wed, 1 Apr 2015 16:12:38 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id EE17A20148 for ; Wed, 1 Apr 2015 16:12:36 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 399C76E8C3; Wed, 1 Apr 2015 09:12:36 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com [209.85.212.182]) by gabe.freedesktop.org (Postfix) with ESMTP id AF3DA6E8BE for ; Wed, 1 Apr 2015 09:12:34 -0700 (PDT) Received: by wiaa2 with SMTP id a2so72754824wia.0 for ; Wed, 01 Apr 2015 09:12:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=AoAobaC8RbfjlNhEjPmhA0Il8Df16VXh+SlAUBKy2uI=; b=xEoJUZes9Dno8LJi909tllVmvJ+gNX40T7PdDizxE3eVRKG5pEnJ8PIcXJm01Bsh8K bp+HherU9cNK8G3HGSqsjlMwkTrIUGRPL0ig8Bh/iaLK02H+CzIQNXEevQyLVlJ2m5pv +SKDWf5zGKuwktt8zIhMnt84cWOPGNPPU7A1rF8KwanrMcEPSb4J2Yw/b5t3Aei+RKYr JDozJoeMJsvbHYjy4tKOgGeqPkAuEHjPXlC6vPnSCdoYiApfno8W2GYOUZIz07qfZBK2 Yc17JDGSIXCWmwuOLaf3JI/dWx0UNeSraobU7S+Q15msjncV6oUzluigLe6xW5+nSpxJ JAHg== X-Received: by 10.180.107.198 with SMTP id he6mr16995794wib.68.1427904754142; Wed, 01 Apr 2015 09:12:34 -0700 (PDT) Received: from arch-x220.localdomain (cpc12-croy20-2-0-cust52.croy.cable.virginm.net. [82.44.54.53]) by mx.google.com with ESMTPSA id ge8sm3319498wjc.32.2015.04.01.09.12.32 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 01 Apr 2015 09:12:33 -0700 (PDT) From: Emil Velikov To: dri-devel@lists.freedesktop.org Subject: [PATCH libdrm 07/24] radeon: annotate the private symbols Date: Wed, 1 Apr 2015 17:15:18 +0100 Message-Id: <1427904935-14387-8-git-send-email-emil.l.velikov@gmail.com> X-Mailer: git-send-email 2.3.1 In-Reply-To: <1427904935-14387-1-git-send-email-emil.l.velikov@gmail.com> References: <1427904935-14387-1-git-send-email-emil.l.velikov@gmail.com> MIME-Version: 1.0 Cc: =?UTF-8?q?Michel=20D=C3=A4nzer?= , emil.l.velikov@gmail.com X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP They are less and easier to track than the public ones. The macro drm_public will be going away by the end of the series. Cc: Maarten Lankhorst Cc: Michel Dänzer Signed-off-by: Emil Velikov Acked-by: Michel Dänzer --- radeon/bof.c | 22 +++++++++++++--------- radeon/bof.h | 23 ++++++++++++++--------- 2 files changed, 27 insertions(+), 18 deletions(-) diff --git a/radeon/bof.c b/radeon/bof.c index 92f4b91..2b29b89 100644 --- a/radeon/bof.c +++ b/radeon/bof.c @@ -23,6 +23,10 @@ * Authors: * Jerome Glisse */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include #include #include @@ -50,7 +54,7 @@ static void bof_incref(bof_t *bof) bof->refcount++; } -void bof_decref(bof_t *bof) +drm_private void bof_decref(bof_t *bof) { unsigned i; @@ -96,7 +100,7 @@ static bof_t *bof_string(const char *value) /* * object */ -bof_t *bof_object(void) +drm_private bof_t *bof_object(void) { bof_t *object; @@ -109,7 +113,7 @@ bof_t *bof_object(void) return object; } -int bof_object_set(bof_t *object, const char *keyname, bof_t *value) +drm_private int bof_object_set(bof_t *object, const char *keyname, bof_t *value) { bof_t *key; int r; @@ -133,7 +137,7 @@ int bof_object_set(bof_t *object, const char *keyname, bof_t *value) /* * array */ -bof_t *bof_array(void) +drm_private bof_t *bof_array(void) { bof_t *array = bof_object(); @@ -144,7 +148,7 @@ bof_t *bof_array(void) return array; } -int bof_array_append(bof_t *array, bof_t *value) +drm_private int bof_array_append(bof_t *array, bof_t *value) { int r; if (array->type != BOF_TYPE_ARRAY) @@ -161,7 +165,7 @@ int bof_array_append(bof_t *array, bof_t *value) /* * blob */ -bof_t *bof_blob(unsigned size, void *value) +drm_private bof_t *bof_blob(unsigned size, void *value) { bof_t *blob = bof_object(); @@ -182,7 +186,7 @@ bof_t *bof_blob(unsigned size, void *value) /* * int32 */ -bof_t *bof_int32(int32_t value) +drm_private bof_t *bof_int32(int32_t value) { bof_t *int32 = bof_object(); @@ -200,7 +204,7 @@ bof_t *bof_int32(int32_t value) return int32; } -int32_t bof_int32_value(bof_t *bof) +drm_private int32_t bof_int32_value(bof_t *bof) { return *((uint32_t*)bof->value); } @@ -245,7 +249,7 @@ static int bof_file_write(bof_t *bof, FILE *file) return 0; } -int bof_dump_file(bof_t *bof, const char *filename) +drm_private int bof_dump_file(bof_t *bof, const char *filename) { unsigned i; int r = 0; diff --git a/radeon/bof.h b/radeon/bof.h index 8108dd5..b7632b4 100644 --- a/radeon/bof.h +++ b/radeon/bof.h @@ -26,8 +26,13 @@ #ifndef BOF_H #define BOF_H +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include #include +#include "libdrm.h" #define BOF_TYPE_STRING 0 #define BOF_TYPE_NULL 1 @@ -52,19 +57,19 @@ typedef struct bof { } bof_t; /* object */ -extern bof_t *bof_object(void); -extern int bof_object_set(bof_t *object, const char *keyname, bof_t *value); +drm_private extern bof_t *bof_object(void); +drm_private extern int bof_object_set(bof_t *object, const char *keyname, bof_t *value); /* array */ -extern bof_t *bof_array(void); -extern int bof_array_append(bof_t *array, bof_t *value); +drm_private extern bof_t *bof_array(void); +drm_private extern int bof_array_append(bof_t *array, bof_t *value); /* blob */ -extern bof_t *bof_blob(unsigned size, void *value); +drm_private extern bof_t *bof_blob(unsigned size, void *value); /* int32 */ -extern bof_t *bof_int32(int32_t value); -extern int32_t bof_int32_value(bof_t *bof); +drm_private extern bof_t *bof_int32(int32_t value); +drm_private extern int32_t bof_int32_value(bof_t *bof); /* common functions */ -extern void bof_decref(bof_t *bof); -extern int bof_dump_file(bof_t *bof, const char *filename); +drm_private extern void bof_decref(bof_t *bof); +drm_private extern int bof_dump_file(bof_t *bof, const char *filename); static inline int bof_is_object(bof_t *bof){return (bof->type == BOF_TYPE_OBJECT);} static inline int bof_is_blob(bof_t *bof){return (bof->type == BOF_TYPE_BLOB);}