]> arthur.barton.de Git - netatalk.git/blob - etc/afpd/volume.h
Merge from branch-2-1
[netatalk.git] / etc / afpd / volume.h
1 /*
2  * $Id: volume.h,v 1.36 2009-10-15 10:43:13 didg Exp $
3  *
4  * Copyright (c) 1990,1994 Regents of The University of Michigan.
5  * All Rights Reserved.  See COPYRIGHT.
6  */
7
8 #ifndef AFPD_VOLUME_H
9 #define AFPD_VOLUME_H 1
10
11 #include <sys/cdefs.h>
12 #include <sys/types.h>
13 #include <netatalk/endian.h>
14
15 #include <atalk/volume.h>
16 #include <atalk/cnid.h>
17 #include <atalk/unicode.h>
18
19 #include "globals.h"
20 #if 0
21 #include "hash.h"
22 #endif
23
24 extern struct vol       *getvolbyvid (const u_int16_t);
25 extern int              ustatfs_getvolspace (const struct vol *,
26             VolSpace *, VolSpace *,
27             u_int32_t *);
28 extern void             setvoltime (AFPObj *, struct vol *);
29 extern int              pollvoltime (AFPObj *);
30 extern void             load_volumes (AFPObj *obj);
31 extern int              readvolfile(AFPObj *obj,
32                                     struct afp_volume_name *p1,
33                                     char *p2,
34                                     int user,
35                                     struct passwd *pwent);
36 extern const struct vol *getvolumes(void);
37 extern void             unload_volumes_and_extmap(void);
38 extern char             *get_uuid(const AFPObj *obj, const char *volname);
39
40 /* FP functions */
41 int afp_openvol      (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf,  size_t *rbuflen);
42 int afp_getvolparams (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf,  size_t *rbuflen);
43 int afp_setvolparams (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf,  size_t *rbuflen);
44 int afp_getsrvrparms (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf,  size_t *rbuflen);
45 int afp_closevol     (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf,  size_t *rbuflen);
46
47 /* netatalk functions */
48 extern void     close_all_vol   (void);
49
50 #endif