• 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 <stdint.h>
20 #include <string.h>
21 #include <sys/time.h>
22 
23 #include "hril.h"
24 #include "hril_public_struct.h"
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 extern void HRilInit(void);
29 extern void HRilRegOps(const HRilOps *g_hrilOps);
30 void InitRilAdapter(void);
31 void ReleaseRilAdapter(void);
32 extern void OnCallReport(
33     int32_t slotId, const struct ReportInfo reportInfo, const uint8_t *response, size_t responseLen);
34 extern void OnDataReport(
35     int32_t slotId, const struct ReportInfo reportInfo, const uint8_t *response, size_t responseLen);
36 extern void OnModemReport(
37     int32_t slotId, const struct ReportInfo reportInfo, const uint8_t *response, size_t responseLen);
38 extern void OnNetworkReport(
39     int32_t slotId, const struct ReportInfo reportInfo, const uint8_t *response, size_t responseLen);
40 extern void OnSimReport(
41     int32_t slotId, const struct ReportInfo reportInfo, const uint8_t *response, size_t responseLen);
42 extern void OnSmsReport(
43     int32_t slotId, const struct ReportInfo reportInfo, const uint8_t *response, size_t responseLen);
44 extern void OnTimerCallback(HRilCallbackFun func, uint8_t *param, const struct timeval *tv);
45 #ifdef __cplusplus
46 }
47 #endif
48 #endif // OHOS_RIL_ADAPTER_RIL_INIT_H
49 
50