From: Suyeon Hwang Date: Mon, 14 Aug 2017 06:15:52 +0000 (+0900) Subject: Add new property in command handle X-Git-Tag: accepted/tizen/unified/20180228.071746~33^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F59%2F143959%2F1;p=platform%2Fcore%2Fuifw%2Fvoice-control.git Add new property in command handle Change-Id: Icc50a3f3060c63a09449f8e93d1253ce6be4d1ba Signed-off-by: Suyeon Hwang --- 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;