home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Network Support Encyclopedia 96-1
/
novell-nsepro-1996-1-cd2.iso
/
download
/
netware
/
dax1.exe
/
DAP
/
DAPE
/
DAPSTAT.H
< prev
next >
Wrap
Text File
|
1992-07-15
|
3KB
|
55 lines
// ╔════════════════════════════════════════════════════════════════════╗
// ║ ║
// ║ module: dapstat.h ║
// ║ ║
// ║ This software is provided as is and carries no warranty ║
// ║ whatsoever. Novell disclaims and excludes any and all implied ║
// ║ warranties of merchantability, title and fitness for a particular ║
// ║ purpose. Novell does not warrant that the software will satisfy ║
// ║ your requirements or that the software is without defect or error ║
// ║ or that operation of the software will be uninterrupted. You are ║
// ║ using the software at your risk. The software is not a product ║
// ║ of Novell, Inc. or any of subsidiaries. ║
// ║ ║
// ╟────────────────────────────────────────────────────────────────────╢
// ║ maintenance history: ║
// ║ level date pi description ║
// ╟────────────────────────────────────────────────────────────────────╢
// ║ 001 03/03/92 kl initial release. ║
// ╚════════════════════════════════════════════════════════════════════╝
#if DAPSTATISTICS
typedef struct {
UINT32 value:31; // value of statistic
UINT32 updated:1; // whether it has been updated
WORD row; // row to print description on
WORD col; // col for description
char *desc; // pointer to description of stat
}DAPSTAT;
extern DAPSTAT DAPActiveSessions;
extern DAPSTAT DAPTotalRequests;
extern DAPSTAT DAPLoginRequests;
extern DAPSTAT DAPLogoutRequests;
#define DAPIncActiveSessions() DAPActiveSessions.updated|=1,++DAPActiveSessions.value
#define DAPDecActiveSessions() DAPActiveSessions.updated|=1,--DAPActiveSessions.value
#define DAPIncTotalRequests() DAPTotalRequests.updated|=1,++DAPTotalRequests.value
#define DAPIncLoginRequests() DAPLoginRequests.updated|=1,++DAPLoginRequests.value
#define DAPIncLogoutRequests() DAPLogoutRequests.updated|=1,++DAPLogoutRequests.value
T_RC DAPInitializeStatLogic(void);
void DAPDeInitializeStatLogic(void);
#else
#define DAPIncActiveSessions()
#define DAPDecActiveSessions()
#define DAPIncTotalRequests()
#define DAPDecTotalRequests()
#define DAPInitializeStatLogic()
#define DAPDeInitializeStatLogic()
#endif