111fccf17Sopenharmony_ci/* 211fccf17Sopenharmony_ci * Copyright (C) 2021 Huawei Device Co., Ltd. 311fccf17Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 411fccf17Sopenharmony_ci * you may not use this file except in compliance with the License. 511fccf17Sopenharmony_ci * You may obtain a copy of the License at 611fccf17Sopenharmony_ci * 711fccf17Sopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 811fccf17Sopenharmony_ci * 911fccf17Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software 1011fccf17Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 1111fccf17Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1211fccf17Sopenharmony_ci * See the License for the specific language governing permissions and 1311fccf17Sopenharmony_ci * limitations under the License. 1411fccf17Sopenharmony_ci */ 1511fccf17Sopenharmony_ci 1611fccf17Sopenharmony_ci#ifndef OHOS_RIL_PUBLIC_STRUCT_H 1711fccf17Sopenharmony_ci#define OHOS_RIL_PUBLIC_STRUCT_H 1811fccf17Sopenharmony_ci 1911fccf17Sopenharmony_ci#include <stdint.h> 2011fccf17Sopenharmony_ci 2111fccf17Sopenharmony_ci#include "hril_enum.h" 2211fccf17Sopenharmony_ci 2311fccf17Sopenharmony_citypedef struct ReqDataInfo { 2411fccf17Sopenharmony_ci int32_t serial; 2511fccf17Sopenharmony_ci int32_t request; 2611fccf17Sopenharmony_ci HRilSimSlotId slotId; 2711fccf17Sopenharmony_ci} ReqDataInfo; 2811fccf17Sopenharmony_ci 2911fccf17Sopenharmony_citypedef struct ModemReportErrorInfo { 3011fccf17Sopenharmony_ci int32_t errorNo; 3111fccf17Sopenharmony_ci ReportErrorType errType; 3211fccf17Sopenharmony_ci} ModemReportErrorInfo; 3311fccf17Sopenharmony_ci 3411fccf17Sopenharmony_citypedef struct ReportInfo { 3511fccf17Sopenharmony_ci ReqDataInfo *requestInfo; 3611fccf17Sopenharmony_ci int32_t notifyId; 3711fccf17Sopenharmony_ci ReportType type; 3811fccf17Sopenharmony_ci HRilErrNumber error; 3911fccf17Sopenharmony_ci ModemReportErrorInfo modemErrInfo; 4011fccf17Sopenharmony_ci HRilAckTypes ack; 4111fccf17Sopenharmony_ci} ReportInfo; 4211fccf17Sopenharmony_ci#endif // OHOS_RIL_PUBLIC_STRUCT_H 43