macos-use-platform-copy-of-afssettings-20060802
[openafs.git] / src / WINNT / afsd / afsmsg95.h
1 #ifndef _AFSMSG_H
2 #define _AFSMSG_H
3
4 #define AFS_MSG_PORT 2020
5
6 #define AFS_MAX_MSG_LEN 512
7
8 typedef struct _afsMsg_hdr {
9   int msgtype;
10   int length;
11 } afsMsg_hdr_t;
12
13 #define AFS_MSG_STATUS_CHANGE 1
14 #define AFS_MSG_PRINT 2
15
16 typedef struct _afsMsg_statChange {
17   afsMsg_hdr_t hdr;
18   int oldStatus;
19   int newStatus;
20   int exitCode;
21   char message;
22 } afsMsg_statChange_t;
23
24 #define AFS_STATUS_NOSTATUS -1
25 #define AFS_STATUS_INIT    1
26 #define AFS_STATUS_RUNNING 2
27 #define AFS_STATUS_EXITING 3
28
29 #define AFS_EXITCODE_NORMAL 0
30 #define AFS_EXITCODE_PANIC  2
31 #define AFS_EXITCODE_NETWORK_FAILURE 3
32 #define AFS_EXITCODE_GENERAL_FAILURE 100
33
34 typedef struct _afsMsg_print {
35   afsMsg_hdr_t hdr;
36   int debugLevel;
37   char message;
38 } afsMsg_print_t;
39
40 #endif