diff options
| -rw-r--r-- | include/mtdev-mapping.h | 8 | ||||
| -rw-r--r-- | include/mtdev-plumbing.h | 8 | ||||
| -rw-r--r-- | include/mtdev.h | 8 |
3 files changed, 24 insertions, 0 deletions
diff --git a/include/mtdev-mapping.h b/include/mtdev-mapping.h index cb4c326..0e47970 100644 --- a/include/mtdev-mapping.h +++ b/include/mtdev-mapping.h | |||
| @@ -31,6 +31,10 @@ | |||
| 31 | #ifndef _MTDEV_MAPPING_H | 31 | #ifndef _MTDEV_MAPPING_H |
| 32 | #define _MTDEV_MAPPING_H | 32 | #define _MTDEV_MAPPING_H |
| 33 | 33 | ||
| 34 | #ifdef __cplusplus | ||
| 35 | extern "C" { | ||
| 36 | #endif | ||
| 37 | |||
| 34 | #include <mtdev.h> | 38 | #include <mtdev.h> |
| 35 | 39 | ||
| 36 | #define MTDEV_TOUCH_MAJOR 0 | 40 | #define MTDEV_TOUCH_MAJOR 0 |
| @@ -76,4 +80,8 @@ static inline unsigned int mtdev_mt2abs(unsigned int mtcode) | |||
| 76 | return mtdev_map_mt2abs[mtcode]; | 80 | return mtdev_map_mt2abs[mtcode]; |
| 77 | } | 81 | } |
| 78 | 82 | ||
| 83 | #ifdef __cplusplus | ||
| 84 | } | ||
| 85 | #endif | ||
| 86 | |||
| 79 | #endif | 87 | #endif |
diff --git a/include/mtdev-plumbing.h b/include/mtdev-plumbing.h index 137fbc2..cadc1f7 100644 --- a/include/mtdev-plumbing.h +++ b/include/mtdev-plumbing.h | |||
| @@ -29,6 +29,10 @@ | |||
| 29 | #ifndef _MTDEV_PLUMBING_H | 29 | #ifndef _MTDEV_PLUMBING_H |
| 30 | #define _MTDEV_PLUMBING_H | 30 | #define _MTDEV_PLUMBING_H |
| 31 | 31 | ||
| 32 | #ifdef __cplusplus | ||
| 33 | extern "C" { | ||
| 34 | #endif | ||
| 35 | |||
| 32 | #include <mtdev.h> | 36 | #include <mtdev.h> |
| 33 | 37 | ||
| 34 | /** | 38 | /** |
| @@ -102,4 +106,8 @@ int mtdev_empty(struct mtdev *dev); | |||
| 102 | */ | 106 | */ |
| 103 | void mtdev_get_event(struct mtdev *dev, struct input_event* ev); | 107 | void mtdev_get_event(struct mtdev *dev, struct input_event* ev); |
| 104 | 108 | ||
| 109 | #ifdef __cplusplus | ||
| 110 | } | ||
| 111 | #endif | ||
| 112 | |||
| 105 | #endif | 113 | #endif |
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 | ||
| 33 | extern "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 | */ |
| 170 | void mtdev_close(struct mtdev *dev); | 174 | void mtdev_close(struct mtdev *dev); |
| 171 | 175 | ||
| 176 | #ifdef __cplusplus | ||
| 177 | } | ||
| 178 | #endif | ||
| 179 | |||
| 172 | #endif | 180 | #endif |
