2 * Copyright (c) 2011-2016 Samsung Electronics Co., Ltd All Rights Reserved
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 * http://www.apache.org/licenses/LICENSE-2.0
7 * Unless required by applicable law or agreed to in writing, software
8 * distributed under the License is distributed on an "AS IS" BASIS,
9 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10 * See the License for the specific language governing permissions and
11 * limitations under the License.
15 #ifndef __STTD_SERVER_H_
16 #define __STTD_SERVER_H_
19 #include "sttd_main.h"
30 int sttd_initialize(stte_request_callback_s *callback);
34 Eina_Bool sttd_cleanup_client(void *data);
36 Eina_Bool sttd_get_daemon_exist();
42 int sttd_server_initialize(int pid, int uid, bool* silence, bool* credential);
44 int sttd_server_finalize(int uid);
46 int sttd_server_get_supported_engines(int uid, GSList** engine_list);
48 int sttd_server_set_current_engine(int uid, const char* engine_id, bool* silence, bool* credential);
50 int sttd_server_get_current_engine(int uid, char** engine_id);
52 int sttd_server_check_app_agreed(int uid, const char* appid, bool* available);
54 int sttd_server_get_supported_languages(int uid, GSList** lang_list);
56 int sttd_server_get_current_langauage(int uid, char** current_lang);
58 int sttd_server_set_private_data(int uid, const char* key, const char* data);
60 int sttd_server_get_private_data(int uid, const char* key, char** data);
62 int sttd_server_set_engine_data(int uid, const char* key, const char* value);
64 int sttd_server_is_recognition_type_supported(int uid, const char* type, int* support);
66 int sttd_server_set_start_sound(int uid, const char* file);
68 int sttd_server_set_stop_sound(int uid, const char* file);
71 int sttd_server_get_audio_volume(int uid, float* current_volume);
73 int sttd_server_start(int uid, const char* lang, const char* recognition_type, int silence, const char* appid, const char* credential);
75 int sttd_server_stop(int uid);
77 int sttd_server_cancel(int uid);
85 #endif /* __STTD_SERVER_H_ */