Remove stt-config in RW when xmlParseFile is failed
[platform/core/uifw/stt.git] / common / stt_config_parser.h
old mode 100755 (executable)
new mode 100644 (file)
index 81ca0cf..71716d0
@@ -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
@@ -28,8 +28,10 @@ typedef struct {
        char*   uuid;
        char*   setting;
        char*   agreement;
+       char*   default_lang;
        GSList* languages;
        bool    support_silence_detection;
+       bool    need_credential;
 } stt_engine_info_s;
 
 typedef struct {
@@ -38,6 +40,7 @@ typedef struct {
        bool    auto_lang;
        char*   language;
        bool    silence_detection;
+       bool    credential;
 } stt_config_s;
 
 typedef struct {
@@ -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 */