4 * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
6 * Contact: Seokkyu Jang <seokkyu.jang@samsung.com>
7 * Contact: Sangil Yoon <si83.yoon@samsung.com>
9 * Licensed under the Apache License, Version 2.0 (the "License");
10 * you may not use this file except in compliance with the License.
11 * You may obtain a copy of the License at
13 * http://www.apache.org/licenses/LICENSE-2.0
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
26 int main(int argc, char* argv[])
28 char buf[4096] = {0,};
33 val = feedback_initialize();
34 if (val != FEEDBACK_ERROR_NONE) {
35 printf("feedback_initialize error : %d\n", val);
41 printf("Which do you want to work play(0) or change the path(1)?");
44 printf("Please input value : ");
48 val = feedback_play(a);
49 printf("ret value : %d\n", val);
51 printf("Please input type(sound:0,vib:1), enum, new path : ");
52 scanf("%d %d %s", &a, &b, buf);
53 val = feedback_get_resource_path( (a == 0) ? FEEDBACK_TYPE_SOUND : FEEDBACK_TYPE_VIBRATION, b, &temp);
54 printf("Prev : %s", temp);
56 val = feedback_set_resource_path( (a == 0) ? FEEDBACK_TYPE_SOUND : FEEDBACK_TYPE_VIBRATION, b, buf);
57 val = feedback_get_resource_path( (a == 0) ? FEEDBACK_TYPE_SOUND : FEEDBACK_TYPE_VIBRATION, b, &temp);
58 printf("Curr : %s", temp);
61 printf("Input error!!");
65 val = feedback_deinitialize();
66 if (val != FEEDBACK_ERROR_NONE) {
67 printf("feedback_initialize error : %d\n", val);