X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=dcache.h;h=a3037267d2a986f23874be8055f1e1bbeee15b40;hb=f0c7394d9bdae7e980847003f2da6dcc3d2ad96c;hp=1be01507ef832c701b14d28c9011046d4befd159;hpb=1d1dd8f55a8b91e873db2f4255a1f1d9446e1bd0;p=betaftpd diff --git a/dcache.h b/dcache.h index 1be0150..a303726 100644 --- a/dcache.h +++ b/dcache.h @@ -15,6 +15,19 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#ifndef _DCACHE_H +#define _DCACHE_H 1 + +#if HAVE_TIME_H +#include +#endif + +#if HAVE_SYS_TIME_H +#include +#endif + +#include + /* doubly linked list of cached directory listings */ struct dcache { struct dcache *prev_dcache; @@ -33,6 +46,12 @@ struct dcache { }; struct dcache *alloc_new_dcache(); +void destroy_dcache(struct dcache * const d); + void time_out_dcache(); void populate_dcache(struct ftran * const f, const char * const cwd, const char * const pattern, const struct list_options * const lo); +struct dcache *find_dcache(const char * const cwd, const char * const pattern, + const struct list_options * const lo); + +#endif