Apply device internal API for handling poweroff
[platform/core/telephony/tel-plugin-manager.git] / include / manager_modem.h
1 /*
2  * tel-plugin-manager
3  *
4  * Copyright (c) 2014 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact: Suresh Kumar N <suresh.n@samsung.com>
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  */
20
21 #ifndef __MANAGER_MODEM_H__
22 #define __MANAGER_MODEM_H__
23
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27
28 #include <gio/gio.h>
29
30 struct manager_modem_private_info {
31         CoreObject *co_modem;
32         enum modem_state modem_status;
33         int poweroff_id;
34 };
35
36 gboolean manager_modem_initialize_private_info(ModemBoard *mb);
37 void manager_modem_clear_private_info(ModemBoard *mb);
38
39 enum tcore_manager_return manager_modem_process_request(Server *server,
40                                                         UserRequest *ur);
41 enum tcore_manager_return manager_modem_process_notification(Manager *manager,
42                                                              CoreObject *source, enum tcore_notification_command command,
43                                                              unsigned int data_len, void *data);
44
45 #ifdef __cplusplus
46 }
47 #endif
48
49 #endif /* __MANAGER_MODEM_H__ */