home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 2 BBS / 02-BBS.zip / OP2DEV.ZIP / BBSDB.H < prev    next >
C/C++ Source or Header  |  1991-04-30  |  2KB  |  97 lines

  1. //
  2. //  BBSDB.H
  3. //
  4. //  Include file for prototyping of DLL database functions
  5. //
  6. #ifndef _BBSDB_H
  7. #define _BBSDB_H
  8.  
  9. #ifndef NODSDLL
  10.    #define NODSDLL   short far pascal
  11. #endif
  12. #ifndef DSDLL
  13.    #define DSDLL     short far pascal _loadds
  14. #endif
  15.  
  16. #ifdef INCL_ALL
  17.   #define INCL_USER
  18.   #define INCL_MESS
  19.   #define INCL_FILE
  20. #endif
  21.  
  22. // Number of indexes for each database type
  23. #define USER_NUM_IDX  (1)
  24. #define FILE_NUM_IDX  (2)
  25. #define MESS_NUM_IDX  (3)
  26.  
  27. #define SEQ_FIRST  1
  28. #define SEQ_NEXT   2
  29. #define SEQ_PREV   3
  30. #define SEQ_LAST   4
  31.  
  32. #define FIND_EQL   0
  33. #define FIND_GTE   1
  34. #define FIND_LTE   2
  35. #define FIND_GT    3
  36. #define FIND_LT    4
  37.  
  38. #define USRIDX_NAME   1
  39. #define USRIDX_AUX    2
  40.  
  41. #define MESIDX_TO     1
  42. #define MESIDX_NUM    2
  43.  
  44. #define FILIDX_DATE   1
  45. #define FILIDX_NAME   2
  46.  
  47. //
  48. // user data base functions
  49. //
  50. #if( defined(INCL_USER) || defined(_USER_REC_DEF) )
  51.  
  52. DSDLL UdbAddUser(USER_REC *, short);
  53. DSDLL UdbAuxIndex(short, short, short, short);
  54. DSDLL UdbClose(short);
  55. DSDLL UdbFindSeq(USER_REC *, short, short, short);
  56. DSDLL UdbFindUser(USER_REC *, short, void *, short, short);
  57. DSDLL UdbInit(short);
  58. DSDLL UdbOpen(char *, short, short, short *);
  59. DSDLL UdbUpdateUser(USER_REC *, short);
  60.  
  61. #endif
  62.  
  63. //
  64. // Message system functions
  65. //
  66. #if( defined(INCL_MESS) || defined(_MESSREC_DEF) )
  67.  
  68. DSDLL MdbAdd(MESSREC *, char *, short);
  69. DSDLL MdbClose(short);
  70. DSDLL MdbFind(MESSREC *, short, void *, short, short, short);
  71. DSDLL MdbFindSeq(MESSREC *, short, short, short);
  72. DSDLL MdbOpen(char *, short, short, short *);
  73. DSDLL MdbQuery(short, unsigned long, void *, short);
  74. DSDLL MdbQuickAdd(char *, short, char *, char *, char *, char *, short);
  75. DSDLL MdbReadText(MESSREC *, char *, short);
  76. DSDLL MdbUpdate(MESSREC *, short);
  77.  
  78. #endif
  79.  
  80. //
  81. //  File database functions
  82. //
  83. #if( defined(INCL_FILE) || defined(_LIBREC_DEF) )
  84.  
  85. DSDLL FdbOpen(char *, short, short, short *);
  86. DSDLL FdbClose(short);
  87. DSDLL FdbAdd(LIBREC *, char *, short);
  88. DSDLL FdbReadText(LIBREC *, char *, short);
  89. DSDLL FdbFind(LIBREC *, short, void *, short, short, short);
  90. DSDLL FdbFindSeq(LIBREC *, short, short, short);
  91. DSDLL FdbUpdate(LIBREC *, short);
  92.  
  93. #endif
  94.  
  95. #endif
  96.  
  97.