Fix to handle the null private data
[platform/core/uifw/stt.git] / server / sttd_engine_agent.h
index dc2ebf2..8217b3e 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
@@ -24,7 +24,7 @@ extern "C" {
 #endif
 
 /*
-* Constants & Structures       
+* Constants & Structures
 */
 
 #define        ENGINE_PATH_SIZE 256
@@ -73,8 +73,14 @@ int sttd_engine_agent_supported_langs(int uid, GSList** lang_list);
 
 int sttd_engine_agent_get_default_lang(int uid, char** lang);
 
+int sttd_engine_agent_set_private_data(int uid, const char* key, const char* data);
+
+int sttd_engine_agent_get_private_data(int uid, const char* key, char** data);
+
 int sttd_engine_agent_get_option_supported(int uid, bool* silence);
 
+int sttd_engine_agent_is_credential_needed(int uid, bool* credential);
+
 int sttd_engine_agent_is_recognition_type_supported(int uid, const char* type, bool* support);
 
 int sttd_engine_agent_set_default_engine(const char* engine_uuid);
@@ -87,7 +93,7 @@ int sttd_engine_agent_check_app_agreed(int uid, const char* appid, bool* result)
 
 /** Control engine */
 int sttd_engine_agent_recognize_start_engine(int uid, const char* lang, const char* recognition_type, 
-                               int silence, void* user_param);
+                               int silence, const char* credential, void* user_param);
 
 int sttd_engine_agent_recognize_start_recorder(int uid);