2 * Copyright (c) 1990,1994 Regents of The University of Michigan.
3 * All Rights Reserved. See COPYRIGHT.
7 #define AFPD_VOLUME_H 1
10 #include <sys/types.h>
11 #include <netatalk/endian.h>
13 #include <atalk/volume.h>
14 #include <atalk/cnid.h>
15 #include <atalk/unicode.h>
16 #include <atalk/globals.h>
18 extern struct vol *getvolbyvid (const u_int16_t);
19 extern int ustatfs_getvolspace (const struct vol *,
20 VolSpace *, VolSpace *,
22 extern void setvoltime (AFPObj *, struct vol *);
23 extern int pollvoltime (AFPObj *);
24 extern void load_volumes (AFPObj *obj);
25 extern const struct vol *getvolumes(void);
26 extern void unload_volumes_and_extmap(void);
27 extern void vol_fce_tm_event(void);
30 int afp_openvol (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen);
31 int afp_getvolparams (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen);
32 int afp_setvolparams (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen);
33 int afp_getsrvrparms (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen);
34 int afp_closevol (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen);
36 /* netatalk functions */
37 extern void close_all_vol (void);
39 struct vol *current_vol; /* last volume from getvolbyvid() */