X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=etc%2Fafpd%2Fdirectory.h;h=731140ababecd7140946c7572b8b392615a7525e;hb=be96d276348da0a7e66eeec844b306e8a5fa8fac;hp=0fe65e7000af0f02fe5a7e3e7049e013d4c96e16;hpb=45d040caa4a824f135ce0fe519f263fde30c3bbe;p=netatalk.git diff --git a/etc/afpd/directory.h b/etc/afpd/directory.h index 0fe65e70..731140ab 100644 --- a/etc/afpd/directory.h +++ b/etc/afpd/directory.h @@ -1,6 +1,4 @@ /* - * $Id: directory.h,v 1.34 2010/03/12 15:16:49 franklahm Exp $ - * * Copyright (c) 1990,1991 Regents of The University of Michigan. * All Rights Reserved. * @@ -26,10 +24,8 @@ #ifndef AFPD_DIRECTORY_H #define AFPD_DIRECTORY_H 1 -#include #include -/*#include */ /* including it here causes some confusion */ -#include +#include #include /* sys/types.h usually snarfs in major/minor macros. if they don't @@ -106,12 +102,15 @@ struct maccess { #define AR_UWRITE (1<<2) #define AR_UOWN (1<<7) +q_t *invalid_dircache_entries; + typedef int (*dir_loop)(struct dirent *, char *, void *); -extern struct dir *dir_new(const char *mname, const char *uname, const struct vol *, - cnid_t pdid, cnid_t did, bstring fullpath); /* volume.c needs it once */ +extern void dir_free_invalid_q(void); +extern struct dir *dir_new(const char *mname, const char *uname, const struct vol *, + cnid_t pdid, cnid_t did, bstring fullpath, time_t ctime); extern void dir_free (struct dir *); -extern struct dir *dir_add(const struct vol *, const struct dir *, struct path *, int); +extern struct dir *dir_add(struct vol *, const struct dir *, struct path *, int); extern int dir_modify(const struct vol *vol, struct dir *dir, cnid_t pdid, cnid_t did, const char *new_mname, const char *new_uname, bstring pdir_fullpath); extern int dir_remove(const struct vol *vol, struct dir *dir);