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 >
Text File  |  1992-07-15  |  3KB  |  55 lines

  1. //   ╔════════════════════════════════════════════════════════════════════╗
  2. //   ║                                                                    ║
  3. //   ║ module:      dapstat.h                                             ║
  4. //   ║                                                                    ║
  5. //   ║  This software is provided as is and carries no warranty           ║
  6. //   ║  whatsoever.  Novell disclaims and excludes any and all implied    ║
  7. //   ║  warranties of merchantability, title and fitness for a particular ║
  8. //   ║  purpose.  Novell does not warrant that the software will satisfy  ║
  9. //   ║  your requirements or that the software is without defect or error ║
  10. //   ║  or that operation of the software will be uninterrupted.  You are ║
  11. //   ║  using the software at your risk.  The software is not a product   ║
  12. //   ║  of Novell, Inc. or any of subsidiaries.                           ║
  13. //   ║                                                                    ║
  14. //   ╟────────────────────────────────────────────────────────────────────╢
  15. //   ║ maintenance history:                                               ║
  16. //   ║ level    date      pi   description                                ║
  17. //   ╟────────────────────────────────────────────────────────────────────╢
  18. //   ║  001   03/03/92    kl   initial release.                           ║
  19. //   ╚════════════════════════════════════════════════════════════════════╝
  20.  
  21. #if DAPSTATISTICS
  22.  
  23. typedef struct {
  24.         UINT32  value:31;           // value of statistic
  25.         UINT32  updated:1;          // whether it has been updated
  26.         WORD    row;                // row to print description on
  27.         WORD    col;                // col for description
  28.         char    *desc;              // pointer to description of stat
  29. }DAPSTAT;
  30.  
  31. extern  DAPSTAT DAPActiveSessions;
  32. extern  DAPSTAT DAPTotalRequests;
  33. extern  DAPSTAT DAPLoginRequests;
  34. extern  DAPSTAT DAPLogoutRequests;
  35.  
  36. #define DAPIncActiveSessions()  DAPActiveSessions.updated|=1,++DAPActiveSessions.value
  37. #define DAPDecActiveSessions()  DAPActiveSessions.updated|=1,--DAPActiveSessions.value
  38. #define DAPIncTotalRequests()   DAPTotalRequests.updated|=1,++DAPTotalRequests.value
  39. #define DAPIncLoginRequests()   DAPLoginRequests.updated|=1,++DAPLoginRequests.value
  40. #define DAPIncLogoutRequests()  DAPLogoutRequests.updated|=1,++DAPLogoutRequests.value
  41.  
  42. T_RC    DAPInitializeStatLogic(void);
  43. void    DAPDeInitializeStatLogic(void);
  44.  
  45. #else
  46.  
  47. #define DAPIncActiveSessions()
  48. #define DAPDecActiveSessions()
  49. #define DAPIncTotalRequests()
  50. #define DAPDecTotalRequests()
  51. #define DAPInitializeStatLogic()
  52. #define DAPDeInitializeStatLogic()
  53.  
  54. #endif
  55.