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_DBUS__
18 #define __MM_RESOURCE_MANAGER_DAEMON_DBUS__
20 #include "common/MMResourceManager.h"
21 #include "common/mm_resource_manager_utils.h"
22 #include "daemon/mm_resource_manager_daemon_conf.h"
26 int _mmrm_dmn_dbus_init(void);
27 int _mmrm_dmn_dbus_deinit(void);
28 void _mmrm_dmn_notify_fork_done(void);
29 int _mmrm_dmn_dbus_get_conf(mm_resource_manager_res_volume **max_volume,
30 mm_resource_manager_condition_volume_a **cond_volume, int **max_instance);
31 int _mmrm_dmn_dbus_create(mm_resource_manager_app_class_e app_class,
32 mm_resource_manager_id *id);
33 int _mmrm_dmn_dbus_destroy(mm_resource_manager_id id);
34 int _mmrm_dmn_dbus_commit(mm_resource_manager_id id, GVariantIter *release,
35 GVariantIter *acquire, gboolean **is_acquired);
36 int _mmrm_dmn_dbus_release_callback(mm_resource_manager_id id,
37 mm_resource_manager_res_type_e type,
38 mm_resource_manager_res_volume volume);
39 int _mmrm_dmn_dbus_status_callback(mm_resource_manager_status_e status);
41 #endif /* __MM_RESOURCE_MANAGER_DAEMON_DBUS__ */