X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=etc%2Fafpd%2Fvolume.h;h=a0b45940a1397036370df7029d3800c803100d08;hb=6d60f95c388da5f8f901d67e0018cf4896e6c6dc;hp=63d090036bf713f955df7eecac383c772d7cbc4d;hpb=94413c1dd8c24a1df937225877d77e5a99258c59;p=netatalk.git diff --git a/etc/afpd/volume.h b/etc/afpd/volume.h index 63d09003..a0b45940 100644 --- a/etc/afpd/volume.h +++ b/etc/afpd/volume.h @@ -1,6 +1,4 @@ /* - * $Id: volume.h,v 1.36 2009-10-15 10:43:13 didg Exp $ - * * Copyright (c) 1990,1994 Regents of The University of Michigan. * All Rights Reserved. See COPYRIGHT. */ @@ -8,9 +6,8 @@ #ifndef AFPD_VOLUME_H #define AFPD_VOLUME_H 1 -#include #include -#include +#include #include #include @@ -21,13 +18,15 @@ #include "hash.h" #endif -extern struct vol *getvolbyvid (const u_int16_t); +extern struct vol *getvolbyvid (const u_int16_t); extern int ustatfs_getvolspace (const struct vol *, VolSpace *, VolSpace *, u_int32_t *); extern void setvoltime (AFPObj *, struct vol *); extern int pollvoltime (AFPObj *); extern void load_volumes (AFPObj *obj); +extern const struct vol *getvolumes(void); +extern void unload_volumes_and_extmap(void); /* FP functions */ int afp_openvol (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen); @@ -39,4 +38,6 @@ int afp_closevol (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size /* netatalk functions */ extern void close_all_vol (void); +struct vol *current_vol; /* last volume from getvolbyvid() */ + #endif