netatalk 4.5.0
Free and Open Source Apple Filing Protocol (AFP) Server
Loading...
Searching...
No Matches
rpc.h
Go to the documentation of this file.
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#ifndef WITH_LIBEV
17#include "event2/event.h"
18#include "event2/http.h"
19#include "event2/rpc.h"
20#include <atalk/lockrpc.gen.h>
21#endif
22
23 struct adouble;
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,
26 off_t len, int user);
27 extern void rpc_unlock(struct adouble *, int user);
28 extern int rpc_tmplock(struct adouble *, uint32_t eid, int type, off_t off,
29 off_t len, int user);
30
31#endif /* ATALK_RPC_H */
addr
int addr(struct interface *iface, char **av)
Definition config.c:643
config.h
type
static enum op type
Definition nad_cp.c:96
port
static unsigned char port
Definition pap.c:504
rpc_unlock
void rpc_unlock(struct adouble *, int user)
rpc_lock
int rpc_lock(struct adouble *, uint32_t eid, int type, off_t off, off_t len, int user)
rpc_init
int rpc_init(const char *addr, unsigned short port)
rpc_tmplock
int rpc_tmplock(struct adouble *, uint32_t eid, int type, off_t off, off_t len, int user)
adouble
Definition adouble.h:191