#pragma once #include "rpc.h" #include "paatti.pb.h" // This is an X-macro for the rpc commands. // Each entry takes the name of the command. #define RPCCOMMANDS_XMACRO \ X(Ping) \ X(FreeMemory) \ X(ThreadStatus) // Define the function prototypes based on the X-macro. #define X(name) void rpc_ ## name(rpc_t *rpc); RPCCOMMANDS_XMACRO #undef X