diff options
author | ma34s <ma34s.sss@gmail.com> | 2014-03-23 14:54:36 +0900 |
---|---|---|
committer | Rashed Abdel-Tawab <rashed@linux.com> | 2015-04-30 19:45:27 -0400 |
commit | 85b4043ca6f566521dd7953658835b1bb835f27b (patch) | |
tree | f6dcc0909946a790b1cb0c28c0a60ceb31fb90c5 | |
parent | f22a457adc407a64abf1bfcf9846aaa6136479d9 (diff) | |
download | android_frameworks_native-85b4043ca6f566521dd7953658835b1bb835f27b.tar.gz android_frameworks_native-85b4043ca6f566521dd7953658835b1bb835f27b.tar.bz2 android_frameworks_native-85b4043ca6f566521dd7953658835b1bb835f27b.zip |
binder: Add readuInt64() symbol for LG RIL compatibility
* LG RIL libs need readuInt64() (I have no idea why, blame LG)
* Instead of having to use liblgderp.so we can just set
NEEDS_LGE_RIL_SYMBOLS to incorporate the symbols into the system
* Original commits:
- http://review.cyanogenmod.org/#/c/61459/
- http://review.cyanogenmod.org/#/c/61460/
Change-Id: I9069dbde7a5800c538b135963b4cf7365a1b3f80
-rw-r--r-- | include/binder/Parcel.h | 3 | ||||
-rw-r--r-- | libs/binder/Parcel.cpp | 9 |
2 files changed, 12 insertions, 0 deletions
diff --git a/include/binder/Parcel.h b/include/binder/Parcel.h index 6a69761cf..6e098bf43 100644 --- a/include/binder/Parcel.h +++ b/include/binder/Parcel.h @@ -154,6 +154,9 @@ public: status_t readInt32(int32_t *pArg) const; int64_t readInt64() const; status_t readInt64(int64_t *pArg) const; +#ifdef NEEDS_LGE_RIL_SYMBOLS + status_t readuInt64(uint64_t *pArg) const; +#endif float readFloat() const; status_t readFloat(float *pArg) const; double readDouble() const; diff --git a/libs/binder/Parcel.cpp b/libs/binder/Parcel.cpp index e7589b1a5..2805cc9a4 100644 --- a/libs/binder/Parcel.cpp +++ b/libs/binder/Parcel.cpp @@ -1045,6 +1045,15 @@ int64_t Parcel::readInt64() const return readAligned<int64_t>(); } + +#ifdef NEEDS_LGE_RIL_SYMBOLS +status_t Parcel::readuInt64(uint64_t *pArg) const +{ + return readAligned(pArg); +} +#endif + + status_t Parcel::readPointer(uintptr_t *pArg) const { status_t ret; |