3 #ifndef lock_protocol_h
4 #define lock_protocol_h
11 enum status : status_t { OK, RETRY, RPCERR, NOENT, IOERR };
12 using lockid_t = string;
13 using xid_t = uint64_t;
14 enum rpc_numbers : proc_t {
21 class rlock_protocol {
23 enum status : status_t { OK, RPCERR };
24 enum rpc_numbers : proc_t {