From 9afacdb98c726cf04e29cdbc5e6d9cd6fdcc1ea8 Mon Sep 17 00:00:00 2001 From: Kitae Kim Date: Wed, 15 Oct 2014 19:26:44 +0900 Subject: [PATCH] eventcast: add evencast_ define add those macros to avoid redundant declarations Change-Id: I524d94abacfcb7ab191f2707d07321d460a9a60e Signed-off-by: Kitae Kim --- tizen/src/ecs/ecs_eventcast.h | 5 +++++ tizen/src/eventcast/common.h | 5 +++++ tizen/src/eventcast/encode_fb.h | 5 +++++ tizen/src/eventcast/sensor.h | 5 +++++ tizen/src/eventcast/touch.h | 5 +++++ 5 files changed, 25 insertions(+) diff --git a/tizen/src/ecs/ecs_eventcast.h b/tizen/src/ecs/ecs_eventcast.h index a94f3f35cc..ac8c4a0abb 100644 --- a/tizen/src/ecs/ecs_eventcast.h +++ b/tizen/src/ecs/ecs_eventcast.h @@ -28,6 +28,9 @@ * */ +#ifndef __ECS_EVENTCAST_H__ +#define __ECS_EVENTCAST_H__ + /* * define eventcast messages between ecs and ecp */ @@ -53,3 +56,5 @@ void send_eventcast_sensor_data(const char *data, int len); void send_eventcast_touch_data(int x, int y, int index, int status); void send_eventcast_hwkey_data(int keycode); + +#endif /* __ECS_EVENTCAST_H__ */ diff --git a/tizen/src/eventcast/common.h b/tizen/src/eventcast/common.h index 14229913d7..e568e7c233 100644 --- a/tizen/src/eventcast/common.h +++ b/tizen/src/eventcast/common.h @@ -28,6 +28,9 @@ * */ +#ifndef __EVENTCAST_COMMON_H__ +#define __EVENTCAST_COMMON_H__ + enum connection_status { DISCONNECTED = 0, CONNECTED, @@ -51,3 +54,5 @@ int get_eventcast_connection_status(void); int get_eventcast_connected_port(void); const char *get_eventcast_connected_ipaddr(void); + +#endif /* __EVENTCAST_COMMON_H__ */ diff --git a/tizen/src/eventcast/encode_fb.h b/tizen/src/eventcast/encode_fb.h index 32a777f22f..158ecff299 100644 --- a/tizen/src/eventcast/encode_fb.h +++ b/tizen/src/eventcast/encode_fb.h @@ -28,6 +28,9 @@ * */ +#ifndef __EVENTCAST_ENCODE_FB_H__ +#define __EVENTCAST_ENCODE_FB_H__ + struct encode_mem { uint8_t *buffer; uint32_t length; @@ -40,3 +43,5 @@ bool maru_extract_framebuffer(void *buffer); void set_display_dirty(bool dirty); bool is_display_dirty(void); + +#endif /* __EVENTCAST_ENCODE_FB_H__ */ diff --git a/tizen/src/eventcast/sensor.h b/tizen/src/eventcast/sensor.h index c20b6958f5..32cb80b6d6 100644 --- a/tizen/src/eventcast/sensor.h +++ b/tizen/src/eventcast/sensor.h @@ -28,8 +28,13 @@ * */ +#ifndef __EVENTCAST_SENSOR_H__ +#define __EVENTCAST_SENSOR_H__ + bool msgproc_eventcast_sensor_msg(void *msg); int get_eventcast_sensor_status(void); void set_eventcast_sensor_status(int status); + +#endif /* __EVENTCAST_SENSOR_H__ */ diff --git a/tizen/src/eventcast/touch.h b/tizen/src/eventcast/touch.h index 0d754e1cf6..9d5a68d7d6 100644 --- a/tizen/src/eventcast/touch.h +++ b/tizen/src/eventcast/touch.h @@ -28,6 +28,9 @@ * */ +#ifndef __EVENTCAST_TOUCH_H__ +#define __EVENTCAST_TOUCH_H__ + enum { ENCODE_WEBP = 0, ENCODE_PNG, @@ -38,3 +41,5 @@ bool msgproc_eventcast_touch_msg(void *message); int get_eventcast_touch_status(void); void set_eventcast_touch_status(int status); + +#endif /* __EVENTCAST_TOUCH_H__ */ -- 2.34.1