1 /*
2  * Copyright (c) 2021 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef POWERMGR_POWER_MANAGE_INTERFACE_H
17 #define POWERMGR_POWER_MANAGE_INTERFACE_H
18 
19 #include <iproxy_client.h>
20 #include <iproxy_server.h>
21 #include <iunknown.h>
22 
23 #include "power_manage_intf_define.h"
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif // __cplusplus
28 
29 typedef enum {
30     POWERMANAGE_FUNCID_ACQUIRERUNNINGLOCK = 0,
31     POWERMANAGE_FUNCID_RELEASERUNNINGLOCK,
32     POWERMANAGE_FUNCID_ISANYRUNNINGLOCKHOLDING,
33     POWERMANAGE_FUNCID_SUSPEND,
34     POWERMANAGE_FUNCID_WAKEUP,
35     POWERMANAGE_FUNCID_BUTT,
36 } PowerManageFuncId;
37 
38 typedef struct {
39     INHERIT_SERVER_IPROXY;
40     INHERIT_POWERMANAGE_INTERFACE;
41 } PowerManageInterface;
42 
43 typedef struct {
44     INHERIT_CLIENT_IPROXY;
45     INHERIT_POWERMANAGE_INTERFACE;
46 } PowerManageProxyInterface;
47 
48 #ifdef __cplusplus
49 }
50 #endif // __cplusplus
51 #endif // POWERMGR_POWER_MANAGE_INTERFACE_H
52