diff options
author | 2021-10-21 16:50:33 +0000 | |
---|---|---|
committer | 2021-10-21 16:50:33 +0000 | |
commit | 5f852b9c9bca236b01f8d59853d29fb6b6ee89b6 (patch) | |
tree | 1f5d043aa131c58b18ebbfa0e79e4dfb408c80a5 /libs/binder/RpcSession.cpp | |
parent | bc584178dacac2afb131e8a3b0de994c0643dc6d (diff) | |
parent | 51c44a96895b8c462e24984e510b09aded52297f (diff) |
Merge "libbinder: support server-specific session"
Diffstat (limited to 'libs/binder/RpcSession.cpp')
-rw-r--r-- | libs/binder/RpcSession.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/binder/RpcSession.cpp b/libs/binder/RpcSession.cpp index 9eef3e8914..137411bc6b 100644 --- a/libs/binder/RpcSession.cpp +++ b/libs/binder/RpcSession.cpp @@ -700,7 +700,8 @@ status_t RpcSession::addOutgoingConnection(std::unique_ptr<RpcTransport> rpcTran } bool RpcSession::setForServer(const wp<RpcServer>& server, const wp<EventListener>& eventListener, - const std::vector<uint8_t>& sessionId) { + const std::vector<uint8_t>& sessionId, + const sp<IBinder>& sessionSpecificRoot) { LOG_ALWAYS_FATAL_IF(mForServer != nullptr); LOG_ALWAYS_FATAL_IF(server == nullptr); LOG_ALWAYS_FATAL_IF(mEventListener != nullptr); @@ -713,6 +714,7 @@ bool RpcSession::setForServer(const wp<RpcServer>& server, const wp<EventListene mId = sessionId; mForServer = server; mEventListener = eventListener; + mSessionSpecificRootObject = sessionSpecificRoot; return true; } |