Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 871bf37a authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "RPC binder: Add comment to RunRpcServerWithFactory" am: 074b68f4 am: 9f9879f5

Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1885488

Change-Id: I612d5964a8a3c90b3e3cdeb89f5c5afcffe2037d
parents f0938a0e 9f9879f5
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -32,9 +32,11 @@ bool RunRpcServer(AIBinder* service, unsigned int port);
bool RunRpcServerCallback(AIBinder* service, unsigned int port, void (*readyCallback)(void* param),
                          void* param);

// Starts an RPC server on a given port and a given root IBinder object.
// This function sets up the server, calls readyCallback with a given param, and
// then joins before returning.
// Starts an RPC server on a given port and a given root IBinder factory.
// RunRpcServerWithFactory acts like RunRpcServerCallback, but instead of
// assigning single root IBinder object to all connections, factory is called
// whenever a client connects, making it possible to assign unique IBinder
// object to each client.
bool RunRpcServerWithFactory(AIBinder* (*factory)(unsigned int cid, void* context),
                          void* factoryContext, unsigned int port);