• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/netatalk-3.0.5/etc/afpd/
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#include <atalk/globals.h>
16
17extern int              ustatfs_getvolspace (const struct vol *,
18                                             VolSpace *, VolSpace *,
19                                             uint32_t *);
20extern void             setvoltime (AFPObj *, struct vol *);
21extern int              pollvoltime (AFPObj *);
22
23/* FP functions */
24int afp_openvol      (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf,  size_t *rbuflen);
25int afp_getvolparams (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf,  size_t *rbuflen);
26int afp_setvolparams (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf,  size_t *rbuflen);
27int afp_getsrvrparms (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf,  size_t *rbuflen);
28int afp_closevol     (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf,  size_t *rbuflen);
29
30/* netatalk functions */
31extern void close_all_vol(const AFPObj *obj);
32extern void closevol(const AFPObj *obj, struct vol *vol);
33#endif
34