home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1998 May / Pcwk5b98.iso / WEBSERVE / SAMBAR / DATA.1 / general.h < prev    next >
C/C++ Source or Header  |  1997-06-11  |  3KB  |  77 lines

  1. /*
  2. ** GENERAL.H
  3. **
  4. **      This header file contains the public HTTP interfaces used by the
  5. **        Sambar Server for interfacing with General Utilities.
  6. **
  7. **        Confidential Property of Tod Sambar
  8. **        (c) Copyright Tod Sambar 1997
  9. **        All rights reserved.
  10. **
  11. **
  12. ** History:
  13. ** Chg#    Date    Description                                                Resp
  14. ** ----    -------    -------------------------------------------------------    ----
  15. **        10JUN97    Created                                                    sambar
  16. */
  17.  
  18. #if     !defined(__GENERAL_H__)
  19. #define __GENERAL_H__
  20.  
  21. #include    <sambar.h>
  22. #include    <io.h>
  23. #include    <sys/stat.h>
  24. #include    <sys/locking.h>
  25. #include    <share.h>
  26. #include    <fcntl.h>
  27.  
  28. /*
  29. ** General Defines
  30. */
  31. #define INT_WIDTH        6        /* MAX is 8 */
  32. #define COUNT_WIDTH     8
  33. #define COUNT_HEIGHT    16
  34.  
  35. static char           *bitmap[] = 
  36. {
  37.     "0xff", "0xff", "0xff", "0xc3", "0x99", "0x99", "0x99", "0x99",    /* rows 1-8  of 0 */
  38.     "0x99", "0x99", "0x99", "0x99", "0xc3", "0xff", "0xff", "0xff",    /* rows 9-16 of 0 */
  39.     "0xff", "0xff", "0xff", "0xcf", "0xc7", "0xcf", "0xcf", "0xcf",    /* rows 1-8  of 1 */
  40.     "0xcf", "0xcf", "0xcf", "0xcf", "0xcf", "0xff", "0xff", "0xff",    /* rows 9-16 of 1 */
  41.     "0xff", "0xff", "0xff", "0xc3", "0x99", "0x9f", "0x9f", "0xcf",    /* rows 1-8  of 2 */
  42.     "0xe7", "0xf3", "0xf9", "0xf9", "0x81", "0xff", "0xff", "0xff",    /* rows 9-16 of 2 */
  43.     "0xff", "0xff", "0xff", "0xc3", "0x99", "0x9f", "0x9f", "0xc7",    /* rows 1-8  of 3 */
  44.     "0x9f", "0x9f", "0x9f", "0x99", "0xc3", "0xff", "0xff", "0xff",    /* rows 9-16 of 3 */
  45.     "0xff", "0xff", "0xff", "0xcf", "0xcf", "0xc7", "0xc7", "0xcb",    /* rows 1-8  of 4 */
  46.     "0xcb", "0xcd", "0x81", "0xcf", "0x87", "0xff", "0xff", "0xff",    /* rows 9-16 of 4 */
  47.     "0xff", "0xff", "0xff", "0x81", "0xf9", "0xf9", "0xf9", "0xc1",    /* rows 1-8  of 5 */
  48.     "0x9f", "0x9f", "0x9f", "0x99", "0xc3", "0xff", "0xff", "0xff",    /* rows 9-16 of 5 */
  49.     "0xff", "0xff", "0xff", "0xc7", "0xf3", "0xf9", "0xf9", "0xc1",    /* rows 1-8  of 6 */
  50.     "0x99", "0x99", "0x99", "0x99", "0xc3", "0xff", "0xff", "0xff",    /* rows 9-16 of 6 */
  51.     "0xff", "0xff", "0xff", "0x81", "0x99", "0x9f", "0x9f", "0xcf",    /* rows 1-8  of 7 */
  52.     "0xcf", "0xe7", "0xe7", "0xf3", "0xf3", "0xff", "0xff", "0xff",    /* rows 9-16 of 7 */
  53.     "0xff", "0xff", "0xff", "0xc3", "0x99", "0x99", "0x99", "0xc3",    /* rows 1-8  of 8 */
  54.     "0x99", "0x99", "0x99", "0x99", "0xc3", "0xff", "0xff", "0xff",    /* rows 9-16 of 8 */
  55.     "0xff", "0xff", "0xff", "0xc3", "0x99", "0x99", "0x99", "0x99",    /* rows 1-8  of 9 */
  56.     "0x83", "0x9f", "0x9f", "0xcf", "0xe3", "0xff", "0xff", "0xff"    /* rows 9-16 of 9 */
  57. };
  58.  
  59.  
  60. /*
  61. ** Sambar Server General Utility DLL Function Prototypes
  62. */
  63. #if defined(__cplusplus)
  64. extern "C" {
  65. #endif /* defined(__cplusplus) */
  66.  
  67. extern SA_RETCODE SA_EXPORT        general_init(SA_CTX *sactx);
  68.  
  69. extern SA_RETCODE SA_PUBLIC        page_count(SA_CTX *sactx, SA_CONN *saconn,
  70.                                     SA_PARAMS *saparams, SA_INT *infop);
  71.  
  72. #if defined(__cplusplus)
  73. }
  74. #endif /* defined(__cplusplus) */
  75.  
  76. #endif /* __GENERAL_H__ */
  77.