#include "rpc_dispatcher.h" #include "rpccommands_system.h" bool rpc_dispatch(rpc_istream_t *input, rpc_ostream_t *output) { if (!rpc_istream_start(input)) return false; switch (input->msgtype) { case RPCCommand_FreeMemory: return rpccommand_FreeMemory(input, output); default: return rpc_error_protocol(output, "Command unimplemented"); } }