/*
 * $Id: filedir.h,v 1.9 2002/10/11 14:18:32 didg Exp $
 */

#ifndef AFPD_FILEDIR_H
#define AFPD_FILEDIR_H 1

#include <sys/cdefs.h>
#include <sys/stat.h>
#include "globals.h"
#include "volume.h"

extern struct afp_options default_options;

extern char		*ctoupath __P((const struct vol *, struct dir *,
                                char *));
extern char		*absupath __P((const struct vol *, struct dir *,
                                char *));
extern int		veto_file __P((const char *veto_str, const char *path));
extern int 		check_name __P((const struct vol *vol, char *name));

/* FP functions */
extern int	matchfile2dirperms __P((char *, struct vol *, int));
extern int	afp_moveandrename __P((AFPObj *, char *, int, char *, int *));
extern int	afp_rename __P((AFPObj *, char *, int, char *, int *));
extern int	afp_delete __P((AFPObj *, char *, int, char *, int *));
extern int	afp_getfildirparams __P((AFPObj *, char *, int, char *,
                                        int *));
extern int	afp_setfildirparams __P((AFPObj *, char *, int, char *,
                                        int *));

#endif
