summaryrefslogtreecommitdiffstats
path: root/include/telephony/ril.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/telephony/ril.h')
-rw-r--r--include/telephony/ril.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/telephony/ril.h b/include/telephony/ril.h
index 72190e3..99d932c 100644
--- a/include/telephony/ril.h
+++ b/include/telephony/ril.h
@@ -50,7 +50,11 @@ extern "C" {
#define SIM_COUNT 1
#endif
+#ifdef USE_RIL_VERSION_10
+#define RIL_VERSION 10
+#else
#define RIL_VERSION 11 /* Current version */
+#endif
#define RIL_VERSION_MIN 6 /* Minimum RIL_VERSION supported */
#define CDMA_ALPHA_INFO_BUFFER_LENGTH 64
@@ -386,6 +390,7 @@ typedef struct {
via PCO(Protocol Configuration Option) for IMS client. */
} RIL_Data_Call_Response_v9;
+#if (RIL_VERSION == 11)
typedef struct {
int status; /* A RIL_DataCallFailCause, 0 which is PDP_FAIL_NONE if no error */
int suggestedRetryTime; /* If status != 0, this fields indicates the suggested retry
@@ -421,6 +426,7 @@ typedef struct {
Value <= 0 means network has either not sent a value or
sent an invalid value */
} RIL_Data_Call_Response_v11;
+#endif
typedef enum {
RADIO_TECH_3GPP = 1, /* 3GPP Technologies - GSM, WCDMA */