dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
From: Emil Velikov <emil.l.velikov@gmail.com>
To: dri-devel@lists.freedesktop.org
Cc: emil.l.velikov@gmail.com
Subject: [PATCH 03/24] drm: add extern C guard for the UAPI headers
Date: Thu, 21 Apr 2016 21:17:16 +0100	[thread overview]
Message-ID: <1461269857-12813-4-git-send-email-emil.l.velikov@gmail.com> (raw)
In-Reply-To: <1461269857-12813-1-git-send-email-emil.l.velikov@gmail.com>

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
---
 include/uapi/drm/drm.h        | 16 ++++++++++++++++
 include/uapi/drm/drm_fourcc.h |  8 ++++++++
 include/uapi/drm/drm_mode.h   |  8 ++++++++
 include/uapi/drm/drm_sarea.h  |  8 ++++++++
 4 files changed, 40 insertions(+)

diff --git a/include/uapi/drm/drm.h b/include/uapi/drm/drm.h
index 3683250..452675f 100644
--- a/include/uapi/drm/drm.h
+++ b/include/uapi/drm/drm.h
@@ -65,6 +65,10 @@ typedef unsigned long drm_handle_t;
 
 #endif
 
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
 #define DRM_NAME	"drm"	  /**< Name in kernel, /dev, and /proc */
 #define DRM_MIN_ORDER	5	  /**< At least 2^5 bytes = 32 bytes */
 #define DRM_MAX_ORDER	22	  /**< Up to 2^22 bytes = 4MB */
@@ -691,8 +695,16 @@ struct drm_prime_handle {
 	__s32 fd;
 };
 
+#if defined(__cplusplus)
+}
+#endif
+
 #include "drm_mode.h"
 
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
 #define DRM_IOCTL_BASE			'd'
 #define DRM_IO(nr)			_IO(DRM_IOCTL_BASE,nr)
 #define DRM_IOR(nr,type)		_IOR(DRM_IOCTL_BASE,nr,type)
@@ -886,4 +898,8 @@ typedef struct drm_scatter_gather drm_scatter_gather_t;
 typedef struct drm_set_version drm_set_version_t;
 #endif
 
+#if defined(__cplusplus)
+}
+#endif
+
 #endif
diff --git a/include/uapi/drm/drm_fourcc.h b/include/uapi/drm/drm_fourcc.h
index 4d8da69..a5890bf 100644
--- a/include/uapi/drm/drm_fourcc.h
+++ b/include/uapi/drm/drm_fourcc.h
@@ -26,6 +26,10 @@
 
 #include "drm.h"
 
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
 #define fourcc_code(a, b, c, d) ((__u32)(a) | ((__u32)(b) << 8) | \
 				 ((__u32)(c) << 16) | ((__u32)(d) << 24))
 
@@ -229,4 +233,8 @@
  */
 #define DRM_FORMAT_MOD_SAMSUNG_64_32_TILE	fourcc_mod_code(SAMSUNG, 1)
 
+#if defined(__cplusplus)
+}
+#endif
+
 #endif /* DRM_FOURCC_H */
diff --git a/include/uapi/drm/drm_mode.h b/include/uapi/drm/drm_mode.h
index 7a7856e0..a4c5378 100644
--- a/include/uapi/drm/drm_mode.h
+++ b/include/uapi/drm/drm_mode.h
@@ -29,6 +29,10 @@
 
 #include "drm.h"
 
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
 #define DRM_DISPLAY_INFO_LEN	32
 #define DRM_CONNECTOR_NAME_LEN	32
 #define DRM_DISPLAY_MODE_LEN	32
@@ -621,4 +625,8 @@ struct drm_mode_destroy_blob {
 	__u32 blob_id;
 };
 
+#if defined(__cplusplus)
+}
+#endif
+
 #endif
diff --git a/include/uapi/drm/drm_sarea.h b/include/uapi/drm/drm_sarea.h
index 1d1a858..a951ced 100644
--- a/include/uapi/drm/drm_sarea.h
+++ b/include/uapi/drm/drm_sarea.h
@@ -34,6 +34,10 @@
 
 #include "drm.h"
 
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
 /* SAREA area needs to be at least a page */
 #if defined(__alpha__)
 #define SAREA_MAX                       0x2000U
