2 * Copyright (c) 2010 Frank Lahm
3 * All Rights Reserved. See COPYRIGHT.
6 #ifndef ATALK_LOCKING_H
7 #define ATALK_LOCKING_H
13 #include <sys/types.h>
16 #include <atalk/lockrpc.gen.h>
18 #include "event2/event.h"
19 #include "event2/http.h"
20 #include "event2/rpc.h"
24 extern int rpc_init(const char *addr, unsigned short port);
25 extern int rpc_lock(struct adouble *, uint32_t eid, int type, off_t off, off_t len, int user);
26 extern void rpc_unlock(struct adouble *, int user);
27 extern int rpc_tmplock(struct adouble *, uint32_t eid, int type, off_t off, off_t len, int user);
30 #endif /* ATALK_LOCKING_H */