Amit Mahajan | cd77a5b | 2016-08-25 11:19:21 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2016 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | #ifndef RIL_SERVICE_H |
| 18 | #define RIL_SERVICE_H |
| 19 | |
| 20 | #include <telephony/ril.h> |
| 21 | #include <ril_internal.h> |
| 22 | |
| 23 | namespace radio { |
| 24 | |
| 25 | void registerService(RIL_RadioFunctions *callbacks, android::CommandInfo *commands); |
Sanket Padawe | f220dc5 | 2017-01-02 23:46:00 -0800 | [diff] [blame^] | 26 | int getIccCardStatusResponse(android::Parcel &p, int slotId, int requestNumber, int responseType, |
Amit Mahajan | cd77a5b | 2016-08-25 11:19:21 -0700 | [diff] [blame] | 27 | int token, RIL_Errno e, void *response, size_t responselen); |
Sanket Padawe | f220dc5 | 2017-01-02 23:46:00 -0800 | [diff] [blame^] | 28 | int supplyIccPinForAppResponse(android::Parcel &p, int slotId, int requestNumber, |
| 29 | int responseType, int serial, RIL_Errno e, void *response, size_t responselen); |
| 30 | int supplyIccPukForAppResponse(android::Parcel &p, int slotId, int requestNumber, |
| 31 | int responseType, int serial, RIL_Errno e, void *response, size_t responselen); |
| 32 | int supplyIccPin2ForAppResponse(android::Parcel &p, int slotId, int requestNumber, |
| 33 | int responseType, int serial, RIL_Errno e, void *response, size_t responselen); |
| 34 | int supplyIccPuk2ForAppResponse(android::Parcel &p, int slotId, int requestNumber, |
| 35 | int responseType, int serial, RIL_Errno e, void *response, size_t responselen); |
| 36 | int changeIccPinForAppResponse(android::Parcel &p, int slotId, int requestNumber, |
| 37 | int responseType, int serial, RIL_Errno e, void *response, size_t responselen); |
| 38 | int changeIccPin2ForAppResponse(android::Parcel &p, int slotId, int requestNumber, |
| 39 | int responseType, int serial, RIL_Errno e, void *response, size_t responselen); |
| 40 | int supplyNetworkDepersonalizationResponse(android::Parcel &p, int slotId, int requestNumber, |
| 41 | int responseType, int serial, RIL_Errno e, void *response, size_t responselen); |
| 42 | int getCurrentCallsResponse(android::Parcel &p, int slotId, int requestNumber, |
| 43 | int responseType, int serial, RIL_Errno e, void *response, size_t responselen); |
| 44 | int dialResponse(android::Parcel &p, int slotId, int requestNumber, |
| 45 | int responseType, int serial, RIL_Errno e, void *response, size_t responselen); |
| 46 | void acknowledgeRequest(int slotId, int serial); |
Amit Mahajan | cd77a5b | 2016-08-25 11:19:21 -0700 | [diff] [blame] | 47 | void radioStateChanged(int slotId, int indicationType, RIL_RadioState radioState); |
Sanket Padawe | f220dc5 | 2017-01-02 23:46:00 -0800 | [diff] [blame^] | 48 | } // namespace radio |
Amit Mahajan | cd77a5b | 2016-08-25 11:19:21 -0700 | [diff] [blame] | 49 | |
| 50 | #endif // RIL_SERVICE_H |