Change the event_info macro
authorSung-jae Park <nicesj.park@samsung.com>
Mon, 28 Jul 2014 10:26:34 +0000 (19:26 +0900)
committerSung-jae Park <nicesj.park@samsung.com>
Mon, 28 Jul 2014 10:26:34 +0000 (19:26 +0900)
Change-Id: I365cd6b74eaf52ce8f999f13cee14136678c69d9

include/livebox_product.h

index 9da9382..cfb7194 100644 (file)
@@ -71,20 +71,25 @@ extern const int LB_SYS_EVENT_DELETED;/**<System event type: Livebox instance is
 /**
  * @brief Structure for extra event information for livebox_content_event interface function.
  */
-#ifndef __PROVIDER_H
+#if !defined(__SCRIPT_EVENT_INFO)
+#define __SCRIPT_EVENT_INFO
+/**
+ * @brief
+ * Text signal & Content event uses this data structure.
+ */
 struct event_info {
-       struct {
-               double x;       /**< Coordinates of X axis */
-               double y;       /**< Coordinates of Y axis */
-               int down;       /**< 1 If the button is pressed. */
-       } pointer; /**< Down/Up state and mouse position */
-
-       struct {
-               double sx;      /**< Event source part's left top position, X axis */
-               double sy;      /**< Event source part's left top position, Y axis */
-               double ex;      /**< Event source part's right bottom position, X axis */
-               double ey;      /**< Event source part's right bottom position, Y axis */
-       } part; /**< Geometry of event received part */
+        struct pointer {
+                double x; /**< X value of current mouse(touch) position */
+                double y; /**< Y value of current mouse(touch) position */
+                int down; /**< Is it pressed(1) or not(0) */
+        } pointer;
+
+        struct part {
+                double sx; /**< Pressed object's left top X */
+                double sy; /**< Pressed object's left top Y */
+                double ex; /**< Pressed object's right bottom X */
+                double ey; /**< Pressed object's right bottom Y */
+        } part;
 };
 #endif