summaryrefslogtreecommitdiffstats
path: root/gralloc_drm.h
diff options
context:
space:
mode:
Diffstat (limited to 'gralloc_drm.h')
-rw-r--r--gralloc_drm.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gralloc_drm.h b/gralloc_drm.h
index 8059907..891526f 100644
--- a/gralloc_drm.h
+++ b/gralloc_drm.h
@@ -27,6 +27,10 @@
#include <hardware/gralloc.h>
#include "gralloc_drm_formats.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct gralloc_drm_t;
struct gralloc_drm_bo_t;
@@ -132,4 +136,7 @@ int gralloc_drm_bo_add_fb(struct gralloc_drm_bo_t *bo);
void gralloc_drm_bo_rm_fb(struct gralloc_drm_bo_t *bo);
int gralloc_drm_bo_post(struct gralloc_drm_bo_t *bo);
+#ifdef __cplusplus
+}
+#endif
#endif /* _GRALLOC_DRM_H_ */