79044bfaa2fbaea57f17b8ca583d313fc463c03e
[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
36 /** 
37 * @brief A structure of handle for identification
38 */
39 struct stt_s {
40         int handle;
41 };
42
43 typedef enum {
44         STT_DAEMON_NORMAL               = 0,
45         STT_DAEMON_ON_TERMINATING       = -1
46 } stt_daemon_status_e;
47
48 typedef enum {
49         STT_RESULT_STATE_DONE           = 0,                    /**< Sync state change */
50         STT_RESULT_STATE_NOT_DONE       = 1                     /**< Async state change */
51 } stt_result_state_e;
52
53 #ifdef __cplusplus
54 }
55 #endif
56
57 #endif /* __STT_CLIENT_H_ */