home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / Database / CLIPR503.W96 / DBINFO.C_ / DBINFO.C
C/C++ Source or Header  |  1995-06-26  |  4KB  |  110 lines

  1. /***
  2. *
  3. *  DBINFO.CH
  4. *
  5. *  Definitions for DB...INFO() functions
  6. *
  7. *  Copyright (c) 1990-1993, 1994  Computer Associates International, Inc.
  8. *  All rights reserved.
  9. *
  10. */
  11.  
  12. #ifndef _DBINFO_CH
  13.  
  14.  
  15. /* codes for DBRECORDINFO() */
  16. #define DBRI_DELETED       1
  17. #define DBRI_LOCKED        2
  18. #define DBRI_RECSIZE       3
  19. #define DBRI_RECNO         4
  20. #define DBRI_UPDATED       5
  21.  
  22.  
  23. /* codes for Order management */
  24. /* DBOI_* are defined in ORD.CH */
  25.  
  26.  
  27. /* codes for DBINFO() */
  28. #define DBI_ISDBF           1  /* Logical: RDD support DBF file format? */
  29. #define DBI_CANPUTREC       2  /* Logical: RDD support Putting Records? */
  30. #define DBI_GETHEADERSIZE   3  /* Numeric: Get header size of the file  */
  31. #define DBI_LASTUPDATE      4  /* Date:    Last date RDD file updated   */
  32. #define DBI_GETDELIMITER    5  /* String:  Get default delimiter        */
  33. #define DBI_SETDELIMITER    6  /* String:  Set default delimiter        */
  34. #define DBI_GETRECSIZE      7  /* Numeric: Get record size of the file  */
  35. #define DBI_GETLOCKARRAY    8  /* Array: Get an array of locked records */
  36. #define DBI_TABLEEXT        9  /* String:  Get table file extension     */
  37. #define DBI_FULLPATH       10  /* String: Full path name of opened file */
  38.  
  39. #define DBI_ISFLOCK        20  /* Get file lock status             */
  40.  
  41. #define DBI_CHILDCOUNT     22  /* Number of opened relations       */
  42. #define DBI_FILEHANDLE     23  /* Handle of opened file            */
  43.  
  44. #define DBI_BOF            26  /* BOF flag - alternate to bof()    */
  45. #define DBI_EOF            27  /* EOF flag - alternate to eof()    */
  46. #define DBI_DBFILTER       28  /* Filter expression                */
  47. #define DBI_FOUND          29  /* FOUND flag - alternate to found  */
  48. #define DBI_FCOUNT         30  /* Number of fields                 */
  49. #define DBI_LOCKCOUNT      31  /* Get record size of the file      */
  50. #define DBI_VALIDBUFFER    32  /* Is the current buffer valid      */
  51. #define DBI_ALIAS          33  /* Alias name of workarea           */
  52. #define DBI_GETSCOPE       34  /* Locate codeblock                 */
  53. #define DBI_LOCKOFFSET     35  /* New locking offset               */
  54. #define DBI_SHARED         36  /* Gets/Sets the shared flag        */
  55. #define DBI_MEMOEXT        37  /* Gets/Sets the shared flag        */
  56. #define DBI_MEMOHANDLE     38  /* Dos handle for memo file         */
  57. #define DBI_MEMOBLOCKSIZE  39  /* Blocksize in memo files          */
  58.  
  59. #define DBI_DB_VERSION    101  /* HOST driver Version              */
  60. #define DBI_RDD_VERSION   102  /* RDD version (current RDD)        */
  61.  
  62. #define DBI_USER         1000  /* Start of user defineable values  */
  63.  
  64.  
  65. // These are for internal use by BLOB.CH
  66.  
  67. #define DBI_BLOB_DIRECT_EXPORT  201
  68. #define DBI_BLOB_DIRECT_GET     202
  69. #define DBI_BLOB_DIRECT_IMPORT  203
  70. #define DBI_BLOB_DIRECT_PUT     204
  71. #define DBI_BLOB_ROOT_GET       205
  72. #define DBI_BLOB_ROOT_PUT       206
  73. #define DBI_BLOB_ROOT_LOCK      207
  74. #define DBI_BLOB_ROOT_UNLOCK    208
  75.  
  76. #define DBS_BLOB_GET            201
  77.  
  78. // These are for public use
  79.  
  80. #define DBI_BLOB_DIRECT_LEN     209
  81. #define DBI_BLOB_DIRECT_TYPE    210
  82. #define DBI_BLOB_INTEGRITY      211
  83. #define DBI_BLOB_OFFSET         212
  84. #define DBI_BLOB_RECOVER        213
  85.  
  86. #define DBS_BLOB_LEN            202
  87. #define DBS_BLOB_OFFSET         203
  88. #define DBS_BLOB_POINTER        204
  89. #define DBS_BLOB_TYPE           205
  90.  
  91. #define BLOB_EXPORT_APPEND      1
  92. #define BLOB_EXPORT_OVERWRITE   0
  93.  
  94. #define FILEGET_APPEND          1
  95. #define FILEGET_OVERWRITE       0
  96.  
  97. #define ERDD_OPEN_MEMO     1002
  98. #define ERDD_CREATE_MEMO   1005
  99. #define ERDD_OUTOFMEMORY   1104
  100. #define ERDD_READ          1010
  101. #define ERDD_WRITE         1011
  102. #define ERDD_DATATYPE      1020
  103. #define ERDD_UNLOCKED      1022
  104. #define ERDD_OPEN_FILE     1101
  105. #define ERDD_CREATE_FILE   1102
  106.  
  107.  
  108. #define _DBINFO_CH
  109. #endif
  110.