summaryrefslogtreecommitdiff
path: root/libs/binder/BufferedTextOutput.cpp
diff options
context:
space:
mode:
author Steven Moreland <smoreland@google.com> 2018-08-20 19:47:00 -0700
committer Steven Moreland <smoreland@google.com> 2018-08-30 01:49:40 -0700
commit2e87adc8e708e24737a235ed8585602eb6e15a5c (patch)
treef8a8ebbd16fc40ea041de5fc12de3113b0a6ac34 /libs/binder/BufferedTextOutput.cpp
parent92fdc2c2d7aa0c8407c2ab134ba3b679028501a8 (diff)
Initial C library for libbinder.
This creates a simple wrapper around libbinder with a stable C ABI. It also embeds the concept of an IBinder and IBinder transactions into the ABI so that parts of their transactions can be changed and considered implementation details of libbinder. With this basic class, you can create a service, use it with primitive data types, but it does not yet suppport the entire range of binder objects. Follow-up items to handle/things still to consider - b/112664205: make aidl-gen produce interfaces that use these (and think about interoperation with existing interfaces). - using onServiceConnected/onServiceDisconnected in the NDK - if libbinder/libbinder_ndk classes use the same descriptor, there will be problems in the same process (libbinder{_ndk} assumes binder class) - sometimes getService takes 1s since there is a race for it getting registered - add generic class which allows for easy implementation of a class like IFoo in this test. - Parcel for additional types (and additional APIs, like data available) - addition of APIs like AIBinder_ping/linkToDeath which all binders have - embed Status into this API layer (so EX_HAS_REPLY_HEADER is handled) - make remoteBinder/localBinder is const (and therefore isRemote) - okay with associateClass or should just use interfaceDescriptor - potentially changing out incStrong/decStrong - adding @file/@addtogroup to comments Bug: 111445392 Test: ndk/runtests.sh Change-Id: Ifbca8f0fdf70a3213fe0d94320fc31eeb62408c4
Diffstat (limited to 'libs/binder/BufferedTextOutput.cpp')
0 files changed, 0 insertions, 0 deletions