projects
/
invirt/third/libt4.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Build on wheezy, and presumably precise
[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.h"
7
8
class lock_protocol {
9
public:
10
enum xxstatus { OK, RETRY, RPCERR, NOENT, IOERR };
11
typedef int status;
12
typedef unsigned long long lockid_t;
13
typedef unsigned long long xid_t;
14
enum rpc_numbers {
15
acquire = 0x7001,
16
release,
17
stat
18
};
19
};
20
21
class rlock_protocol {
22
public:
23
enum xxstatus { OK, RPCERR };
24
typedef int status;
25
enum rpc_numbers {
26
revoke = 0x8001,
27
retry = 0x8002
28
};
29
};
30
#endif