diff options
author | Paul Kocialkowski <contact@paulk.fr> | 2013-02-09 10:44:48 +0100 |
---|---|---|
committer | Paul Kocialkowski <contact@paulk.fr> | 2013-02-09 10:44:48 +0100 |
commit | f53bf346ed8a843414a339646b9362d4015bfc25 (patch) | |
tree | 08609f947286659837ab70eb4c6c18fd60d70399 /net.c | |
parent | d738d983c7d90b727ddda0f3fb3078a9334f5b6e (diff) | |
download | hardware_replicant_libsamsung-ril-f53bf346ed8a843414a339646b9362d4015bfc25.tar.gz hardware_replicant_libsamsung-ril-f53bf346ed8a843414a339646b9362d4015bfc25.tar.bz2 hardware_replicant_libsamsung-ril-f53bf346ed8a843414a339646b9362d4015bfc25.zip |
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.c | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -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: |