Add logic to set default language of the engine
[platform/core/uifw/stt.git] / common / stt_config_parser.h
index 6fa65ad..71716d0 100644 (file)
@@ -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_
 
@@ -28,9 +28,11 @@ typedef struct {
        char*   uuid;
        char*   setting;
        char*   agreement;
+       char*   default_lang;
        GSList* languages;
        bool    support_silence_detection;
-}stt_engine_info_s;
+       bool    need_credential;
+} stt_engine_info_s;
 
 typedef struct {
        char*   engine_id;
@@ -38,7 +40,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 +49,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 +61,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 +69,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 */