1 /*
2  * Copyright (c) 2020-2021 Huawei Device Co., Ltd.
3  *
4  * HDF is dual licensed: you can use it either under the terms of
5  * the GPL, or the BSD license, at your option.
6  * See the LICENSE file in the root of this repository for complete details.
7  */
8 
9 
10 #ifndef POWER_STATE_TOKEN_CLNT_H
11 #define POWER_STATE_TOKEN_CLNT_H
12 
13 #include "hdf_slist.h"
14 #include "power_state_token_if.h"
15 
16 struct PowerStateTokenClnt {
17     struct HdfSListNode entry;
18     HdfPsmState powerState;
19     struct IPowerStateToken *tokenIf;
20 };
21 
22 struct PowerStateTokenClnt *PowerStateTokenClntNewInstance(struct IPowerStateToken *tokenIf);
23 void PowerStateTokenClntFreeInstance(struct PowerStateTokenClnt *tokenClnt);
24 
25 #endif /* POWER_STATE_TOKEN_CLNT_H */