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, unsigned int uid, bool* silence, bool* credential);
44 int sttd_server_finalize(unsigned int uid);
46 int sttd_server_get_supported_engines(unsigned int uid, GSList** engine_list);
48 int sttd_server_set_current_engine(unsigned int uid, const char* engine_id, bool* silence, bool* credential);
50 int sttd_server_get_current_engine(unsigned int uid, char** engine_id);
52 int sttd_server_check_app_agreed(unsigned int uid, const char* appid, bool* available);
54 int sttd_server_get_supported_languages(unsigned int uid, GSList** lang_list);
56 int sttd_server_get_current_langauage(unsigned int uid, char** current_lang);
58 int sttd_server_set_private_data(unsigned int uid, const char* key, const char* data);
60 int sttd_server_get_private_data(unsigned int uid, const char* key, char** data);
62 int sttd_server_set_engine_data(unsigned int uid, const char* key, const char* value);
64 int sttd_server_is_recognition_type_supported(unsigned int uid, const char* type, int* support);
66 int sttd_server_set_start_sound(unsigned int uid, const char* file);
68 int sttd_server_set_stop_sound(unsigned int uid, const char* file);
71 int sttd_server_get_audio_volume(unsigned int uid, float* current_volume);
73 int sttd_server_start(unsigned int uid, const char* lang, const char* recognition_type, int silence, const char* appid, const char* credential, const char* audio_id);
75 int sttd_server_stop(unsigned int uid);
77 int sttd_server_cancel(unsigned int uid);
79 int sttd_server_start_file(unsigned int uid, const char* lang, const char* recognition_type, int silence, const char* appid, const char* credential, const char* filepath);
81 int sttd_server_cancel_file(unsigned int uid);
88 #endif /* __STTD_SERVER_H_ */