X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=etc%2Fafpd%2Fvolume.h;h=90febbfee00803f6fc803058ffaac982ff599b8d;hb=a2ddc8384c1881c66db1fbba6698bfd09da84b64;hp=7402a9a450c9793c9d3119664175e5ba855704b1;hpb=f0495a7023add6da585c6bc42360e9a45f19b3e2;p=netatalk.git diff --git a/etc/afpd/volume.h b/etc/afpd/volume.h index 7402a9a4..90febbfe 100644 --- a/etc/afpd/volume.h +++ b/etc/afpd/volume.h @@ -1,6 +1,4 @@ /* - * $Id: volume.h,v 1.36 2009-10-15 10:43:13 didg Exp $ - * * Copyright (c) 1990,1994 Regents of The University of Michigan. * All Rights Reserved. See COPYRIGHT. */ @@ -8,34 +6,24 @@ #ifndef AFPD_VOLUME_H #define AFPD_VOLUME_H 1 -#include #include -#include +#include #include #include #include +#include -#include "globals.h" -#if 0 -#include "hash.h" -#endif - -extern struct vol *getvolbyvid (const u_int16_t); +extern struct vol *getvolbyvid (const uint16_t); extern int ustatfs_getvolspace (const struct vol *, VolSpace *, VolSpace *, - u_int32_t *); + uint32_t *); extern void setvoltime (AFPObj *, struct vol *); extern int pollvoltime (AFPObj *); extern void load_volumes (AFPObj *obj); -extern int readvolfile(AFPObj *obj, - struct afp_volume_name *p1, - char *p2, - int user, - struct passwd *pwent); extern const struct vol *getvolumes(void); -extern void unload_volumes_and_extmap(void); -extern char *get_uuid(const AFPObj *obj, const char *volname); +extern void unload_volumes(void); +extern void vol_fce_tm_event(void); /* FP functions */ int afp_openvol (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen); @@ -47,4 +35,6 @@ int afp_closevol (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size /* netatalk functions */ extern void close_all_vol (void); +struct vol *current_vol; /* last volume from getvolbyvid() */ + #endif