X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=common%2Fstt_config_parser.h;h=29876614f60dea6ec8cbdb82478fa697edfecd40;hb=35d7761a644536773eff67086413b3944d014db3;hp=6fa65addc949df9e9e94152dab23631e52c995b3;hpb=23e300999f1c74be9a304e681ce2c0c776558071;p=platform%2Fcore%2Fuifw%2Fstt.git diff --git a/common/stt_config_parser.h b/common/stt_config_parser.h index 6fa65ad..2987661 100644 --- a/common/stt_config_parser.h +++ b/common/stt_config_parser.h @@ -1,5 +1,5 @@ /* -* Copyright (c) 2011-2014 Samsung Electronics Co., Ltd All Rights Reserved +* Copyright (c) 2011-2016 Samsung Electronics Co., Ltd All Rights Reserved * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -11,7 +11,7 @@ * limitations under the License. */ - + #ifndef __STT_CONFIG_PARSER_H_ #define __STT_CONFIG_PARSER_H_ @@ -30,7 +30,8 @@ typedef struct { char* agreement; GSList* languages; bool support_silence_detection; -}stt_engine_info_s; + bool need_credential; +} stt_engine_info_s; typedef struct { char* engine_id; @@ -38,7 +39,8 @@ typedef struct { bool auto_lang; char* language; bool silence_detection; -}stt_config_s; + bool credential; +} stt_config_s; typedef struct { int index; @@ -46,7 +48,7 @@ typedef struct { char* text; long start_time; long end_time; -}stt_result_time_info_s; +} stt_result_time_info_s; /* Get engine information */ int stt_parser_get_engine_info(const char* path, stt_engine_info_s** engine_info); @@ -58,7 +60,7 @@ int stt_parser_load_config(stt_config_s** config_info); int stt_parser_unload_config(stt_config_s* config_info); -int stt_parser_set_engine(const char* engine_id, const char* setting, const char* language, bool silence); +int stt_parser_set_engine(const char* engine_id, const char* setting, const char* language, bool silence, bool credential); int stt_parser_set_language(const char* language); @@ -66,7 +68,7 @@ int stt_parser_set_auto_lang(bool value); int stt_parser_set_silence_detection(bool value); -int stt_parser_find_config_changed(char** engine, char** setting, int* auto_lang, char** language, int* silence); +int stt_parser_find_config_changed(char** engine, char** setting, int* auto_lang, char** language, int* silence, int* credential); /* Time info */