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 8extern struct afp_options default_options; 9 10extern char *ctoupath (const struct vol *, struct dir *, 11 char *); 12extern char *absupath (const struct vol *, struct dir *, 13 char *); 14extern int veto_file (const char *veto_str, const char *path); 15extern int check_name (const struct vol *vol, char *name); 16 17extern int matchfile2dirperms (char *, struct vol *, int); 18extern int delete_vetoed_files(struct vol *vol, const char *upath, bool in_vetodir); 19 20/* FP functions */ 21int afp_moveandrename (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen); 22int afp_rename (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen); 23int afp_delete (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen); 24int afp_getfildirparams (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen); 25int afp_setfildirparams (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen); 26 27#endif 28