]> arthur.barton.de Git - netatalk.git/blob - etc/afpd/filedir.h
02c9ac15b5382ed99c5ee4cf7a84166d4e85cfda
[netatalk.git] / etc / afpd / filedir.h
1 #ifndef AFPD_FILEDIR_H
2 #define AFPD_FILEDIR_H 1
3
4 #include <sys/stat.h>
5 #include <atalk/globals.h>
6 #include "volume.h"
7
8 extern struct afp_options default_options;
9
10 extern char             *ctoupath (const struct vol *, struct dir *,
11                                 char *);
12 extern char             *absupath (const struct vol *, struct dir *,
13                                 char *);
14 extern int              veto_file (const char *veto_str, const char *path);
15 extern int              check_name (const struct vol *vol, char *name);
16
17 extern int matchfile2dirperms (char *, struct vol *, int);
18
19 /* FP functions */
20 int afp_moveandrename (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf,  size_t *rbuflen);
21 int afp_rename (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf,  size_t *rbuflen);
22 int afp_delete (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf,  size_t *rbuflen);
23 int afp_getfildirparams (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf,  size_t *rbuflen);
24 int afp_setfildirparams (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf,  size_t *rbuflen);
25
26 #endif