summaryrefslogtreecommitdiff
path: root/include/mtdev.h
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@euromail.se>2010-12-20 16:49:53 +0100
committerHenrik Rydberg <rydberg@euromail.se>2010-12-22 12:31:28 +0100
commit0e2ab3b5940e70493aaabdfe5e8da1c75db4db72 (patch)
treea253d231d73f06efd8c47cbb7dec51a0291de37b /include/mtdev.h
parentdb1fdc76ceb5d1bbe32c193e13eb4357da5d0b81 (diff)
Allow use in c++ applications
Reported-by: Armando Visconti <armando.visconti@st.com> Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'include/mtdev.h')
-rw-r--r--include/mtdev.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/mtdev.h b/include/mtdev.h
index 84625a5..15bc53b 100644
--- a/include/mtdev.h
+++ b/include/mtdev.h
@@ -29,6 +29,10 @@
29#ifndef _MTDEV_H 29#ifndef _MTDEV_H
30#define _MTDEV_H 30#define _MTDEV_H
31 31
32#ifdef __cplusplus
33extern "C" {
34#endif
35
32#include <linux/input.h> 36#include <linux/input.h>
33 37
34/* includes available in 2.6.30-rc5 */ 38/* includes available in 2.6.30-rc5 */
@@ -169,4 +173,8 @@ int mtdev_get(struct mtdev *dev, int fd, struct input_event* ev, int ev_max);
169 */ 173 */
170void mtdev_close(struct mtdev *dev); 174void mtdev_close(struct mtdev *dev);
171 175
176#ifdef __cplusplus
177}
178#endif
179
172#endif 180#endif