Ignore:
Timestamp:
Feb 11, 2000, 7:35:55 PM (26 years ago)
Author:
bird
Message:

Odin32 DB.

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:50 bird Exp $ */
     1/* $Id: db.h,v 1.3 2000-02-11 18:35:54 bird Exp $ */
    22/*
    33 * DB - contains all database routines
     
    1515#endif
    1616
     17
     18/*******************************************************************************
     19*   Defined Constants                                                          *
     20*******************************************************************************/
     21#define NBR_FUNCTIONS   20
     22#define NBR_AUTHORS     20
     23
    1724/*******************************************************************************
    1825*   Structures and Typedefs                                                    *
     
    2734        char *pszName;
    2835        char *pszReturnType;
    29         long  lRefCode;
     36        long  cRefCodes;
     37        long  alRefCode[NBR_FUNCTIONS];
    3038
    3139        /* parameters */
     
    3644        /* authors */
    3745        int   cAuthors;
    38         char *apszAuthor[20];
    39         long  alAuthorRefCode[20];
     46        char *apszAuthor[NBR_AUTHORS];
     47        long  alAuthorRefCode[NBR_AUTHORS];
    4048
    4149        /* status */
     
    4856    {
    4957        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];
    5260    } FNFINDBUF, *PFNFINDBUF;
    5361
     
    5967    char *          _System dbGetLastErrorDesc(void);
    6068
    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);
    6273    BOOL            _System dbDisconnect();
     74    signed short    _System dbGetDll(const char *pszDllName);
     75    signed long     _System dbCountFunctionInDll(signed long ulDll);
     76
    6377    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);
    6989    signed long     _System dbFindAuthor(const char *pszAuthor);
    7090    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);
    7293    unsigned long   _System dbCreateHistory(char *pszError);
    7394    unsigned long   _System dbCheckIntegrity(char *pszError);
     
    7798    signed long     _System dbQueryResultRows(void *pres);
    7899    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);
    80103    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);
    82109
    83110#ifdef __cplusplus
Note: See TracChangeset for help on using the changeset viewer.