aboutsummaryrefslogtreecommitdiffstats
path: root/libkms
diff options
context:
space:
mode:
authorLaurent Pinchart2012-11-01 04:40:30 -0500
committerJerome Glisse2013-04-18 09:05:53 -0500
commit9fa4a4b1a894fa8fffe2075bc3376b7fa5e18104 (patch)
tree35e0319634ed74a814b5ab72ad742faa71fe58cb /libkms
parente5d8a9c1d6375feb74feb52f419a025f1abf94d1 (diff)
downloadexternal-libdrm-9fa4a4b1a894fa8fffe2075bc3376b7fa5e18104.tar.gz
external-libdrm-9fa4a4b1a894fa8fffe2075bc3376b7fa5e18104.tar.xz
external-libdrm-9fa4a4b1a894fa8fffe2075bc3376b7fa5e18104.zip
kms: Make libkms.h usable in C++
Wrap the header in extern "C" { ... };. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jakob Bornecrantz <wallbraker@gmail.com>
Diffstat (limited to 'libkms')
-rw-r--r--libkms/libkms.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libkms/libkms.h b/libkms/libkms.h
index 46644429..c00b1597 100644
--- a/libkms/libkms.h
+++ b/libkms/libkms.h
@@ -29,6 +29,10 @@
29#ifndef _LIBKMS_H_ 29#ifndef _LIBKMS_H_
30#define _LIBKMS_H_ 30#define _LIBKMS_H_
31 31
32#if defined(__cplusplus) || defined(c_plusplus)
33extern "C" {
34#endif
35
32/** 36/**
33 * \file 37 * \file
34 * 38 *
@@ -71,4 +75,8 @@ int kms_bo_map(struct kms_bo *bo, void **out);
71int kms_bo_unmap(struct kms_bo *bo); 75int kms_bo_unmap(struct kms_bo *bo);
72int kms_bo_destroy(struct kms_bo **bo); 76int kms_bo_destroy(struct kms_bo **bo);
73 77
78#if defined(__cplusplus) || defined(c_plusplus)
79};
80#endif
81
74#endif 82#endif