Add new property in command handle 59/143959/1
authorSuyeon Hwang <stom.hwang@samsung.com>
Mon, 14 Aug 2017 06:15:52 +0000 (15:15 +0900)
committerSuyeon Hwang <stom.hwang@samsung.com>
Mon, 14 Aug 2017 06:15:52 +0000 (15:15 +0900)
Change-Id: Icc50a3f3060c63a09449f8e93d1253ce6be4d1ba
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
common/vc_command.c
common/vc_command.h

index 3efc055..c5d8c7e 100644 (file)
@@ -730,6 +730,7 @@ int vc_cmd_create(vc_cmd_h* vc_command)
        command->invocation_name = NULL;
        command->appid = NULL;
        command->fixed = NULL;
+       command->coordinates = NULL;
 
        *vc_command = (vc_cmd_h)command;
 
@@ -778,6 +779,10 @@ int vc_cmd_destroy(vc_cmd_h vc_command)
                        free(command->fixed);
                        command->fixed = NULL;
                }
+               if (NULL != command->coordinates) {
+                       free(command->coordinates);
+                       command->coordinates = NULL;
+               }
                free(command);
                command = NULL;
        }
index 9f0bad5..b4eadab 100644 (file)
 extern "C" {
 #endif
 
+typedef struct _coordinates_s {
+       double x;
+       double y;
+       double w;
+       double h;
+} vc_coord_s;
+
 typedef struct _command_s {
        int     pid;
        int     id;
@@ -41,6 +48,8 @@ typedef struct _command_s {
        char*   invocation_name;
        char*   fixed;
 
+       vc_coord_s* coordinates;
+
        /* not used */
        int     key;
        int     modifier;