xref: /aosp_15_r20/hardware/ril/include/telephony/ril_msim.h (revision 062a843b36e31144e02d312b6b2de34642e6750e)
1*062a843bSAndroid Build Coastguard Worker /*
2*062a843bSAndroid Build Coastguard Worker  * Copyright (C) 2014 The Android Open Source Project
3*062a843bSAndroid Build Coastguard Worker  *
4*062a843bSAndroid Build Coastguard Worker  * Licensed under the Apache License, Version 2.0 (the "License");
5*062a843bSAndroid Build Coastguard Worker  * you may not use this file except in compliance with the License.
6*062a843bSAndroid Build Coastguard Worker  * You may obtain a copy of the License at
7*062a843bSAndroid Build Coastguard Worker  *
8*062a843bSAndroid Build Coastguard Worker  *      http://www.apache.org/licenses/LICENSE-2.0
9*062a843bSAndroid Build Coastguard Worker  *
10*062a843bSAndroid Build Coastguard Worker  * Unless required by applicable law or agreed to in writing, software
11*062a843bSAndroid Build Coastguard Worker  * distributed under the License is distributed on an "AS IS" BASIS,
12*062a843bSAndroid Build Coastguard Worker  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13*062a843bSAndroid Build Coastguard Worker  * See the License for the specific language governing permissions and
14*062a843bSAndroid Build Coastguard Worker  * limitations under the License.
15*062a843bSAndroid Build Coastguard Worker  */
16*062a843bSAndroid Build Coastguard Worker 
17*062a843bSAndroid Build Coastguard Worker 
18*062a843bSAndroid Build Coastguard Worker #ifndef ANDROID_RIL_MSIM_H
19*062a843bSAndroid Build Coastguard Worker #define ANDROID_RIL_MSIM_H 1
20*062a843bSAndroid Build Coastguard Worker 
21*062a843bSAndroid Build Coastguard Worker #ifdef __cplusplus
22*062a843bSAndroid Build Coastguard Worker extern "C" {
23*062a843bSAndroid Build Coastguard Worker #endif
24*062a843bSAndroid Build Coastguard Worker 
25*062a843bSAndroid Build Coastguard Worker typedef enum {
26*062a843bSAndroid Build Coastguard Worker   RIL_UICC_SUBSCRIPTION_DEACTIVATE = 0,
27*062a843bSAndroid Build Coastguard Worker   RIL_UICC_SUBSCRIPTION_ACTIVATE = 1
28*062a843bSAndroid Build Coastguard Worker } RIL_UiccSubActStatus;
29*062a843bSAndroid Build Coastguard Worker 
30*062a843bSAndroid Build Coastguard Worker typedef enum {
31*062a843bSAndroid Build Coastguard Worker   RIL_SUBSCRIPTION_1 = 0,
32*062a843bSAndroid Build Coastguard Worker   RIL_SUBSCRIPTION_2 = 1,
33*062a843bSAndroid Build Coastguard Worker   RIL_SUBSCRIPTION_3 = 2
34*062a843bSAndroid Build Coastguard Worker } RIL_SubscriptionType;
35*062a843bSAndroid Build Coastguard Worker 
36*062a843bSAndroid Build Coastguard Worker typedef struct {
37*062a843bSAndroid Build Coastguard Worker   int   slot;                        /* 0, 1, ... etc. */
38*062a843bSAndroid Build Coastguard Worker   int   app_index;                   /* array subscriptor from applications[RIL_CARD_MAX_APPS] in
39*062a843bSAndroid Build Coastguard Worker                                         RIL_REQUEST_GET_SIM_STATUS */
40*062a843bSAndroid Build Coastguard Worker   RIL_SubscriptionType  sub_type;    /* Indicates subscription 1 or subscription 2 */
41*062a843bSAndroid Build Coastguard Worker   RIL_UiccSubActStatus  act_status;
42*062a843bSAndroid Build Coastguard Worker } RIL_SelectUiccSub;
43*062a843bSAndroid Build Coastguard Worker 
44*062a843bSAndroid Build Coastguard Worker #ifdef __cplusplus
45*062a843bSAndroid Build Coastguard Worker }
46*062a843bSAndroid Build Coastguard Worker #endif
47*062a843bSAndroid Build Coastguard Worker 
48*062a843bSAndroid Build Coastguard Worker #endif /*ANDROID_RIL_MSIM_H*/
49