diff options
| author | Henrik Rydberg <rydberg@euromail.se> | 2011-02-14 10:19:09 +0100 |
|---|---|---|
| committer | Henrik Rydberg <rydberg@euromail.se> | 2011-02-14 10:19:09 +0100 |
| commit | a06bde2b7aec991b798de9a8e0d7972adaabb40d (patch) | |
| tree | cf6bd6cb8d3e8b7daa65407b8d57db7c1ae9c5ca | |
| parent | 325c9ecccb9817f70924c6ca0a08e6d064b7ed70 (diff) | |
Add C++ header integration
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
| -rw-r--r-- | include/utouch/frame-mtdev.h | 8 | ||||
| -rw-r--r-- | include/utouch/frame.h | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/include/utouch/frame-mtdev.h b/include/utouch/frame-mtdev.h index f3957b9..f8da032 100644 --- a/include/utouch/frame-mtdev.h +++ b/include/utouch/frame-mtdev.h | |||
| @@ -22,6 +22,10 @@ | |||
| 22 | #ifndef _UTOUCH_FRAME_MTDEV_H | 22 | #ifndef _UTOUCH_FRAME_MTDEV_H |
| 23 | #define _UTOUCH_FRAME_MTDEV_H | 23 | #define _UTOUCH_FRAME_MTDEV_H |
| 24 | 24 | ||
| 25 | #ifdef __cplusplus | ||
| 26 | extern "C" { | ||
| 27 | #endif | ||
| 28 | |||
| 25 | #define MTDEV_NO_LEGACY_API | 29 | #define MTDEV_NO_LEGACY_API |
| 26 | 30 | ||
| 27 | #include <utouch/frame.h> | 31 | #include <utouch/frame.h> |
| @@ -36,4 +40,8 @@ int utouch_frame_init_mtdev(utouch_frame_handle fh, | |||
| 36 | const struct utouch_frame * | 40 | const struct utouch_frame * |
| 37 | utouch_frame_pump_mtdev(utouch_frame_handle fh, const struct input_event *ev); | 41 | utouch_frame_pump_mtdev(utouch_frame_handle fh, const struct input_event *ev); |
| 38 | 42 | ||
| 43 | #ifdef __cplusplus | ||
| 44 | } | ||
| 45 | #endif | ||
| 46 | |||
| 39 | #endif | 47 | #endif |
diff --git a/include/utouch/frame.h b/include/utouch/frame.h index 08e4e26..f136eb1 100644 --- a/include/utouch/frame.h +++ b/include/utouch/frame.h | |||
| @@ -22,6 +22,10 @@ | |||
| 22 | #ifndef _UTOUCH_FRAME_H | 22 | #ifndef _UTOUCH_FRAME_H |
| 23 | #define _UTOUCH_FRAME_H | 23 | #define _UTOUCH_FRAME_H |
| 24 | 24 | ||
| 25 | #ifdef __cplusplus | ||
| 26 | extern "C" { | ||
| 27 | #endif | ||
| 28 | |||
| 25 | #include <stdint.h> | 29 | #include <stdint.h> |
| 26 | 30 | ||
| 27 | #define UTOUCH_FRAME_VERSION 0x00001000 | 31 | #define UTOUCH_FRAME_VERSION 0x00001000 |
| @@ -247,4 +251,8 @@ int utouch_frame_set_current_slot(utouch_frame_handle fh, int slot); | |||
| 247 | const struct utouch_frame *utouch_frame_sync(utouch_frame_handle fh, | 251 | const struct utouch_frame *utouch_frame_sync(utouch_frame_handle fh, |
| 248 | utouch_frame_time_t time); | 252 | utouch_frame_time_t time); |
| 249 | 253 | ||
| 254 | #ifdef __cplusplus | ||
| 255 | } | ||
| 256 | #endif | ||
| 257 | |||
| 250 | #endif | 258 | #endif |
