1 /*
2  * Copyright (C) 2014 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 
18 #ifndef ANDROID_RIL_MSIM_H
19 #define ANDROID_RIL_MSIM_H 1
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
25 typedef enum {
26   RIL_UICC_SUBSCRIPTION_DEACTIVATE = 0,
27   RIL_UICC_SUBSCRIPTION_ACTIVATE = 1
28 } RIL_UiccSubActStatus;
29 
30 typedef enum {
31   RIL_SUBSCRIPTION_1 = 0,
32   RIL_SUBSCRIPTION_2 = 1,
33   RIL_SUBSCRIPTION_3 = 2
34 } RIL_SubscriptionType;
35 
36 typedef struct {
37   int   slot;                        /* 0, 1, ... etc. */
38   int   app_index;                   /* array subscriptor from applications[RIL_CARD_MAX_APPS] in
39                                         RIL_REQUEST_GET_SIM_STATUS */
40   RIL_SubscriptionType  sub_type;    /* Indicates subscription 1 or subscription 2 */
41   RIL_UiccSubActStatus  act_status;
42 } RIL_SelectUiccSub;
43 
44 #ifdef __cplusplus
45 }
46 #endif
47 
48 #endif /*ANDROID_RIL_MSIM_H*/
49