2 * Copyright (c) 2017 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.
17 #ifndef __MM_RESOURCE_MANAGER_DAEMON_CONF__
18 #define __MM_RESOURCE_MANAGER_DAEMON_CONF__
22 #include "lib/mm_resource_manager.h"
24 typedef int mm_resource_manager_priority;
25 typedef mm_resource_manager_res_volume mm_resource_manager_condition_volume_a
26 [MM_RESOURCE_MANAGER_RES_TYPE_MAX]
27 [MM_RESOURCE_MANAGER_RES_TYPE_COND_MAX];
30 mm_resource_manager_res_volume max_volume[MM_RESOURCE_MANAGER_RES_TYPE_MAX];
31 mm_resource_manager_priority priority[MM_RESOURCE_MANAGER_APP_CLASS_MAX];
32 mm_resource_manager_condition_volume_a condition_volume;
33 int max_instance[MM_RESOURCE_MANAGER_RES_TYPE_MAX];
34 gboolean volume_would_be_checked[MM_RESOURCE_MANAGER_RES_TYPE_MAX];
35 } mm_resource_manager_conf_s;
37 gboolean mm_resource_manager_reload_conf(void);
38 mm_resource_manager_conf_s *mm_resource_manager_get_conf(void);
40 #endif /* __MM_RESOURCE_MANAGER_DAEMON_CONF__ */