X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=etc%2Fafpd%2Fvolume.h;h=a8bd2b8bad453a6b51de78a8f90dad5ee8026257;hb=0612081546981aae6caa7fde0f60fee10d9b688a;hp=b33e9c313cf22713ccf738efcb3758b4b07a1dea;hpb=ffd50caa895e01aed02dcf0543700488463c3a2b;p=netatalk.git diff --git a/etc/afpd/volume.h b/etc/afpd/volume.h index b33e9c31..a8bd2b8b 100644 --- a/etc/afpd/volume.h +++ b/etc/afpd/volume.h @@ -6,34 +6,19 @@ #ifndef AFPD_VOLUME_H #define AFPD_VOLUME_H 1 -#include #include -#include +#include #include #include #include +#include -#include "globals.h" -#if 0 -#include "hash.h" -#endif - -extern struct vol *getvolbyvid (const u_int16_t); extern int ustatfs_getvolspace (const struct vol *, - VolSpace *, VolSpace *, - u_int32_t *); + VolSpace *, VolSpace *, + uint32_t *); extern void setvoltime (AFPObj *, struct vol *); extern int pollvoltime (AFPObj *); -extern void load_volumes (AFPObj *obj); -extern int readvolfile(AFPObj *obj, - struct afp_volume_name *p1, - char *p2, - int user, - struct passwd *pwent); -extern const struct vol *getvolumes(void); -extern void unload_volumes_and_extmap(void); -extern char *get_uuid(const AFPObj *obj, const char *volname); /* FP functions */ int afp_openvol (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen); @@ -43,8 +28,6 @@ int afp_getsrvrparms (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size int afp_closevol (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen); /* netatalk functions */ -extern void close_all_vol (void); - -struct vol *current_vol; /* last volume from getvolbyvid() */ - +extern void close_all_vol(const AFPObj *obj); +extern void closevol(const AFPObj *obj, struct vol *vol); #endif