diff options
| author | 2024-11-22 23:12:11 +0000 | |
|---|---|---|
| committer | 2024-11-22 23:12:11 +0000 | |
| commit | 7ff68ce04af569890a7aee85cf047154d0147f00 (patch) | |
| tree | 5dfea9c7bffa3e653245926a54d88b0b82d8ca5e | |
| parent | 16d3bf05384d4d456d19453668f82f3ca4711011 (diff) | |
| parent | 74befc9eaef3521ea575776e1ed2c75d49fb8b8e (diff) | |
Merge "libbinder: deprecated notice for *CString" into main
| -rw-r--r-- | libs/binder/include/binder/Parcel.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libs/binder/include/binder/Parcel.h b/libs/binder/include/binder/Parcel.h index ceab20a275..0c7366e683 100644 --- a/libs/binder/include/binder/Parcel.h +++ b/libs/binder/include/binder/Parcel.h @@ -178,7 +178,8 @@ public: LIBBINDER_EXPORTED status_t writeUint64(uint64_t val); LIBBINDER_EXPORTED status_t writeFloat(float val); LIBBINDER_EXPORTED status_t writeDouble(double val); - LIBBINDER_EXPORTED status_t writeCString(const char* str); + LIBBINDER_EXPORTED status_t writeCString(const char* str) + __attribute__((deprecated("use AIDL, writeString* instead"))); LIBBINDER_EXPORTED status_t writeString8(const String8& str); LIBBINDER_EXPORTED status_t writeString8(const char* str, size_t len); LIBBINDER_EXPORTED status_t writeString16(const String16& str); @@ -434,7 +435,8 @@ public: LIBBINDER_EXPORTED status_t readUtf8FromUtf16(std::unique_ptr<std::string>* str) const __attribute__((deprecated("use std::optional version instead"))); - LIBBINDER_EXPORTED const char* readCString() const; + LIBBINDER_EXPORTED const char* readCString() const + __attribute__((deprecated("use AIDL, use readString*"))); LIBBINDER_EXPORTED String8 readString8() const; LIBBINDER_EXPORTED status_t readString8(String8* pArg) const; LIBBINDER_EXPORTED const char* readString8Inplace(size_t* outLen) const; |