fix merge duplication
[platform/core/uifw/stt.git] / client / stt_main.h
1 /*
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.
12 */
13
14
15 #ifndef __STT_MAIN_H_
16 #define __STT_MAIN_H_
17
18 #include <dbus/dbus.h>
19 #include <dlog.h>
20 #include <Ecore.h>
21 #include <glib.h>
22 #include <stdio.h>
23 #include <stdlib.h>
24 #include <stdbool.h>
25 #include <string.h>
26 #include <unistd.h>
27
28 #include "stt_defs.h"
29
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33
34 #define TAG_STTC "sttc"
35 #define LOG_TAG_STT "sttc"
36
37 /**
38 * @brief A structure of handle for identification
39 */
40 struct stt_s {
41         unsigned int handle;
42 };
43
44 typedef enum {
45         STT_DAEMON_NORMAL               = 0,
46         STT_DAEMON_ON_TERMINATING       = -1
47 } stt_daemon_status_e;
48
49 typedef enum {
50         STT_RESULT_STATE_DONE           = 0,                    /**< Sync state change */
51         STT_RESULT_STATE_NOT_DONE       = 1                     /**< Async state change */
52 } stt_result_state_e;
53
54 typedef enum {
55         STT_SET_START_SOUND,
56         STT_UNSET_START_SOUND,
57         STT_SET_STOP_SOUND,
58         STT_UNSET_STOP_SOUND,
59 } stt_set_sound_method_e;
60
61 #ifdef __cplusplus
62 }
63 #endif
64
65 #endif /* __STT_CLIENT_H_ */