Type casting for 64 bit build and add internal api 39/89239/1 accepted/tizen/common/20160923.160608 accepted/tizen/ivi/20160925.234146 accepted/tizen/mobile/20160925.234158 accepted/tizen/tv/20160925.234140 accepted/tizen/wearable/20160925.234153 submit/tizen/20160923.015118
authorWonnam Jang <wn.jang@samsung.com>
Fri, 23 Sep 2016 01:11:23 +0000 (10:11 +0900)
committerWonnam Jang <wn.jang@samsung.com>
Fri, 23 Sep 2016 01:12:21 +0000 (10:12 +0900)
Change-Id: I611c103deb6f46ddef086bc8604b4a345d4cf37e
Signed-off-by: Wonnam Jang <wn.jang@samsung.com>
common/vc_command.h
common/vc_info_parser.c
include/voice_control_command_expand.h

index 2791f01..c010c65 100644 (file)
@@ -98,38 +98,6 @@ int vc_cmd_print_list(vc_cmd_list_h vc_cmd_list);
 int vc_cmd_list_remove_all(vc_cmd_list_h vc_cmd_list, bool free_command);
 
 /**
-* @brief Sets pid.
-* @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
-*
-* @param[in] vc_command The command handle
-* @param[in] pid Process id
-*
-* @return 0 on success, otherwise a negative error value
-* @retval #VC_CMD_ERROR_NONE Successful
-* @retval #VC_CMD_ERROR_INVALID_PARAMETER Invalid parameter
-*
-* @see vc_cmd_get_pid()
-*/
-int vc_cmd_set_pid(vc_cmd_h vc_command, int pid);
-
-/**
-* @brief Sets command domain
-* @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
-*
-* @param[in] vc_command The command handle
-* @param[out] pid Process id
-*
-* @return 0 on success, otherwise a negative error value
-* @retval #VC_CMD_ERROR_NONE Successful
-* @retval #VC_CMD_ERROR_INVALID_PARAMETER Invalid parameter
-* @retval #VC_CMD_ERROR_PERMISSION_DENIED Permission denied
-* @retval #VC_CMD_ERROR_NOT_SUPPORTED Not supported feature
-*
-* @see vc_cmd_set_pid()
-*/
-int vc_cmd_get_pid(vc_cmd_h vc_command, int* pid);
-
-/**
 * @brief Sets app id.
 * @since_tizen 3.0
 *
@@ -194,22 +162,6 @@ int vc_cmd_set_fixed_command(vc_cmd_h vc_command, const char* fixed);
 int vc_cmd_get_fixed_command(vc_cmd_h vc_command, char** fixed);
 
 /**
-* @brief Sets unfixed command.
-* @since_tizen 3.0
-*
-* @param[in] vc_command The command handle
-* @param[in] command The unfixed command
-*
-* @return 0 on success, otherwise a negative error value
-* @retval #VC_CMD_ERROR_NONE Successful
-* @retval #VC_CMD_ERROR_INVALID_PARAMETER Invalid parameter
-* @retval #VC_CMD_ERROR_NOT_SUPPORTED Not supported feature
-*
-* @see vc_cmd_get_unfixed_command()
-*/
-int vc_cmd_set_unfixed_command(vc_cmd_h vc_command, const char* command);
-
-/**
 * @brief Gets fixed command
 * @since_tizen 3.0
 *
index 882779d..83847cf 100644 (file)
@@ -339,7 +339,7 @@ int vc_info_parser_set_nlu_result(const char* nlu_result)
        }
 
        /* Write size */
-       fprintf(fp, "size(%d)\n", strlen(nlu_result));
+       fprintf(fp, "size(%d)\n", (int)strlen(nlu_result));
 
        write_size = fwrite(nlu_result, 1, strlen(nlu_result), fp);
        fclose(fp);
index 14539f8..1e9b1b1 100644 (file)
@@ -135,6 +135,54 @@ int vc_cmd_list_remove_all(vc_cmd_list_h vc_cmd_list, bool free_command);
 */
 int vc_cmd_list_filter_by_type(vc_cmd_list_h original, int type, vc_cmd_list_h* filtered);
 
+/**
+* @brief Sets pid.
+* @since_tizen 3.0
+*
+* @param[in] vc_command The command handle
+* @param[in] pid Process id
+*
+* @return 0 on success, otherwise a negative error value
+* @retval #VC_CMD_ERROR_NONE Successful
+* @retval #VC_CMD_ERROR_INVALID_PARAMETER Invalid parameter
+*
+* @see vc_cmd_get_pid()
+*/
+int vc_cmd_set_pid(vc_cmd_h vc_command, int pid);
+
+/**
+* @brief Sets command domain
+* @since_tizen 3.0
+*
+* @param[in] vc_command The command handle
+* @param[out] pid Process id
+*
+* @return 0 on success, otherwise a negative error value
+* @retval #VC_CMD_ERROR_NONE Successful
+* @retval #VC_CMD_ERROR_INVALID_PARAMETER Invalid parameter
+* @retval #VC_CMD_ERROR_PERMISSION_DENIED Permission denied
+* @retval #VC_CMD_ERROR_NOT_SUPPORTED Not supported feature
+*
+* @see vc_cmd_set_pid()
+*/
+int vc_cmd_get_pid(vc_cmd_h vc_command, int* pid);
+
+/**
+* @brief Sets unfixed command.
+* @since_tizen 3.0
+*
+* @param[in] vc_command The command handle
+* @param[in] command The unfixed command
+*
+* @return 0 on success, otherwise a negative error value
+* @retval #VC_CMD_ERROR_NONE Successful
+* @retval #VC_CMD_ERROR_INVALID_PARAMETER Invalid parameter
+* @retval #VC_CMD_ERROR_NOT_SUPPORTED Not supported feature
+*
+* @see vc_cmd_get_unfixed_command()
+*/
+int vc_cmd_set_unfixed_command(vc_cmd_h vc_command, const char* command);
+
 #ifdef __cplusplus
 }
 #endif