netatalk: volume.h Source File

netatalk 4.5.0
Free and Open Source Apple Filing Protocol (AFP) Server
Loading...
Searching...
No Matches
etc/afpd/volume.h
Go to the documentation of this file.
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 <arpa/inet.h>
10#include <sys/types.h>
11
12#include <atalk/cnid.h>
13#include <atalk/globals.h>
14#include <atalk/unicode.h>
15#include <atalk/volume.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,
25 size_t *rbuflen);
26int afp_getvolparams(AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf,
27 size_t *rbuflen);
28int afp_setvolparams(AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf,
29 size_t *rbuflen);
30int afp_getsrvrparms(AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf,
31 size_t *rbuflen);
32int afp_closevol(AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf,
33 size_t *rbuflen);
34
35/* netatalk functions */
36extern void close_all_vol(const AFPObj *obj);
37extern void closevol(const AFPObj *obj, struct vol *vol);
38#endif
rbuflen
static size_t rbuflen
Definition afpfunc_helpers.c:45
rbuf
static char rbuf[rbufsize]
Definition afpfunc_helpers.c:44
cnid.h
afp_getsrvrparms
int afp_getsrvrparms(AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen)
Definition volume.c:615
afp_closevol
int afp_closevol(AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen)
Definition volume.c:1111
afp_openvol
int afp_openvol(AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen)
Definition volume.c:807
closevol
void closevol(const AFPObj *obj, struct vol *vol)
Definition volume.c:1075
afp_getvolparams
int afp_getvolparams(AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen)
Definition volume.c:1220
setvoltime
void setvoltime(AFPObj *, struct vol *)
Definition volume.c:1186
close_all_vol
void close_all_vol(const AFPObj *obj)
Definition volume.c:1097
ustatfs_getvolspace
int ustatfs_getvolspace(const struct vol *, VolSpace *, VolSpace *, uint32_t *)
Definition etc/afpd/unix.c:39
pollvoltime
int pollvoltime(AFPObj *)
poll if a volume is changed by other processes.
Definition volume.c:1149
afp_setvolparams
int afp_setvolparams(AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen)
Definition volume.c:1240
globals.h
volume.h
VolSpace
uint64_t VolSpace
Definition include/atalk/volume.h:21
obj
static AFPObj obj
Definition netatalk.c:69
AFPObj
Definition globals.h:166
vol
Definition include/atalk/volume.h:33
unicode.h