summaryrefslogtreecommitdiffstats
path: root/compat.h
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 /compat.h
parentd738d983c7d90b727ddda0f3fb3078a9334f5b6e (diff)
downloadhardware_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 'compat.h')
-rw-r--r--compat.h57
1 files changed, 0 insertions, 57 deletions
diff --git a/compat.h b/compat.h
deleted file mode 100644
index eb6fb56..0000000
--- a/compat.h
+++ /dev/null
@@ -1,57 +0,0 @@
-/**
- * This file is part of samsung-ril.
- *
- * Copyright (C) 2010-2011 Joerie de Gram <j.de.gram@gmail.com>
- * Copyright (C) 2011-2012 Paul Kocialkowski <contact@paulk.fr>
- * Copyright (C) 2012 Alexander Tarasikov <alexander.tarasikov@gmail.com>
- *
- * samsung-ril is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * samsung-ril is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with samsung-ril. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-
-#ifndef __COMPAT_H__
-#define __COMPAT_H__
-
-#include <telephony/ril.h>
-#include <utils/Log.h>
-
-#ifndef LOGE
- #define LOGE ALOGE
-#endif
-
-#ifndef LOGI
- #define LOGI ALOGI
-#endif
-
-#ifndef LOGD
- #define LOGD ALOGD
-#endif
-
-#if RIL_VERSION >= 6
- #define RIL_REQUEST_REGISTRATION_STATE RIL_REQUEST_VOICE_REGISTRATION_STATE
- #define RIL_REQUEST_GPRS_REGISTRATION_STATE RIL_REQUEST_DATA_REGISTRATION_STATE
- #define RIL_CardStatus RIL_CardStatus_v6
- #define RIL_SIM_IO RIL_SIM_IO_v6
- #define RIL_UNSOL_RESPONSE_NETWORK_STATE_CHANGED RIL_UNSOL_RESPONSE_VOICE_NETWORK_STATE_CHANGED
-#endif
-
-//set it to the maximum supported revision
-//we've not yet fully implemented version 7
-#if RIL_VERSION >= 6
- #define SAMSUNG_RIL_VERSION 6
-#else
- #define SAMSUNG_RIL_VERSION RIL_VERSION
-#endif
-
-#endif //__COMPAT_H__