From 2c3878ca3c8a2c770fff93afc96141ab058801b8 Mon Sep 17 00:00:00 2001 From: Kyle Repinski Date: Sun, 29 Nov 2015 08:43:49 -0600 Subject: ril: Add 'libsecril-shim'. This lib inserts itself in front of the real RIL and shims the onRequest function as a means of compatibility, bug fixing, and updating. Conflicts: system.prop Change-Id: I779a275276816a32b19d9666021662d9dc71029d --- ril/libsecril-shim/secril-shim.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 ril/libsecril-shim/secril-shim.h (limited to 'ril/libsecril-shim/secril-shim.h') diff --git a/ril/libsecril-shim/secril-shim.h b/ril/libsecril-shim/secril-shim.h new file mode 100644 index 0000000..f64d053 --- /dev/null +++ b/ril/libsecril-shim/secril-shim.h @@ -0,0 +1,27 @@ +#ifndef __SECRIL_SHIM_H__ +#define __SECRIL_SHIM_H__ + +#define LOG_TAG "secril-shim" +#define RIL_SHLIB + +#include +#include +#include +#include +#include +#include +#include + +#define RIL_LIB_PATH "/vendor/lib/libsec-ril.so" + +enum variant_type { + VARIANT_INIT, + VARIANT_MAGURO, + VARIANT_TORO, + VARIANT_TOROPLUS, + VARIANT_UNKNOWN +}; + +extern const char * requestToString(int request); + +#endif /* __SECRIL_SHIM_H__ */ -- cgit v1.1