2 * $Id: volume.h,v 1.36 2009-10-15 10:43:13 didg Exp $
4 * Copyright (c) 1990,1994 Regents of The University of Michigan.
5 * All Rights Reserved. See COPYRIGHT.
9 #define AFPD_VOLUME_H 1
11 #include <sys/cdefs.h>
12 #include <sys/types.h>
13 #include <netatalk/endian.h>
15 #include <atalk/volume.h>
16 #include <atalk/cnid.h>
17 #include <atalk/unicode.h>
24 extern struct vol *getvolbyvid (const u_int16_t);
25 extern int ustatfs_getvolspace (const struct vol *,
26 VolSpace *, VolSpace *,
28 extern void setvoltime (AFPObj *, struct vol *);
29 extern int pollvoltime (AFPObj *);
30 extern void load_volumes (AFPObj *obj);
33 int afp_openvol (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen);
34 int afp_getvolparams (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen);
35 int afp_setvolparams (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen);
36 int afp_getsrvrparms (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen);
37 int afp_closevol (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen);
39 /* netatalk functions */
40 extern void close_all_vol (void);