2 * Copyright (c) 2011-2015 Samsung Electronics Co., Ltd All Rights Reserved
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
18 #ifndef __VCD_CONFIG_H_
19 #define __VCD_CONFIG_H_
27 typedef void (*vcd_config_lang_changed_cb)(const char* language, void* user_data);
29 typedef void (*vcd_config_foreground_changed_cb)(int previous, int current, void* user_data);
32 int vcd_config_initialize(vcd_config_lang_changed_cb lang_cb, vcd_config_foreground_changed_cb fore_cb, void* user_data);
34 int vcd_config_finalize();
36 int vcd_config_get_default_language(char** language);
38 int vcd_config_set_default_language(const char* language);
40 int vcd_config_set_service_state(vcd_state_e state);
42 vcd_state_e vcd_config_get_service_state();
44 int vcd_config_get_foreground(int* pid);
46 int vcd_config_set_foreground(int pid, bool value);
48 int vcd_config_set_disabled_command_type(int disabled_cmd_type);
50 int vcd_config_get_command_type_enabled(int cmd_type);
52 int vcd_config_get_audio_streaming_mode(vcd_audio_streaming_mode_e* streaming_mode);
54 int vcd_config_set_audio_streaming_mode(vcd_audio_streaming_mode_e streaming_mode);
61 #endif /* __VCD_CONFIG_H_ */