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_VENDOR_REPORT_H 17 #define OHOS_VENDOR_REPORT_H 18 19 #include <stddef.h> 20 #include <string.h> 21 22 #include "at_data.h" 23 #include "at_modem.h" 24 #include "at_network.h" 25 #include "vendor_util.h" 26 27 struct ReportInfo CreateReportInfo(const ReqDataInfo *requestInfo, int32_t err, uint32_t type, int32_t notifyId); 28 void SetReportOps(const struct HRilReport *reportOps); 29 void OnModemReport(int32_t slotId, struct ReportInfo reportInfo, const uint8_t *response, size_t responseLen); 30 void OnCallReport(int32_t slotId, struct ReportInfo reportInfo, const uint8_t *response, size_t responseLen); 31 void OnDataReport(int32_t slotId, struct ReportInfo reportInfo, const uint8_t *response, size_t responseLen); 32 void OnSimReport(int32_t slotId, struct ReportInfo reportInfo, const uint8_t *response, size_t responseLen); 33 void OnSmsReport(int32_t slotId, struct ReportInfo reportInfo, const uint8_t *response, size_t responseLen); 34 void OnNetworkReport(int32_t slotId, struct ReportInfo reportInfo, const uint8_t *response, size_t responseLen); 35 void OnTimerCallback(HRilCallbackFun func, uint8_t *param, const struct timeval *tv); 36 void OnNotifyOps(const char *s, const char *smsPdu); 37 void OnNotifyNetWorksOps(const char *s, const char *infoStr); 38 bool OnNotifyStkOps(const char *s, const char *infoStr); 39 #endif // OHOS_VENDOR_REPORT_H 40