@@ -83,4 +87,8 @@ typedef struct drm_sarea_frame drm_sarea_frame_t;
 typedef struct drm_sarea drm_sarea_t;
 #endif
 
+#if defined(__cplusplus)
+}
+#endif
+
 #endif				/* _DRM_SAREA_H_ */
-- 
2.6.2

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

  parent reply	other threads:[~2016-04-21 20:16 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-21 20:17 [PATCH 00/24] drm: add extern C guard for the UAPI headers Emil Velikov
2016-04-21 20:17 ` [PATCH 01/24] drm/amdgpu: add extern C guard for the UAPI header Emil Velikov
2016-04-21 20:17 ` [PATCH 02/24] drm/armada: " Emil Velikov
2016-04-21 20:17 ` Emil Velikov [this message]
2016-04-21 20:17 ` [PATCH 04/24] drm/etnaviv: " Emil Velikov
2016-04-27 15:13   ` Christian Gmeiner
2016-04-21 20:17 ` [PATCH 05/24] drm/exynos: " Emil Velikov
2016-04-21 20:17 ` [PATCH 06/24] drm/i810: " Emil Velikov
2016-04-22  8:36   ` Daniel Vetter
2016-04-21 20:17 ` [PATCH 07/24] drm/i915: " Emil Velikov
2016-04-21 20:17 ` [PATCH 08/24] drm/mga: " Emil Velikov
2016-04-21 20:17 ` [PATCH 09/24] drm/msm: " Emil Velikov
2016-04-21 20:17 ` [PATCH 10/24] drm/nouveau: " Emil Velikov
2016-04-21 20:17 ` [PATCH 11/24] drm/nouveau: drop drm/ prefix from include Emil Velikov
2016-04-21 20:17 ` [PATCH 12/24] drm/omap: add extern C guard for the UAPI header Emil Velikov
2016-04-28  8:18   ` Tomi Valkeinen
2016-04-21 20:17 ` [PATCH 13/24] drm/qxl: " Emil Velikov
2016-04-21 20:17 ` [PATCH 14/24] drm/qxl: remove XXX comment from " Emil Velikov
2016-04-21 20:17 ` [PATCH 15/24] drm/r128: add extern C guard for " Emil Velikov
2016-04-21 20:17 ` [PATCH 16/24] drm/radeon: " Emil Velikov
2016-04-21 20:17 ` [PATCH 17/24] drm/savage: " Emil Velikov
2016-04-21 20:17 ` [PATCH 18/24] drm/sis: " Emil Velikov
2016-04-21 20:17 ` [PATCH 19/24] drm/sis: add missing include drm.h " Emil Velikov
2016-04-22  8:37   ` Daniel Vetter
2016-04-26 23:37     ` Dave Airlie
2016-04-27 21:36       ` Emil Velikov
2016-04-21 20:17 ` [PATCH 20/24] drm/tegra: add extern C guard " Emil Velikov
2016-04-22 12:02   ` Thierry Reding
2016-04-21 20:17 ` [PATCH 21/24] drm/vc4: " Emil Velikov
2016-04-21 20:17 ` [PATCH 22/24] drm/via: " Emil Velikov
2016-04-21 20:17 ` [PATCH 23/24] drm/virgl: " Emil Velikov
2016-04-21 20:17 ` [PATCH 24/24] drm/vmwgfx: " Emil Velikov
2016-04-22  8:34 ` [PATCH 00/24] drm: add extern C guard for the UAPI headers Daniel Vetter
2016-04-27  9:47 ` Russell King - ARM Linux
2016-04-27 21:45   ` Emil Velikov
2016-04-27 21:57     ` Dave Airlie
2016-04-27 22:40       ` Emil Velikov
2016-04-28 13:19     ` Alex Deucher
2016-04-28 22:58       ` Ben Skeggs
2016-04-28 14:11     ` Russell King - ARM Linux

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1461269857-12813-4-git-send-email-emil.l.velikov@gmail.com \
    --to=emil.l.velikov@gmail.com \
    --cc=dri-devel@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).