blob: 39bd5c5a3beba3b9800bafa7d0d478bfb3ff48d6 [file] [log] [blame]
Amit Mahajancd77a5b2016-08-25 11:19:21 -07001/*
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
23namespace radio {
24
25void registerService(RIL_RadioFunctions *callbacks, android::CommandInfo *commands);
Sanket Padawef220dc52017-01-02 23:46:00 -080026int getIccCardStatusResponse(android::Parcel &p, int slotId, int requestNumber, int responseType,
Amit Mahajancd77a5b2016-08-25 11:19:21 -070027 int token, RIL_Errno e, void *response, size_t responselen);
Sanket Padawef220dc52017-01-02 23:46:00 -080028int supplyIccPinForAppResponse(android::Parcel &p, int slotId, int requestNumber,
29 int responseType, int serial, RIL_Errno e, void *response, size_t responselen);
30int supplyIccPukForAppResponse(android::Parcel &p, int slotId, int requestNumber,
31 int responseType, int serial, RIL_Errno e, void *response, size_t responselen);
32int supplyIccPin2ForAppResponse(android::Parcel &p, int slotId, int requestNumber,
33 int responseType, int serial, RIL_Errno e, void *response, size_t responselen);
34int supplyIccPuk2ForAppResponse(android::Parcel &p, int slotId, int requestNumber,
35 int responseType, int serial, RIL_Errno e, void *response, size_t responselen);
36int changeIccPinForAppResponse(android::Parcel &p, int slotId, int requestNumber,
37 int responseType, int serial, RIL_Errno e, void *response, size_t responselen);
38int changeIccPin2ForAppResponse(android::Parcel &p, int slotId, int requestNumber,
39 int responseType, int serial, RIL_Errno e, void *response, size_t responselen);
40int supplyNetworkDepersonalizationResponse(android::Parcel &p, int slotId, int requestNumber,
41 int responseType, int serial, RIL_Errno e, void *response, size_t responselen);
42int getCurrentCallsResponse(android::Parcel &p, int slotId, int requestNumber,
43 int responseType, int serial, RIL_Errno e, void *response, size_t responselen);
44int dialResponse(android::Parcel &p, int slotId, int requestNumber,
45 int responseType, int serial, RIL_Errno e, void *response, size_t responselen);
46void acknowledgeRequest(int slotId, int serial);
Amit Mahajancd77a5b2016-08-25 11:19:21 -070047void radioStateChanged(int slotId, int indicationType, RIL_RadioState radioState);
Sanket Padawef220dc52017-01-02 23:46:00 -080048} // namespace radio
Amit Mahajancd77a5b2016-08-25 11:19:21 -070049
50#endif // RIL_SERVICE_H