X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=etc%2Fafpd%2Fdirectory.h;h=82daa86c5b5bf5f7bc11e3afdc88baf3851ed593;hb=b0bcb8f6b0571592a50ce039882c9319e012a270;hp=76267e73b9dac151a088c175af46d8348468dae3;hpb=954f1435c53be3c861e662d9a6699227c612de57;p=netatalk.git diff --git a/etc/afpd/directory.h b/etc/afpd/directory.h index 76267e73..82daa86c 100644 --- a/etc/afpd/directory.h +++ b/etc/afpd/directory.h @@ -24,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 @@ -37,21 +35,10 @@ #endif #include +#include -#include "globals.h" #include "volume.h" -#define DIRF_FSMASK (3<<0) -#define DIRF_NOFS (0<<0) -#define DIRF_AFS (1<<0) -#define DIRF_UFS (2<<0) - -#define DIRF_OFFCNT (1<<4) /* offsprings count is valid */ -#define DIRF_CNID (1<<5) /* renumerate id */ -#define DIRF_CACHELOCK (1<<6) /* lock in cache, don't remove in dircache_eviction, for catsearch */ - -#define AFPDIR_READ (1<<0) - /* directory bits */ #define DIRPBIT_ATTR 0 #define DIRPBIT_PDID 1 @@ -110,13 +97,15 @@ typedef int (*dir_loop)(struct dirent *, char *, void *); 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); + cnid_t pdid, cnid_t did, bstring fullpath, struct stat *); extern void dir_free (struct dir *); 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); extern struct dir *dirlookup (const struct vol *, cnid_t); +extern struct dir *dirlookup_bypath(const struct vol *vol, const char *path); + extern int movecwd (const struct vol *, struct dir *); extern struct path *cname (struct vol *, struct dir *, char **);