2 * Copyright (c) 2015 Samsung Electronics Co., Ltd. All rights reserved.
4 * This file is a modified version of BSD licensed file and
5 * licensed under the Flora License, Version 1.1 (the License);
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://floralicense.org/license/
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an AS IS BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
17 * Please, see the LICENSE file for the original copyright owner and
21 #include "screen_reader.h"
22 #include "screen_reader_tts.h"
23 #include "screen_reader_vconf.h"
24 #include "screen_reader_spi.h"
28 #ifdef RUN_IPC_TEST_SUIT
29 #include "test_suite/test_suite.h"
34 Service_Data service_data =
38 #ifdef SCREEN_READER_TV
39 .tracking_signal_name = FOCUS_CHANGED_SIG,
41 .tracking_signal_name = HIGHLIGHT_CHANGED_SIG,
46 .available_languages = NULL,
48 //Actions to do when tts state is 'ready'
49 .update_language_list = false,
51 .text_to_say_info = NULL
54 Service_Data *get_pointer_to_service_data_struct()
59 int screen_reader_create_service(void *data)
61 Service_Data *service_data = data;
63 vconf_init(service_data);
64 tts_init(service_data);
66 #ifdef SCREEN_READER_TV
67 spi_init(service_data);
71 #ifdef RUN_IPC_TEST_SUIT
80 int screen_reader_terminate_service(void *data)
82 DEBUG("Service Terminate Callback \n");
84 Service_Data *service_data = data;
86 tts_stop(service_data->tts);
87 tts_unprepare(service_data->tts);
88 tts_destroy(service_data->tts);
89 service_data->text_from_dbus = NULL;
90 service_data->current_value = NULL;