Ignore:
Timestamp:
Jul 21, 2000, 11:09:45 PM (25 years ago)
Author:
bird
Message:

Corrections and handling of the updated field in function and file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/database/db.h

    r3841 r3882  
    1 /* $Id: db.h,v 1.10 2000-07-18 07:35:00 bird Exp $ */
     1/* $Id: db.h,v 1.11 2000-07-21 21:09:45 bird Exp $ */
    22/*
    33 * DB - contains all database routines
     
    1919*   Defined Constants                                                          *
    2020*******************************************************************************/
    21 #define NBR_PARAMETERS      30
    22 #define NBR_FUNCTIONS       20
    23 #define NBR_AUTHORS         20
    24 #define ALIAS_NULL          -1
    25 #define ALIAS_DONTMIND      -2
     21#define NBR_PARAMETERS                  30
     22#define NBR_FUNCTIONS                   20
     23#define NBR_AUTHORS                     20
     24
     25#define ALIAS_NULL                      -1
     26#define ALIAS_DONTMIND                  -2
     27
     28/* type flags of function */
     29#define FUNCTION_ODIN32_API             'A' /* for Odin32 APIs (ie. LoadLibrary) */
     30#define FUNCTION_INTERNAL_ODIN32_API    'I' /* for Internal/Additional Odin32 APIs (ie. RegisterLxExe) */
     31#define FUNCTION_OTHER                  'O' /* for all other functions (ie. OSLibInitWSeBFileIO) */
     32
     33/* type flags of dll */
     34#define DLL_ODIN32_API                  'A' /* for Odin32 API dll (ie. kernel32) */
     35#define DLL_INTERNAL                    'I' /* for Internal Odin32 (API) dll (ie. odincrt) */
     36#define DLL_SUPPORT                     'S' /* for support stuff (ie. pe.exe and win32k.sys). */
     37#define DLL_TOOLS                       'T' /* for tools (executables and dlls) */
    2638
    2739
     
    8193*   Exported Functions                                                         *
    8294*******************************************************************************/
    83     char *          _System dbGetLastErrorDesc(void);
     95    char *           _System dbGetLastErrorDesc(void);
    8496
    85     BOOL            _System dbConnect(const char *pszHost,
    86                                       const char *pszUser,
    87                                       const char *pszPassword,
    88                                       const char *pszDatabase);
    89     BOOL            _System dbDisconnect();
    90     signed short    _System dbGetDll(const char *pszDllName);
    91     signed long     _System dbCountFunctionInDll(signed long ulDll,
    92                                                  BOOL fNotAliases);
    93     signed short    _System dbCheckInsertDll(const char *pszDll);
    94     unsigned short  _System dbGet(const char *pszTable,
    95                                   const char *pszGetColumn,
    96                                   const char *pszMatch1,
    97                                   const char *pszMatchValue1);
    98     BOOL            _System dbInsertUpdateFunction(unsigned short usDll,
    99                                                    const char *pszFunction,
    100                                                    const char *pszIntFunction,
    101                                                    unsigned long ulOrdinal,
    102                                                    BOOL fIgnoreOrdinal);
    103     BOOL            _System dbInsertUpdateFile(unsigned short usDll,
    104                                                const char *pszFilename,
    105                                                const char *pszDescription,
    106                                                const char *pszLastDateTime,
    107                                                signed long lLastAuthor,
    108                                                const char *pszRevision);
    109     BOOL            _System dbFindFunction(const char *pszFunctionName,
    110                                            PFNFINDBUF pFnFindBuf,
    111                                            signed long lDll);
    112     signed long     _System dbFindFile(signed long lDll, const char *pszFilename);
    113     signed long     _System dbFindAuthor(const char *pszAuthor, const char *pszEmail);
    114     signed long     _System dbGetFunctionState(signed long lRefCode);
    115     unsigned long   _System dbUpdateFunction(PFNDESC pFnDesc,
    116                                              signed long lDll,
    117                                              char *pszError);
    118     BOOL            _System dbRemoveDesignNotes(signed long lFile);
    119     BOOL            _System dbAddDesignNote(signed long lDll,
    120                                             signed long lFile,
    121                                             const char *pszTitle,
    122                                             const char *pszText,
    123                                             signed long lSeqNbr,
    124                                             signed long lSeqNbrFile);
    125     unsigned long   _System dbCreateHistory(char *pszError);
    126     unsigned long   _System dbCheckIntegrity(char *pszError);
     97    BOOL             _System dbConnect(const char *pszHost,
     98                                       const char *pszUser,
     99                                       const char *pszPassword,
     100                                       const char *pszDatabase);
     101    BOOL             _System dbDisconnect();
     102    signed long      _System dbGetDll(const char *pszDllName);
     103    signed long      _System dbCountFunctionInDll(signed long ulDll,
     104                                                  BOOL fNotAliases);
     105    signed long      _System dbCheckInsertDll(const char *pszDll, char fchType);
     106    unsigned short   _System dbGet(const char *pszTable,
     107                                   const char *pszGetColumn,
     108                                   const char *pszMatch1,
     109                                   const char *pszMatchValue1);
     110    BOOL             _System dbInsertUpdateFunction(signed long lDll,
     111                                                    const char *pszFunction,
     112                                                    const char *pszIntFunction,
     113                                                    unsigned long ulOrdinal,
     114                                                    BOOL fIgnoreOrdinal,
     115                                                    char fchType);
     116    BOOL             _System dbInsertUpdateFile(signed long lDll,
     117                                                const char *pszFilename,
     118                                                const char *pszDescription,
     119                                                const char *pszLastDateTime,
     120                                                signed long lLastAuthor,
     121                                                const char *pszRevision);
     122    BOOL             _System dbFindFunction(const char *pszFunctionName,
     123                                            PFNFINDBUF pFnFindBuf,
     124                                            signed long lDll);
     125    signed long      _System dbFindFile(signed long lDll, const char *pszFilename);
     126    signed long      _System dbFindAuthor(const char *pszAuthor, const char *pszEmail);
     127    signed long      _System dbGetFunctionState(signed long lRefCode);
     128    unsigned long    _System dbUpdateFunction(PFNDESC pFnDesc,
     129                                              signed long lDll,
     130                                              char *pszError);
     131    BOOL             _System dbRemoveDesignNotes(signed long lFile);
     132    BOOL             _System dbAddDesignNote(signed long lDll,
     133                                             signed long lFile,
     134                                             const char *pszTitle,
     135                                             const char *pszText,
     136                                             signed long lSeqNbr,
     137                                             signed long lSeqNbrFile);
     138    unsigned long    _System dbCreateHistory(char *pszError);
     139    unsigned long    _System dbCheckIntegrity(char *pszError);
    127140
    128141    /* kHtml stuff */
    129     void *          _System dbExecuteQuery(const char *pszQuery);
    130     signed long     _System dbQueryResultRows(void *pres);
    131     BOOL            _System dbFreeResult(void *pres);
    132     BOOL            _System dbFetch(void *pres,
    133                                     DBCALLBACKFETCH dbFetchCallBack,
    134                                     void *pvUser);
    135     signed long     _System dbDateToDaysAfterChrist(const char *pszDate);
    136     BOOL            _System dbDaysAfterChristToDate(signed long ulDays,
     142    void *           _System dbExecuteQuery(const char *pszQuery);
     143    signed long      _System dbQueryResultRows(void *pres);
     144    BOOL             _System dbFreeResult(void *pres);
     145    BOOL             _System dbFetch(void *pres,
     146                                     DBCALLBACKFETCH dbFetchCallBack,
     147                                     void *pvUser);
     148    signed long      _System dbDateToDaysAfterChrist(const char *pszDate);
     149    BOOL             _System dbDaysAfterChristToDate(signed long ulDays,
    137150                                                    char *pszDate);
    138151    /* StateUpd stuff */
    139     BOOL            _System dbGetNotUpdatedFunction(signed long lDll,
    140                                                     DBCALLBACKFETCH dbFetchCallBack);
    141     signed long     _System dbGetNumberOfUpdatedFunction(signed long lDll);
     152    BOOL             _System dbGetNotUpdatedFunction(signed long lDll,
     153                                                     DBCALLBACKFETCH dbFetchCallBack);
     154    signed long      _System dbGetNumberOfUpdatedFunction(signed long lDll);
     155
     156    /* APIImport stuff */
     157    BOOL             _System dbClearUpdateFlagFile(signed long lDll);
     158    BOOL             _System dbClearUpdateFlagFunction(signed long lDll, BOOL fAll);
     159    BOOL             _System dbDeleteNotUpdatedFiles(signed long lDll);
     160    BOOL             _System dbDeleteNotUpdatedFunctions(signed long lDll, BOOL fAll);
    142161
    143162#ifdef __cplusplus
Note: See TracChangeset for help on using the changeset viewer.