mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-25 01:41:43 +00:00
Reverts the last 2 Rpc changes (#114)
* Revert "Fully asigns the ConnectionInfo struct (#113)" This reverts commit9a3100b221. * Revert "Passes the ConnectionInfo of the Rpc client on server callback (#112)" This reverts commit7e9754acff.
This commit is contained in:
committed by
Peter Johnson
parent
9a3100b221
commit
e952236e1a
@@ -79,7 +79,6 @@ struct RpcDefinition {
|
||||
struct RpcCallInfo {
|
||||
unsigned int rpc_id;
|
||||
unsigned int call_uid;
|
||||
ConnectionInfo conn_info;
|
||||
std::string name;
|
||||
std::string params;
|
||||
};
|
||||
@@ -225,8 +224,7 @@ constexpr double kTimeout_Indefinite = -1;
|
||||
void SetRpcServerOnStart(std::function<void()> on_start);
|
||||
void SetRpcServerOnExit(std::function<void()> on_exit);
|
||||
|
||||
typedef std::function<std::string(StringRef name, StringRef params,
|
||||
const ConnectionInfo& conn_info)>
|
||||
typedef std::function<std::string(StringRef name, StringRef params)>
|
||||
RpcCallback;
|
||||
|
||||
void CreateRpc(StringRef name, StringRef def, RpcCallback callback);
|
||||
|
||||
Reference in New Issue
Block a user