]> arthur.barton.de Git - netatalk.git/blob - etc/afpd/volume.h
Remove all Appletalk stuff
[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/types.h>
10 #include <arpa/inet.h>
11
12 #include <atalk/volume.h>
13 #include <atalk/cnid.h>
14 #include <atalk/unicode.h>
15
16 #include "globals.h"
17 #if 0
18 #include "hash.h"
19 #endif
20
21 extern struct vol       *getvolbyvid (const u_int16_t);
22 extern int              ustatfs_getvolspace (const struct vol *,
23             VolSpace *, VolSpace *,
24             u_int32_t *);
25 extern void             setvoltime (AFPObj *, struct vol *);
26 extern int              pollvoltime (AFPObj *);
27 extern void             load_volumes (AFPObj *obj);
28 extern int              readvolfile(AFPObj *obj,
29                                     struct afp_volume_name *p1,
30                                     char *p2,
31                                     int user,
32                                     struct passwd *pwent);
33 extern const struct vol *getvolumes(void);
34 extern void             unload_volumes_and_extmap(void);
35 extern char             *get_uuid(const AFPObj *obj, const char *volname);
36
37 /* FP functions */
38 int afp_openvol      (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf,  size_t *rbuflen);
39 int afp_getvolparams (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf,  size_t *rbuflen);
40 int afp_setvolparams (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf,  size_t *rbuflen);
41 int afp_getsrvrparms (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf,  size_t *rbuflen);
42 int afp_closevol     (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf,  size_t *rbuflen);
43
44 /* netatalk functions */
45 extern void     close_all_vol   (void);
46
47 struct vol *current_vol;        /* last volume from getvolbyvid() */
48
49 #endif