os/kernel/rpc.h

19 lines
286 B
C
Raw Normal View History

#ifndef RPC_H
#define RPC_H
typedef struct RPCFuncInfo {
char name[32];
2020-07-20 09:51:30 -05:00
void* (*code)(void*);
} RPCFuncInfo;
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-20 09:51:30 -05:00
void rpc_init_struct(ThreadRPCStruct* info);
#endif