2020-07-12 14:30:16 -05:00
|
|
|
#ifndef RPC_H
|
|
|
|
#define RPC_H
|
|
|
|
|
|
|
|
typedef struct RPCFuncInfo {
|
|
|
|
char name[32];
|
2020-07-20 09:51:30 -05:00
|
|
|
void* (*code)(void*);
|
2020-07-12 14:30:16 -05:00
|
|
|
} RPCFuncInfo;
|
|
|
|
|
2020-07-20 10:07:46 -05:00
|
|
|
typedef struct ThreadRPCStruct {
|
2020-07-20 09:51:30 -05:00
|
|
|
RPCFuncInfo funcs[32];
|
2020-07-22 07:33:44 -05:00
|
|
|
int num_funcs;
|
2020-07-20 09:51:30 -05:00
|
|
|
void* rpc_response;
|
|
|
|
} ThreadRPCStruct;
|
2020-07-12 14:30:16 -05:00
|
|
|
|
|
|
|
|
2020-07-20 09:51:30 -05:00
|
|
|
void rpc_init_struct(ThreadRPCStruct* info);
|
2020-07-12 14:30:16 -05:00
|
|
|
|
|
|
|
#endif
|