1/*
2 * Copyright (c) 2011, ETH Zurich.
3 * All rights reserved.
4 *
5 * This file is distributed under the terms in the attached LICENSE file.
6 * If you do not find this file, copies can be found by writing to:
7 * ETH Zurich D-INFK, Universitaetstrasse 6, CH-8092 Zurich. Attn: Systems Group.
8 */
9
10/* Lock server RPC interface. */
11interface lock "Lock server (lox) interface" {
12    typedef iref lockhandle; // lock handle
13
14    rpc create(out lockhandle lockhandle, out errval ret);
15    rpc acquire(in lockhandle lockhandle, out errval ret);
16    rpc tryacquire(in lockhandle lockhandle, out bool locked, out errval ret);
17    rpc release(in lockhandle lockhandle);
18    rpc delete(in lockhandle lockhandle);
19};
20