seperate sound device from feedback internal code
[platform/core/system/libsvi.git] / include / feedback-internal.h
1 /*
2  * libfeedback
3  * Copyright (c) 2012 Samsung Electronics Co., Ltd.
4  *
5  * Licensed under the Apache License, Version 2.0 (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
8  *
9  *     http://www.apache.org/licenses/LICENSE-2.0
10  *
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.
16  */
17
18
19 #ifndef __FEEDBACK_LEGACY_H__
20 #define __FEEDBACK_LEGACY_H__
21
22 #include "feedback-ids.h"
23
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27
28 /**
29  * @file feedback-legacy.h
30  * @brief This file contains the feedback legacy API
31  */
32
33 #define FEEDBACK_DATA_DIR                       "/opt/usr/share/feedback"
34 #define FEEDBACK_ORIGIN_DATA_DIR        "/usr/share/feedback"
35
36 #define FEEDBACK_RETRY_CNT       1
37 #define MAX_FILE_PATH          512
38
39 typedef void* feedback_h;
40
41 int feedback_init(feedback_h *handle);
42 int feedback_fini(feedback_h handle);
43 int feedback_play_sound(feedback_h handle, feedback_pattern_e key);
44 int feedback_play_vibration(feedback_h handle, feedback_pattern_e key);
45 int feedback_set_path(feedback_type_e type, feedback_pattern_e key, char* path);
46 int feedback_get_path(feedback_type_e type, feedback_pattern_e key, char* buf, unsigned int buflen);
47
48 extern int callstatus;
49
50 feedback_pattern_e feedback_get_alert_on_call_key(feedback_pattern_e pattern);
51
52 #ifdef __cplusplus
53 }
54 #endif
55
56 #endif //__SVI_H__