summaryrefslogtreecommitdiffstats
path: root/net.c
diff options
context:
space:
mode:
authorPaul Kocialkowski <contact@paulk.fr>2013-02-09 10:44:48 +0100
committerPaul Kocialkowski <contact@paulk.fr>2013-02-09 10:44:48 +0100
commitf53bf346ed8a843414a339646b9362d4015bfc25 (patch)
tree08609f947286659837ab70eb4c6c18fd60d70399 /net.c
parentd738d983c7d90b727ddda0f3fb3078a9334f5b6e (diff)
downloadhardware_ril_samsung-ril-f53bf346ed8a843414a339646b9362d4015bfc25.zip
hardware_ril_samsung-ril-f53bf346ed8a843414a339646b9362d4015bfc25.tar.gz
hardware_ril_samsung-ril-f53bf346ed8a843414a339646b9362d4015bfc25.tar.bz2
compat: Removed separate header: apply per-version changes in the code
This is especially relevant when the elements of the structures changed or need a different handling in the code: that way, we don't confuse which structure is declared. Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to 'net.c')
-rw-r--r--net.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/net.c b/net.c
index c93ac9b..4e4cdf2 100644
--- a/net.c
+++ b/net.c
@@ -416,7 +416,11 @@ void ipc_net_current_plmn(struct ipc_message_info *message)
LOGD("Updating Operator data in background");
} else {
ril_tokens_net_set_data_waiting();
+#if RIL_VERSION >= 6
+ ril_request_unsolicited(RIL_UNSOL_RESPONSE_VOICE_NETWORK_STATE_CHANGED, NULL, 0);
+#else
ril_request_unsolicited(RIL_UNSOL_RESPONSE_NETWORK_STATE_CHANGED, NULL, 0);
+#endif
}
}
break;
@@ -472,7 +476,11 @@ void ipc_net_current_plmn(struct ipc_message_info *message)
* return modem UNSOL data if available
* request IPC_NET_REGIST if no data is there
*/
+#if RIL_VERSION >= 6
+void ril_request_voice_registration_state(RIL_Token t)
+#else
void ril_request_registration_state(RIL_Token t)
+#endif
{
struct ipc_net_regist_get regist_req;
char *response[4];
@@ -524,7 +532,11 @@ void ril_request_registration_state(RIL_Token t)
* return modem UNSOL data if available
* request IPC_NET_REGIST if no data is there
*/
+#if RIL_VERSION >= 6
+void ril_request_data_registration_state(RIL_Token t)
+#else
void ril_request_gprs_registration_state(RIL_Token t)
+#endif
{
struct ipc_net_regist_get regist_req;
char *response[4];
@@ -590,7 +602,11 @@ void ipc_net_regist_unsol(struct ipc_message_info *message)
LOGD("Updating NetRegist data in background");
} else {
ril_tokens_net_set_data_waiting();
+#if RIL_VERSION >= 6
+ ril_request_unsolicited(RIL_UNSOL_RESPONSE_VOICE_NETWORK_STATE_CHANGED, NULL, 0);
+#else
ril_request_unsolicited(RIL_UNSOL_RESPONSE_NETWORK_STATE_CHANGED, NULL, 0);
+#endif
}
break;
@@ -607,7 +623,11 @@ void ipc_net_regist_unsol(struct ipc_message_info *message)
LOGD("Updating GPRSNetRegist data in background");
} else {
ril_tokens_net_set_data_waiting();
+#if RIL_VERSION >= 6
+ ril_request_unsolicited(RIL_UNSOL_RESPONSE_VOICE_NETWORK_STATE_CHANGED, NULL, 0);
+#else
ril_request_unsolicited(RIL_UNSOL_RESPONSE_NETWORK_STATE_CHANGED, NULL, 0);
+#endif
}
break;
default: