3 * Copyright (c) 2012 Samsung Electronics Co., Ltd.
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
9 * http://www.apache.org/licenses/LICENSE-2.0
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.
19 #ifndef __FEEDBACK_LEGACY_H__
20 #define __FEEDBACK_LEGACY_H__
22 #include "feedback-ids.h"
29 * @file feedback-legacy.h
30 * @brief This file contains the feedback legacy API
33 #define FEEDBACK_DATA_DIR "/opt/usr/share/feedback"
34 #define FEEDBACK_ORIGIN_DATA_DIR "/usr/share/feedback"
36 #define FEEDBACK_RETRY_CNT 1
37 #define MAX_FILE_PATH 512
39 typedef void* feedback_h;
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);
48 extern int callstatus;
50 feedback_pattern_e feedback_get_alert_on_call_key(feedback_pattern_e pattern);