• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2022 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 SBUF_COMMON_ADAPTER_H
17 #define SBUF_COMMON_ADAPTER_H
18 
19 #include "../wifi_common_cmd.h"
20 #include "hdf_io_service.h"
21 #include "hdf_sbuf.h"
22 
23 int32_t SendCmdSync(const uint32_t cmd, struct HdfSBuf *reqData, struct HdfSBuf *respData);
24 struct HdfIoService *GetWifiService(void);
25 struct HdfIoService *InitWifiService(const char *serviceName);
26 void ReleaseWifiService(void);
27 int OnWiFiEvents(struct HdfDevEventlistener *listener,
28     struct HdfIoService *service, uint32_t eventId, struct HdfSBuf *data);
29 
30 #endif /* end of sbuf_common_adapter.h */
31