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#include <atalk/globals.h> 17 18extern struct vol *getvolbyvid (const u_int16_t); 19extern int ustatfs_getvolspace (const struct vol *, 20 VolSpace *, VolSpace *, 21 u_int32_t *); 22extern void setvoltime (AFPObj *, struct vol *); 23extern int pollvoltime (AFPObj *); 24extern void load_volumes (AFPObj *obj); 25extern const struct vol *getvolumes(void); 26extern void unload_volumes_and_extmap(void); 27extern void vol_fce_tm_event(void); 28 29/* FP functions */ 30int afp_openvol (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen); 31int afp_getvolparams (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen); 32int afp_setvolparams (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen); 33int afp_getsrvrparms (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen); 34int afp_closevol (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen); 35 36/* netatalk functions */ 37extern void close_all_vol (void); 38 39struct vol *current_vol; /* last volume from getvolbyvid() */ 40 41#endif 42