Update version to 1.70.7
[platform/core/uifw/voice-control.git] / client / vc_mgr_data.h
1 /*
2 * Copyright (c) 2018 Samsung Electronics Co., Ltd All Rights Reserved
3 *
4 * Licensed under the Apache License, Version 2.0 (the License);
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an AS IS BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17
18 #ifndef __VC_MGR_DATA_H__
19 #define __VC_MGR_DATA_H__
20
21 #include <tizen.h>
22 #include <voice_control_common.h>
23
24
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28
29 #define TAG_VCM     "vcm"       /* Manager client log tag */
30
31 typedef enum {
32         VC_FEEDBACK_STATE_CREATED = 0,
33         VC_FEEDBACK_STATE_READY,
34         VC_FEEDBACK_STATE_PLAYING
35 } vc_feedback_state_e;
36
37 typedef struct {
38         int pid;
39         int utt_id;
40         void* data;
41         unsigned int data_size;
42
43         vc_feedback_event_e event;
44         vc_audio_type_e audio_type;
45         vc_audio_channel_e channel;
46         int rate;
47 } vc_feedback_data_s;
48
49
50 int vc_mgr_data_add_feedback_data(vc_feedback_data_s* data);
51
52 int vc_mgr_data_get_feedback_data(vc_feedback_data_s** data);
53
54 int vc_mgr_data_get_feedback_data_size();
55
56 int vc_mgr_data_clear_feedback_data(vc_feedback_data_s** data);
57
58 int vc_mgr_data_get_pid();
59
60 #ifdef __cplusplus
61 }
62 #endif
63
64 #endif /* __VC_MGR_DATA_H__ */