X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=etc%2Fafpd%2Fvolume.h;h=f06dcd7bf2f4c33de5a42dbce9fdd53b5a941c91;hb=b0bcb8f6b0571592a50ce039882c9319e012a270;hp=cc3dfdc9a8e5a4c0bc260758193df1b3a24ccb53;hpb=6dcaba1d633e3cfa96243c62ad8399f7e5558c48;p=netatalk.git diff --git a/etc/afpd/volume.h b/etc/afpd/volume.h index cc3dfdc9..f06dcd7b 100644 --- a/etc/afpd/volume.h +++ b/etc/afpd/volume.h @@ -1,6 +1,4 @@ /* - * $Id: volume.h,v 1.34 2009-10-02 09:32:40 franklahm Exp $ - * * Copyright (c) 1990,1994 Regents of The University of Michigan. * All Rights Reserved. See COPYRIGHT. */ @@ -8,35 +6,35 @@ #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 __P((const u_int16_t)); -extern int ustatfs_getvolspace __P((const struct vol *, +extern struct vol *getvolbyvid (const u_int16_t); +extern int ustatfs_getvolspace (const struct vol *, VolSpace *, VolSpace *, - u_int32_t *)); -extern void setvoltime __P((AFPObj *, struct vol *)); -extern int pollvoltime __P((AFPObj *)); -extern void load_volumes __P((AFPObj *obj)); + 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); +extern void vol_fce_tm_event(void); /* FP functions */ -extern int afp_openvol __P((AFPObj *, char *, int, char *, int *)); -extern int afp_getvolparams __P((AFPObj *, char *, int, char *, int *)); -extern int afp_setvolparams __P((AFPObj *, char *, int, char *, int *)); -extern int afp_getsrvrparms __P((AFPObj *, char *, int, char *, int *)); -extern int afp_closevol __P((AFPObj *, char *, int, char *, int *)); +int afp_openvol (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen); +int afp_getvolparams (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen); +int afp_setvolparams (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen); +int afp_getsrvrparms (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen); +int afp_closevol (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen); /* netatalk functions */ -extern void close_all_vol __P((void)); +extern void close_all_vol (void); + +struct vol *current_vol; /* last volume from getvolbyvid() */ #endif