home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 August: Tool Chest / Dev.CD Aug 94.toast / New System Software Extensions / ODBC for Macintosh / ODBC Tools / includes / ODBCsharedLibrary.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-07-19  |  6.4 KB  |  182 lines  |  [TEXT/MPS ]

  1. /*
  2.  **************************************************************************
  3.  
  4.     ODBCsharedLibrary.h
  5.     
  6.     Contains the prototypes and data structure definitions necessary to 
  7.     interface to the Configuration Manager through the Shared Library
  8.     Manager.
  9.     
  10.     Copyright:    © 1993 by Apple Computer, Inc., all rights reserved.
  11.     
  12.  **************************************************************************
  13.  */
  14.  
  15.  
  16. #include "LibraryManager.h"
  17.  
  18. /*
  19.  *
  20.  *    Configuration Manager Shared Library Manager definitions.
  21.  *
  22.  */
  23.  
  24. #define kODBCconfigManagerLibID            "appl:ODBC$ConfigManagerLibrary"
  25. #define kODBCconfigManagerFunctionSet    "appl:ODBC$ConfigManagerFunctionSet"
  26. #define kODBCparentID                    "appl:ODBC$ParentId"
  27.  
  28.                                     /* The following defines are for use in calling     */
  29.                                     /** the Configuration Manager functions by name.    */
  30.                                     
  31. #define kSQLManageDataSourcesId            "SQLManageDataSources"
  32. #define kSQLCreateDataSourceId            "SQLCreateDataSource"
  33. #define kSQLGetTranslatorId                "SQLGetTranslator"
  34. #define kSQLSQLGetInstalledDriversId    "SQLGetInstalledDrivers"
  35. #define kSQLRemoveDefaultDataSourceId    "SQLRemoveDefaultDataSource"
  36. #define kSQLWriteDSNId                    "SQLWriteDSN"
  37. #define kSQLRemoveDSNId                    "SQLRemoveDSN"
  38. #define kSQLGetKeywordValueId            "SQLGetKeywordValue"
  39. #define kSQLSetKeywordValueId            "SQLSetKeywordValue"
  40.  
  41.  
  42.  
  43. /*
  44.  *
  45.  *    Driver Manager Shared Library Manager definitions.
  46.  *
  47.  */
  48.  
  49. #define kODBCdriverManagerID            "appl:ODBC$DriverManagerLibrary"
  50. #define kODBCdriverManagerFunctionSet    "appl:ODBC$DriverManagerFunctionSet"
  51.                                     /* The Driver Manager's Parent ID is the same as    */
  52.                                     /** the configuration managers.                        */
  53.  
  54.                                     /* The following defines are for use in calling     */
  55.                                     /** the Driver Manager functions by name.            */
  56.  
  57. #define kSQLAllocConnectId            "SQLAllocConnect"
  58. #define kSQLAllocEnvId                "SQLAllocEnv"
  59. #define kSQLAllocStmtId                "SQLAllocStmt"
  60. #define kSQLBindColId                "SQLBindCol"
  61. #define kSQLCancelId                "SQLCancel"
  62. #define kSQLColAttributesId            "SQLColAttributes"
  63. #define kSQLConnectId                "SQLConnect"
  64. #define kSQLDescribeColId            "SQLDescribeCol"
  65. #define kSQLDisconnectId            "SQLDisconnect"
  66. #define kSQLErrorId                    "SQLError"
  67. #define kSQLExecDirectId            "SQLExecDirect"
  68. #define kSQLExecuteId                "SQLExecute"
  69. #define kSQLFetchId                    "SQLFetch"
  70. #define kSQLFreeConnectId            "SQLFreeConnect"
  71. #define kSQLFreeEnvId                "SQLFreeEnv"
  72. #define kSQLFreeStmtId                "SQLFreeStmt"
  73. #define kSQLGetCursorNameId            "SQLGetCursorName"
  74. #define kSQLNumResultColsId            "SQLNumResultCols"
  75. #define kSQLPrepareId                "SQLPrepare"
  76. #define kSQLRowCountId                "SQLRowCount"
  77. #define kSQLSetCursorNameId            "SQLSetCursorName"
  78. #define kSQLSetParamId                "SQLSetParam"
  79. #define kSQLTransactId                "SQLTransact"
  80. #define kSQLColumnsId                "SQLColumns"
  81. #define kSQLDriverConnectId            "SQLDriverConnect"
  82. #define kSQLGetConnectOptionId        "SQLGetConnectOption"
  83. #define kSQLGetDataId                "SQLGetData"
  84. #define kSQLGetFunctionsId            "SQLGetFunctions"
  85. #define kSQLGetInfoId                "SQLGetInfo"
  86. #define kSQLGetStmtOptionId            "SQLGetStmtOption"
  87. #define kSQLGetTypeInfoId            "SQLGetTypeInfo"
  88. #define kSQLParamDataId                "SQLParamData"
  89. #define kSQLPutDataId                "SQLPutData"
  90. #define kSQLSetConnectOptionId        "SQLSetConnectOption"
  91. #define kSQLSetStmtOptionId            "SQLSetStmtOption"
  92. #define kSQLSpecialColumnsId        "SQLSpecialColumns"
  93. #define kSQLStatisticsId            "SQLStatistics"
  94. #define kSQLTablesId                "SQLTables"
  95. #define kSQLBrowseConnectId            "SQLBrowseConnect"
  96. #define kSQLColumnPrivilegesId        "SQLColumnPrivileges"
  97. #define kSQLDataSourcesId            "SQLDataSources"
  98. #define kSQLDescribeParamId            "SQLDescribeParam"
  99. #define kSQLExtendedFetchId            "SQLExtendedFetch"
  100. #define kSQLForeignKeysId            "SQLForeignKeys"
  101. #define kSQLMoreResultsId            "SQLMoreResults"
  102. #define kSQLNativeSqlId                "SQLNativeSql"
  103. #define kSQLNumParamsId                "SQLNumParams"
  104. #define kSQLParamOptionsId            "SQLParamOptions"
  105. #define kSQLPrimaryKeysId            "SQLPrimaryKeys"
  106. #define kSQLProcedureColumnsId        "SQLProcedureColumns"
  107. #define kSQLProceduresId            "SQLProcedures"
  108. #define kSQLSetPosId                "SQLSetPos"
  109. #define kSQLSetScrollOptionsId        "SQLSetScrollOptions"
  110. #define kSQLTablePrivilegesId        "SQLTablePrivileges"
  111.  
  112. /*
  113.  *
  114.  *    DBMS Driver Shared Library Manager definitions.
  115.  *
  116.  */
  117.                                     /* The following define sets the DBMS Setup Parent    */
  118.                                     /** Id for all DBMS setup libraries.                */
  119.  
  120. #define kODBCdbmsDriverParentID        "appl:ODBC$DBMSdriverParentId"
  121.  
  122.                                     /* The defines for the calling the DBMS driver        */
  123.                                     /** functions by name are the same as for the         */
  124.                                     /** Driver Manager functions except that a DBMS        */
  125.                                     /** Driver does not support the SQLGetFunctions and    */
  126.                                     /** SQLDataSources function calls.                    */
  127.                                     
  128.                                     /* Defines the resource type used by configuration    */
  129.                                     /** manager to find the DBMS vendor type for the     */
  130.                                     /** DBMS setup library.                                */
  131. #define kODBCdbmsDriverResId        'oddb'
  132.  
  133. /*
  134.  *
  135.  *    DBMS Setup Shared Library Manager definitions.
  136.  *
  137.  */
  138.                                     /* The following define sets the DBMS Setup Parent    */
  139.                                     /** Id for all DBMS setup libraries.                */
  140.  
  141. #define kODBCdbmsSetupParentID        "appl:ODBC$DBMSsetupParentId"
  142.  
  143.                                     /* The following defines are for use in calling     */
  144.                                     /** the DBMS Setup functions by name.                */
  145.                                     /* AT LEAST FOR NOW, IT SEEMS THAT IF THE ROUTINE    */
  146.                                     /** IS DECLARED AS pascal THEN THE NAMES HAVE TO BE    */
  147.                                     /** UPPER CASE.                                        */
  148. //#define kConfigDSNId                "ConfigDSN"
  149. #define kConfigDSNId                "CONFIGDSN"
  150.  
  151.                                     /* Defines the resource type used by configuration    */
  152.                                     /** manager to find the DBMS vendor type for the     */
  153.                                     /** DBMS setup library.                                */
  154. #define kODBCdbmsSetupResId            'odds'
  155.  
  156. /*
  157.  *
  158.  *    Data Translate Shared Library Manager definitions.
  159.  *
  160.  */
  161.                                     /* The following define sets the DBMS Setup Parent    */
  162.                                     /** Id for all DBMS setup libraries.                */
  163.  
  164. #define kODBCdataTranslateParentID    "appl:ODBC$DataTranslateParentId"
  165.  
  166.                                     /* The following defines are for use in calling     */
  167.                                     /** the Data Translate functions by name.            */
  168.  
  169. //#define kSQLDataSourceToDriverId    "SQLDataSourceToDriver"
  170. //#define kSQLDriverToDataSourceId    "SQLDriverToDataSource"
  171. //#define kConfigTranslatorId        "ConfigTranslator"
  172. #define kSQLDataSourceToDriverId    "SQLDATASOURCETODRIVER"
  173. #define kSQLDriverToDataSourceId    "SQLDRIVERTODATASOURCE"
  174. #define kConfigTranslatorId            "CONFIGTRANSLATOR"
  175.  
  176.                                     /* Defines the resource type used by configuration    */
  177.                                     /** manager to find the descriptor for the             */
  178.                                     /** Data Translate library.                            */
  179. #define kODBCdbmsTranslateResId        'oddt'
  180.  
  181.  
  182.