]> arthur.barton.de Git - netatalk.git/blob - etc/afpd/volume.h
Merge remote-tracking branch 'remotes/origin/branch-netatalk-2-1'
[netatalk.git] / etc / afpd / volume.h
1 /*
2  * Copyright (c) 1990,1994 Regents of The University of Michigan.
3  * All Rights Reserved.  See COPYRIGHT.
4  */
5
6 #ifndef AFPD_VOLUME_H
7 #define AFPD_VOLUME_H 1
8
9 #include <sys/cdefs.h>
10 #include <sys/types.h>
11 #include <netatalk/endian.h>
12
13 #include <atalk/volume.h>
14 #include <atalk/cnid.h>
15 #include <atalk/unicode.h>
16
17 #include "globals.h"
18 #if 0
19 #include "hash.h"
20 #endif
21
22 extern struct vol       *getvolbyvid (const u_int16_t);
23 extern int              ustatfs_getvolspace (const struct vol *,
24             VolSpace *, VolSpace *,
25             u_int32_t *);
26 extern void             setvoltime (AFPObj *, struct vol *);
27 extern int              pollvoltime (AFPObj *);
28 extern void             load_volumes (AFPObj *obj);
29 extern const struct vol *getvolumes(void);
30 extern void             unload_volumes_and_extmap(void);
31
32 /* FP functions */
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);
38
39 /* netatalk functions */
40 extern void     close_all_vol   (void);
41
42 struct vol *current_vol;        /* last volume from getvolbyvid() */
43
44 #endif