From 267d7ba1a794fa03f6ad9d380768e31b2e1be0af Mon Sep 17 00:00:00 2001 From: Suyeon Hwang Date: Mon, 14 Aug 2017 15:15:52 +0900 Subject: [PATCH] Add new property in command handle Change-Id: Icc50a3f3060c63a09449f8e93d1253ce6be4d1ba Signed-off-by: Suyeon Hwang --- common/vc_command.c | 5 +++++ common/vc_command.h | 9 +++++++++ 2 files changed, 14 insertions(+) diff --git a/common/vc_command.c b/common/vc_command.c index 3efc055..c5d8c7e 100644 --- a/common/vc_command.c +++ b/common/vc_command.c @@ -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; } diff --git a/common/vc_command.h b/common/vc_command.h index 9f0bad5..b4eadab 100644 --- a/common/vc_command.h +++ b/common/vc_command.h @@ -26,6 +26,13 @@ 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; -- 2.7.4