~ubuntu-branches/ubuntu/precise/netatalk/precise

« back to all changes in this revision

Viewing changes to etc/afpd/status.h

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Rittau
  • Date: 2004-01-19 12:43:49 UTC
  • Revision ID: james.westby@ubuntu.com-20040119124349-es563jbp0hk0ae51
Tags: upstream-1.6.4
ImportĀ upstreamĀ versionĀ 1.6.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * $Id: status.h,v 1.5.4.1 2003/06/09 14:30:45 srittau Exp $
 
3
 */
 
4
 
 
5
#ifndef AFPD_STATUS_H
 
6
#define AFPD_STATUS_H 1
 
7
 
 
8
#include <sys/cdefs.h>
 
9
#include <atalk/dsi.h>
 
10
#include <atalk/asp.h>
 
11
#include "globals.h"
 
12
#include "afp_config.h"
 
13
 
 
14
/* we use these to prevent whacky alignment problems */
 
15
#define AFPSTATUS_MACHOFF     0
 
16
#define AFPSTATUS_VERSOFF     2
 
17
#define AFPSTATUS_UAMSOFF     4
 
18
#define AFPSTATUS_ICONOFF     6
 
19
#define AFPSTATUS_FLAGOFF     8
 
20
/* AFPSTATUS_PRELEN is the number of bytes for status data prior to 
 
21
 * the ServerName field.
 
22
 *
 
23
 * This is two bytes of offset space for the MachineType, AFPVersionCount,
 
24
 * UAMCount, VolumeIconAndMask, and the 16-bit "Fixed" status flags.
 
25
 */
 
26
#define AFPSTATUS_PRELEN     10
 
27
/* AFPSTATUS_POSTLEN is the number of bytes for offset records
 
28
 * after the ServerName field.
 
29
 *
 
30
 * Right now, this is 2 bytes each for ServerSignature, networkAddressCount,
 
31
 * DirectoryNameCount, and UTF-8 ServerName
 
32
 */
 
33
#define AFPSTATUS_POSTLEN     8
 
34
#define AFPSTATUS_LEN        (AFPSTATUS_PRELEN + AFPSTATUS_POSTLEN)
 
35
 
 
36
 
 
37
#define PASSWD_NONE     0
 
38
#define PASSWD_SET     (1 << 0)
 
39
#define PASSWD_NOSAVE  (1 << 1)
 
40
#define PASSWD_ALL     (PASSWD_SET | PASSWD_NOSAVE)
 
41
 
 
42
extern void status_versions __P((char * /*status*/));
 
43
extern void status_uams __P((char * /*status*/, const char * /*authlist*/));
 
44
extern void status_init __P((AFPConfig *, AFPConfig *,
 
45
                                 const struct afp_options *));
 
46
extern int      afp_getsrvrinfo __P((AFPObj *, char *, int, char *, int *));
 
47
 
 
48
#endif