oci1.inc 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. {
  2. Automatically converted by H2Pas 1.0.0 from oci1.h
  3. The following command line parameters were used:
  4. -p
  5. -D
  6. -l
  7. jojo.so
  8. oci1.h
  9. }
  10. {$PACKRECORDS C}
  11. {
  12. * $Header: oci1.h 02-dec-97.19:29:14 skabraha Exp $
  13. }
  14. { Copyright (c) Oracle Corporation 1997, 1998. All Rights Reserved. } { NOTE: See 'header_template.doc' in the 'doc' dve under the 'forms'
  15. directory for the header file template that includes instructions.
  16. }
  17. {
  18. NAME
  19. oci1.h - Cartridge Service definitions
  20. DESCRIPTION
  21. <short description of component this file declares/defines>
  22. RELATED DOCUMENTS
  23. INSPECTION STATUS
  24. Inspection date:
  25. Inspection status:
  26. Estimated increasing cost defects per page:
  27. Rule sets:
  28. ACCEPTANCE REVIEW STATUS
  29. Review date:
  30. Review status:
  31. Reviewers:
  32. PUBLIC FUNCTION(S)
  33. <list of external functions declared/defined - with one-line descriptions>
  34. PRIVATE FUNCTION(S)
  35. <list of static functions defined in .c file - with one-line descriptions>
  36. EXAMPLES
  37. NOTES
  38. <other useful comments, qualifications, etc.>
  39. MODIFIED (MM/DD/YY)
  40. nramakri 01/16/98 - remove #ifdef NEVER clause
  41. ewaugh 12/18/97 - Turn type wrappers into functions.
  42. skabraha 12/02/97 - Adding data structures & constants for OCIFile
  43. rhwu 12/02/97 - OCI Thread
  44. nramakri 12/15/97 - move to core4
  45. ewaugh 12/11/97 - add OCIFormat package constants
  46. ssamu 12/10/97 - do not include s.h
  47. nramakri 11/19/97 - add OCIExtract definitions
  48. ssamu 11/14/97 - creation
  49. }
  50. {---------------------------------------------------------------------------
  51. PUBLIC TYPES AND CONSTANTS
  52. --------------------------------------------------------------------------- }
  53. { Constants required by the OCIFormat package. }
  54. {
  55. #define OCIFormatUb1(variable) OCIFormatTUb1(), &(variable)
  56. #define OCIFormatUb2(variable) OCIFormatTUb2(), &(variable)
  57. #define OCIFormatUb4(variable) OCIFormatTUb4(), &(variable)
  58. #define OCIFormatUword(variable) OCIFormatTUword(), &(variable)
  59. #define OCIFormatUbig_ora(variable) OCIFormatTUbig_ora(), &(variable)
  60. #define OCIFormatSb1(variable) OCIFormatTSb1(), &(variable)
  61. #define OCIFormatSb2(variable) OCIFormatTSb2(), &(variable)
  62. #define OCIFormatSb4(variable) OCIFormatTSb4(), &(variable)
  63. #define OCIFormatSword(variable) OCIFormatTSword(), &(variable)
  64. #define OCIFormatSbig_ora(variable) OCIFormatTSbig_ora(), &(variable)
  65. #define OCIFormatEb1(variable) OCIFormatTEb1(), &(variable)
  66. #define OCIFormatEb2(variable) OCIFormatTEb2(), &(variable)
  67. #define OCIFormatEb4(variable) OCIFormatTEb4(), &(variable)
  68. #define OCIFormatEword(variable) OCIFormatTEword(), &(variable)
  69. #define OCIFormatChar(variable) OCIFormatTChar(), &(variable)
  70. #define OCIFormatText(variable) OCIFormatTText(), (variable)
  71. #define OCIFormatDouble(variable) OCIFormatTDouble(), &(variable)
  72. #define OCIFormatDvoid(variable) OCIFormatTDvoid(), (variable)
  73. #define OCIFormatEnd OCIFormatTEnd()
  74. }
  75. const
  76. OCIFormatDP = 6;
  77. {----------------- Public Constants for OCIFile ------------------------- }
  78. { flags for open. }
  79. { flags for mode }
  80. { open for read only }
  81. OCI_FILE_READ_ONLY = 1;
  82. { open for write only }
  83. OCI_FILE_WRITE_ONLY = 2;
  84. { open for read & write }
  85. OCI_FILE_READ_WRITE = 3;
  86. { flags for create }
  87. { the file should exist }
  88. OCI_FILE_EXIST = 0;
  89. { create if the file doesn't exist }
  90. OCI_FILE_CREATE = 1;
  91. { the file should not exist }
  92. OCI_FILE_EXCL = 2;
  93. { create if the file doesn't exist,
  94. else truncate file the file to 0 }
  95. OCI_FILE_TRUNCATE = 4;
  96. { open the file in append mode }
  97. OCI_FILE_APPEND = 8;
  98. { flags for seek }
  99. { seek from the beginning of the file }
  100. OCI_FILE_SEEK_BEGINNING = 1;
  101. { seek from the current position }
  102. OCI_FILE_SEEK_CURRENT = 2;
  103. { seek from the end of the file }
  104. OCI_FILE_SEEK_END = 3;
  105. { seek forward }
  106. OCI_FILE_FORWARD = 1;
  107. { seek backward }
  108. OCI_FILE_BACKWARD = 2;
  109. { file type }
  110. { binary file }
  111. OCI_FILE_BIN = 0;
  112. { text file }
  113. OCI_FILE_TEXT = 1;
  114. { standard i/p }
  115. OCI_FILE_STDIN = 2;
  116. { standard o/p }
  117. OCI_FILE_STDOUT = 3;
  118. { standard error }
  119. OCI_FILE_STDERR = 4;
  120. { Represents an open file }
  121. type
  122. POCIFileObject = pointer;
  123. {--------------------- OCI Thread Object Definitions------------------------ }
  124. POCIThreadContext = pointer; // OCIThread Context
  125. POCIThreadMutex = pointer; // OCIThread Mutual Exclusion Lock
  126. POCIThreadKey = pointer; // OCIThread Key for Thread-Specific Data
  127. POCIThreadID = pointer; // OCIThread Thread ID
  128. POCIThreadHandle = pointer; // OCIThread Thread Handle
  129. {-------------------- OCI Thread Callback Function Pointers ---------------- }
  130. { OCIThread Key Destructor Function Type }
  131. OCIThreadKeyDestFunc = procedure ;cdecl;
  132. { Flags passed into OCIExtractFromXXX routines to direct processing }
  133. { matching is case sensitive }
  134. const
  135. OCI_EXTRACT_CASE_SENSITIVE = $1;
  136. { unique abbreviations for keys
  137. are allowed }
  138. OCI_EXTRACT_UNIQUE_ABBREVS = $2;
  139. { if multiple values for a key
  140. exist, this determines if the
  141. new value should be appended
  142. to (or replace) the current
  143. list of values }
  144. OCI_EXTRACT_APPEND_VALUES = $4;
  145. { Constants passed into OCIExtractSetKey routine }
  146. { key can accept multiple values }
  147. OCI_EXTRACT_MULTIPLE = $8;
  148. { key type is boolean }
  149. OCI_EXTRACT_TYPE_BOOLEAN = 1;
  150. { key type is string }
  151. OCI_EXTRACT_TYPE_STRING = 2;
  152. { key type is integer }
  153. OCI_EXTRACT_TYPE_INTEGER = 3;
  154. { key type is ocinum }
  155. OCI_EXTRACT_TYPE_OCINUM = 4;
  156. {---------------------------------------------------------------------------
  157. PRIVATE TYPES AND CONSTANTS
  158. --------------------------------------------------------------------------- }
  159. {---------------------------------------------------------------------------
  160. PUBLIC FUNCTIONS
  161. --------------------------------------------------------------------------- }
  162. {---------------------------------------------------------------------------
  163. PRIVATE FUNCTIONS
  164. --------------------------------------------------------------------------- }