Removed tabs and unneeded constructor
[invirt/third/libt4.git] / lock_protocol.h
1 // lock protocol
2
3 #ifndef lock_protocol_h
4 #define lock_protocol_h
5
6 #include "types.h"
7 #include "rpc/rpc.h"
8
9 class lock_protocol {
10     public:
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 {
15             acquire = 0x7001,
16             release,
17             stat,
18         };
19 };
20
21 class rlock_protocol {
22     public:
23         enum status : status_t { OK, RPCERR };
24         enum rpc_numbers : proc_t {
25             revoke = 0x8001,
26             retry,
27         };
28 };
29 #endif