eventcast: add evencast_ define 77/28777/1
authorKitae Kim <kt920.kim@samsung.com>
Wed, 15 Oct 2014 10:26:44 +0000 (19:26 +0900)
committerKitae Kim <kt920.kim@samsung.com>
Wed, 15 Oct 2014 10:26:44 +0000 (19:26 +0900)
add those macros to avoid redundant declarations

Change-Id: I524d94abacfcb7ab191f2707d07321d460a9a60e
Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
tizen/src/ecs/ecs_eventcast.h
tizen/src/eventcast/common.h
tizen/src/eventcast/encode_fb.h
tizen/src/eventcast/sensor.h
tizen/src/eventcast/touch.h

index a94f3f3..ac8c4a0 100644 (file)
@@ -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__ */
index 1422991..e568e7c 100644 (file)
@@ -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__ */
index 32a777f..158ecff 100644 (file)
@@ -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__ */
index c20b695..32cb80b 100644 (file)
  *
  */
 
+#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__ */
index 0d754e1..9d5a68d 100644 (file)
@@ -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__ */