projects
/
invirt/third/libt4.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
61f09986e6ef2ebdefa82e18fd52e3c316eb275f
[invirt/third/libt4.git]
/
lock_protocol.h
1
// lock protocol
2
3
#ifndef lock_protocol_h
4
#define lock_protocol_h
5
6
#include "rpc/rpc.h"
7
#include <string>
8
9
class lock_protocol {
10
public:
11
enum xxstatus { OK, RETRY, RPCERR, NOENT, IOERR };
12
typedef int status;
13
typedef std::string lockid_t;
14
typedef unsigned long long xid_t;
15
enum rpc_numbers {
16
acquire = 0x7001,
17
release,
18
stat
19
};
20
};
21
22
class rlock_protocol {
23
public:
24
enum xxstatus { OK, RPCERR };
25
typedef int status;
26
enum rpc_numbers {
27
revoke = 0x8001,
28
retry = 0x8002
29
};
30
};
31
#endif