]> arthur.barton.de Git - netatalk.git/blob - etc/afpd/filedir.h
New boolean volume option "delete veto files"
[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 extern int delete_vetoed_files(struct vol *vol, const char *upath, bool in_vetodir);
19
20 /* FP functions */
21 int afp_moveandrename (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf,  size_t *rbuflen);
22 int afp_rename (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf,  size_t *rbuflen);
23 int afp_delete (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf,  size_t *rbuflen);
24 int afp_getfildirparams (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf,  size_t *rbuflen);
25 int afp_setfildirparams (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf,  size_t *rbuflen);
26
27 #endif