Revise the coding rule and dlog of resource handle
[platform/core/multimedia/mm-resource-manager.git] / src / daemon / mm_resource_manager_daemon_conf.h
1 /*
2  * Copyright (c) 2017 Samsung Electronics Co., Ltd All Rights Reserved
3  *
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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16
17 #ifndef __MM_RESOURCE_MANAGER_DAEMON_CONF__
18 #define __MM_RESOURCE_MANAGER_DAEMON_CONF__
19
20 #include <glib.h>
21
22 #include "lib/mm_resource_manager.h"
23
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];
28
29 typedef struct {
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;
36
37 gboolean mm_resource_manager_reload_conf(void);
38 mm_resource_manager_conf_s *mm_resource_manager_get_conf(void);
39
40 #endif /* __MM_RESOURCE_MANAGER_DAEMON_CONF__ */