~ubuntu-branches/ubuntu/jaunty/nas/jaunty

« back to all changes in this revision

Viewing changes to server/include/dixstruct.h

  • Committer: Bazaar Package Importer
  • Author(s): Steve McIntyre
  • Date: 2007-04-29 00:19:29 UTC
  • mfrom: (1.2.3 upstream)
  • mto: This revision was merged to the branch mainline in revision 5.
  • Revision ID: james.westby@ubuntu.com-20070429001929-40f8v7801id9csxt
Tags: 1.9-1
* New upstream version.
* Remove more in the "clean" rule in debian/rules to reduce the diff size.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
#include "resource.h"
32
32
 
33
33
/*
34
 
 *      direct-mapped hash table, used by resource manager to store
 
34
 *      direct-mapped hash table, used by resource manager to store
35
35
 *      translation from client ids to server addresses.
36
36
 */
37
37
 
38
38
typedef struct _TimeStamp {
39
 
    unsigned long months;       /* really ~49.7 days */
 
39
    unsigned long months;       /* really ~49.7 days */
40
40
    unsigned long milliseconds;
41
 
}           TimeStamp;
 
41
} TimeStamp;
42
42
 
43
43
#ifdef DEBUG
44
44
#define MAX_REQUEST_LOG 100
45
45
#endif
46
46
 
47
47
typedef struct _Client {
48
 
    int         index;
49
 
    AuMask        clientAsMask;
50
 
    pointer     requestBuffer;
51
 
    pointer     osPrivate;      /* for OS layer, including scheduler */
52
 
    Bool        swapped;
53
 
    void        (*pSwapReplyFunc) ();
54
 
    AuID         errorValue;
55
 
    int         sequence;
56
 
    int         closeDownMode;
57
 
    int         clientGone;
58
 
    int         noClientException;      /* this client died or needs to be
59
 
                                         * killed */
60
 
    int         numSaved;
61
 
    pointer     screenPrivate[MAXSCREENS];
62
 
    int         (**requestVector) ();
63
 
    unsigned long req_len;              /* length of current request */
64
 
    Bool        big_requests;           /* supports large requests */
 
48
    int index;
 
49
    AuMask clientAsMask;
 
50
    pointer requestBuffer;
 
51
    pointer osPrivate;          /* for OS layer, including scheduler */
 
52
    Bool swapped;
 
53
    void (*pSwapReplyFunc) ();
 
54
    AuID errorValue;
 
55
    int sequence;
 
56
    int closeDownMode;
 
57
    int clientGone;
 
58
    int noClientException;      /* this client died or needs to be
 
59
                                 * killed */
 
60
    int numSaved;
 
61
    pointer screenPrivate[MAXSCREENS];
 
62
    int (**requestVector) ();
 
63
    unsigned long req_len;      /* length of current request */
 
64
    Bool big_requests;          /* supports large requests */
65
65
 
66
66
#ifdef DEBUG
67
67
    unsigned char requestLog[MAX_REQUEST_LOG];
68
 
    int         requestLogIndex;
 
68
    int requestLogIndex;
69
69
#endif
70
 
}           ClientRec;
 
70
} ClientRec;
71
71
 
72
72
typedef struct _WorkQueue {
73
73
    struct _WorkQueue *next;
74
 
    Bool        (*function) ();
75
 
    ClientPtr   client;
76
 
    pointer     closure;
77
 
}           WorkQueueRec;
 
74
        Bool(*function) ();
 
75
    ClientPtr client;
 
76
    pointer closure;
 
77
} WorkQueueRec;
78
78
 
79
79
extern TimeStamp currentTime;
80
 
extern TimeStamp lastDeviceEventTime;
81
80
extern void CloseDownClient();
82
81
 
83
 
extern TimeStamp ClientTimeToServerTime();
84
 
extern void UpdateCurrentTime();
85
 
extern void UpdateCurrentTimeIf();
 
82
extern void UpdateCurrentTimeIf(void);
86
83
 
87
 
#endif                          /* DIXSTRUCT_H */
 
84
#endif /* DIXSTRUCT_H */