X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=etc%2Fafpd%2Fstatus.h;h=3057b7594a14b821aad093bc4ac1e830417e64ee;hb=260c314546ffcfdbef47f2c7de82d5310b26df0a;hp=759c2b26f6987c92e6b95916d2ad945ca78a9a50;hpb=477121ceb16c21e537f0150d5efedd48edc4ec70;p=netatalk.git diff --git a/etc/afpd/status.h b/etc/afpd/status.h index 759c2b26..3057b759 100644 --- a/etc/afpd/status.h +++ b/etc/afpd/status.h @@ -1,14 +1,9 @@ -/* - * $Id: status.h,v 1.10 2009-11-22 11:52:38 franklahm Exp $ - */ - #ifndef AFPD_STATUS_H #define AFPD_STATUS_H 1 -#include #include -#include -#include "globals.h" +#include + #include "afp_config.h" /* we use these to prevent whacky alignment problems */ @@ -17,6 +12,7 @@ #define AFPSTATUS_UAMSOFF 4 #define AFPSTATUS_ICONOFF 6 #define AFPSTATUS_FLAGOFF 8 + /* AFPSTATUS_PRELEN is the number of bytes for status data prior to * the ServerName field. * @@ -24,6 +20,7 @@ * UAMCount, VolumeIconAndMask, and the 16-bit "Fixed" status flags. */ #define AFPSTATUS_PRELEN 10 + /* AFPSTATUS_POSTLEN is the number of bytes for offset records * after the ServerName field. * @@ -33,17 +30,20 @@ #define AFPSTATUS_POSTLEN 8 #define AFPSTATUS_LEN (AFPSTATUS_PRELEN + AFPSTATUS_POSTLEN) +/* AFPSTATUS_MACHLEN is the number of characters for the MachineType. */ +#define AFPSTATUS_MACHLEN 16 + #define PASSWD_NONE 0 #define PASSWD_SET (1 << 0) #define PASSWD_NOSAVE (1 << 1) #define PASSWD_ALL (PASSWD_SET | PASSWD_NOSAVE) -extern void status_versions (char * /*status*/, const ASP, const DSI *); +extern void status_versions (char * /*status*/, const DSI *); extern void status_uams (char * /*status*/, const char * /*authlist*/); -extern void status_reset (void ); -extern void status_init (AFPConfig *, AFPConfig *, - const struct afp_options *); +extern void status_init (AFPObj *, DSI *dsi); +extern void set_signature(struct afp_options *); + /* FP functions */ int afp_getsrvrinfo (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen);