Ignore:
Timestamp:
Sep 7, 2001, 12:26:42 PM (24 years ago)
Author:
bird
Message:

dll to module conversion.

File:
1 edited

Legend:

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

    r6663 r6677  
    1 /* $Id: db.h,v 1.14 2001-09-06 03:07:32 bird Exp $ */
     1/* $Id: db.h,v 1.15 2001-09-07 10:24:07 bird Exp $ */
    22/*
    33 * DB - contains all database routines
     
    2929#define FUNCTION_ODIN32_API             'A' /* for Odin32 APIs (ie. LoadLibrary) */
    3030#define FUNCTION_INTERNAL_ODIN32_API    'I' /* for Internal/Additional Odin32 APIs (ie. RegisterLxExe) */
    31 #define FUNCTION_OTHER                  'O' /* for all other functions (ie. OSLibInitWSeBFileIO) */
     31#define FUNCTION_OTHER                  'F' /* for all other functions (ie. OSLibInitWSeBFileIO) */
     32#define FUNCTION_METHOD                 'M'
     33#define FUNCTION_OPERATOR               'O'
     34#define FUNCTION_CONSTRUCTOR            'C'
     35#define FUNCTION_DESTRUCTOR             'D'
    3236
    3337/* type flags of dll */
     
    4953        /* function name and type */
    5054        char *      pszName;
     55        char *      pszClass;
     56        char        fchType;            /* function type. */
    5157        char *      pszReturnType;
    5258        long        cRefCodes;
     
    8995        unsigned long   cFns;
    9096        signed long     alRefCode[NBR_FUNCTIONS];
    91         signed long     alDllRefCode[NBR_FUNCTIONS];
     97        signed long     alModRefCode[NBR_FUNCTIONS];
    9298        signed long     alAliasFn[NBR_FUNCTIONS];     /* -1 is SQL-NULL, -2 is "do not mind", >= 0 ref to function. */
    9399        signed long     alFileRefCode[NBR_FUNCTIONS]; /* -1 is SQL-NULL, -2 is "do not mind", >= 0 ref to file. */
     100        char            achType[NBR_FUNCTIONS];
    94101    } FNFINDBUF, *PFNFINDBUF;
    95102
     
    106113                                       const char *pszDatabase);
    107114    BOOL             _System dbDisconnect();
    108     signed long      _System dbGetDll(const char *pszDllName);
    109     signed long      _System dbCountFunctionInDll(signed long ulDll,
    110                                                   BOOL fNotAliases);
    111     signed long      _System dbCheckInsertDll(const char *pszDll, char fchType);
     115    signed long      _System dbGetModule(const char *pszModName);
     116    signed long      _System dbCountFunctionInModule(signed long lModule,
     117                                                     BOOL fNotAliases);
     118    //signed long      _System dbCheckInsertDll(const char *pszDll, char fchType);
     119    signed long      _System dbCheckInsertModule(const char *pszModule, char fchType);
    112120    unsigned short   _System dbGet(const char *pszTable,
    113121                                   const char *pszGetColumn,
    114122                                   const char *pszMatch1,
    115123                                   const char *pszMatchValue1);
    116     BOOL             _System dbInsertUpdateFunction(signed long lDll,
     124    BOOL             _System dbInsertUpdateFunction(signed long lModule,
    117125                                                    const char *pszFunction,
    118126                                                    const char *pszIntFunction,
     
    120128                                                    BOOL fIgnoreOrdinal,
    121129                                                    char fchType);
    122     BOOL             _System dbInsertUpdateFile(signed long lDll,
     130    BOOL             _System dbInsertUpdateFile(signed long lModule,
    123131                                                const char *pszFilename,
    124132                                                const char *pszDescription,
     
    128136    BOOL             _System dbFindFunction(const char *pszFunctionName,
    129137                                            PFNFINDBUF pFnFindBuf,
    130                                             signed long lDll);
    131     signed long      _System dbFindFile(signed long lDll, const char *pszFilename);
     138                                            signed long lModule);
     139    signed long      _System dbFindFile(signed long lModule, const char *pszFilename);
    132140    signed long      _System dbFindAuthor(const char *pszAuthor, const char *pszEmail);
    133141    signed long      _System dbGetFunctionState(signed long lRefCode);
    134142    unsigned long    _System dbUpdateFunction(PFNDESC pFnDesc,
    135                                               signed long lDll,
     143                                              signed long lModule,
    136144                                              char *pszError);
    137145    BOOL             _System dbRemoveDesignNotes(signed long lFile);
    138     BOOL             _System dbAddDesignNote(signed long lDll,
     146    BOOL             _System dbAddDesignNote(signed long lModule,
    139147                                             signed long lFile,
    140148                                             const char *pszTitle,
     
    160168                                                    char *pszDate);
    161169    /* StateUpd stuff */
    162     BOOL             _System dbGetNotUpdatedFunction(signed long lDll,
     170    BOOL             _System dbGetNotUpdatedFunction(signed long lModule,
    163171                                                     DBCALLBACKFETCH dbFetchCallBack);
    164     signed long      _System dbGetNumberOfUpdatedFunction(signed long lDll);
     172    signed long      _System dbGetNumberOfUpdatedFunction(signed long lModule);
    165173
    166174    /* APIImport stuff */
    167     BOOL             _System dbClearUpdateFlagFile(signed long lDll);
    168     BOOL             _System dbClearUpdateFlagFunction(signed long lDll, BOOL fAll);
    169     BOOL             _System dbDeleteNotUpdatedFiles(signed long lDll);
    170     BOOL             _System dbDeleteNotUpdatedFunctions(signed long lDll, BOOL fAll);
     175    BOOL             _System dbClearUpdateFlagFile(signed long lModule);
     176    BOOL             _System dbClearUpdateFlagFunction(signed long lModule, BOOL fAll);
     177    BOOL             _System dbDeleteNotUpdatedFiles(signed long lModule);
     178    BOOL             _System dbDeleteNotUpdatedFunctions(signed long lModule, BOOL fAll);
    171179
    172180#ifdef __cplusplus
Note: See TracChangeset for help on using the changeset viewer.