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