• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 OHOS_HRIL_HDF_H
17 #define OHOS_HRIL_HDF_H
18 
19 #include <dlfcn.h>
20 #include <memory.h>
21 #include <string.h>
22 #include <unistd.h>
23 
24 #include "hdf_base.h"
25 #include "hdf_device_desc.h"
26 #include "hdf_load_hdi.h"
27 #include "hdf_remote_service.h"
28 
29 #include "hril.h"
30 
31 static void *g_dlHandle = NULL;
32 
33 extern int32_t DispatchRequest(int32_t cmd, struct HdfSBuf *data);
34 extern void HRilRegOps(const HRilOps *g_hrilOps);
35 
36 extern void OnCallReport(
37     int32_t slotId, const struct ReportInfo reportInfo, const uint8_t *response, size_t responseLen);
38 extern void OnDataReport(
39     int32_t slotId, const struct ReportInfo reportInfo, const uint8_t *response, size_t responseLen);
40 extern void OnModemReport(
41     int32_t slotId, const struct ReportInfo reportInfo, const uint8_t *response, size_t responseLen);
42 extern void OnNetworkReport(
43     int32_t slotId, const struct ReportInfo reportInfo, const uint8_t *response, size_t responseLen);
44 extern void OnSimReport(
45     int32_t slotId, const struct ReportInfo reportInfo, const uint8_t *response, size_t responseLen);
46 extern void OnSmsReport(
47     int32_t slotId, const struct ReportInfo reportInfo, const uint8_t *response, size_t responseLen);
48 extern void OnTimerCallback(HRilCallbackFun func, uint8_t *param, const struct timeval *tv);
49 #endif // OHOS_RIL_ADAPTER_RIL_INIT_H
50