Changeset 2759 for trunk/tools/database/db.h
- Timestamp:
- Feb 11, 2000, 7:35:55 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/database/db.h
r1993 r2759 1 /* $Id: db.h,v 1. 2 1999-12-06 18:11:50bird Exp $ */1 /* $Id: db.h,v 1.3 2000-02-11 18:35:54 bird Exp $ */ 2 2 /* 3 3 * DB - contains all database routines … … 15 15 #endif 16 16 17 18 /******************************************************************************* 19 * Defined Constants * 20 *******************************************************************************/ 21 #define NBR_FUNCTIONS 20 22 #define NBR_AUTHORS 20 23 17 24 /******************************************************************************* 18 25 * Structures and Typedefs * … … 27 34 char *pszName; 28 35 char *pszReturnType; 29 long lRefCode; 36 long cRefCodes; 37 long alRefCode[NBR_FUNCTIONS]; 30 38 31 39 /* parameters */ … … 36 44 /* authors */ 37 45 int cAuthors; 38 char *apszAuthor[ 20];39 long alAuthorRefCode[ 20];46 char *apszAuthor[NBR_AUTHORS]; 47 long alAuthorRefCode[NBR_AUTHORS]; 40 48 41 49 /* status */ … … 48 56 { 49 57 unsigned long cFns; 50 signed long alRefCode[ 10];51 signed long alDllRefCode[ 10];58 signed long alRefCode[NBR_FUNCTIONS]; 59 signed long alDllRefCode[NBR_FUNCTIONS]; 52 60 } FNFINDBUF, *PFNFINDBUF; 53 61 … … 59 67 char * _System dbGetLastErrorDesc(void); 60 68 61 BOOL _System dbConnect(const char *pszHost, const char *pszUser, const char *pszPassword, const char *pszDatabase); 69 BOOL _System dbConnect(const char *pszHost, 70 const char *pszUser, 71 const char *pszPassword, 72 const char *pszDatabase); 62 73 BOOL _System dbDisconnect(); 74 signed short _System dbGetDll(const char *pszDllName); 75 signed long _System dbCountFunctionInDll(signed long ulDll); 76 63 77 signed short _System dbCheckInsertDll(const char *pszDll); 64 unsigned short _System dbGet(const char *pszTable, const char *pszGetColumn, 65 const char *pszMatch1, const char *pszMatchValue1); 66 BOOL _System dbInsertUpdateFunction(unsigned short usDll, const char *pszFunction, 67 unsigned long ulOrdinal, BOOL fIgnoreOrdinal); 68 BOOL _System dbFindFunction(const char *pszFunctionName, PFNFINDBUF pFnFindBuf); 78 unsigned short _System dbGet(const char *pszTable, 79 const char *pszGetColumn, 80 const char *pszMatch1, 81 const char *pszMatchValue1); 82 BOOL _System dbInsertUpdateFunction(unsigned short usDll, 83 const char *pszFunction, 84 const char *pszIntFunction, 85 unsigned long ulOrdinal, 86 BOOL fIgnoreOrdinal); 87 BOOL _System dbFindFunction(const char *pszFunctionName, 88 PFNFINDBUF pFnFindBuf); 69 89 signed long _System dbFindAuthor(const char *pszAuthor); 70 90 signed long _System dbGetFunctionState(signed long lRefCode); 71 unsigned long _System dbUpdateFunction(PFNDESC pFnDesc, char *pszError); 91 unsigned long _System dbUpdateFunction(PFNDESC pFnDesc, 92 char *pszError); 72 93 unsigned long _System dbCreateHistory(char *pszError); 73 94 unsigned long _System dbCheckIntegrity(char *pszError); … … 77 98 signed long _System dbQueryResultRows(void *pres); 78 99 BOOL _System dbFreeResult(void *pres); 79 BOOL _System dbFetch(void *pres, DBCALLBACKFETCH dbFetchCallBack, void *pvUser); 100 BOOL _System dbFetch(void *pres, 101 DBCALLBACKFETCH dbFetchCallBack, 102 void *pvUser); 80 103 signed long _System dbDateToDaysAfterChrist(const char *pszDate); 81 BOOL _System dbDaysAfterChristToDate(signed long ulDays, char *pszDate); 104 BOOL _System dbDaysAfterChristToDate(signed long ulDays, 105 char *pszDate); 106 /* StateUpd stuff */ 107 BOOL _System dbGetNotUpdatedFunction(signed long lDll, 108 DBCALLBACKFETCH dbFetchCallBack); 82 109 83 110 #ifdef __cplusplus
Note:
See TracChangeset
for help on using the changeset viewer.