]> arthur.barton.de Git - netatalk.git/blob - include/atalk/rpc.h
Writing metadata xattr on directories with sticky bit set, FR#94
[netatalk.git] / include / atalk / rpc.h
1 /*
2  * Copyright (c) 2011 Frank Lahm
3  * All Rights Reserved.  See COPYRIGHT.
4  */
5
6 #ifndef ATALK_RPC_H
7 #define ATALK_RPC_H
8
9 #ifdef HAVE_CONFIG_H
10 #include <config.h>
11 #endif
12
13 #include <sys/types.h>
14 #include <inttypes.h>
15
16 #include <atalk/lockrpc.gen.h>
17
18 #include "event2/event.h"
19 #include "event2/http.h"
20 #include "event2/rpc.h"
21
22 struct adouble;
23 extern int rpc_init(const char *addr, unsigned short port);
24 extern int rpc_lock(struct adouble *, uint32_t eid, int type, off_t off, off_t len, int user);
25 extern void rpc_unlock(struct adouble *, int user);
26 extern int rpc_tmplock(struct adouble *, uint32_t eid, int type, off_t off, off_t len, int user);
27
28 #endif  /* ATALK_RPC_H */