⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sdbdefs.h

📁 csta协议的开发
💻 H
📖 第 1 页 / 共 2 页
字号:
    SDB_CURSOR_NOT_ACTIVE = 530,
    SDB_CURSOR_SELECTION_NOT_SET = 531,
    SDB_INVALID_CURSOR_OP = 532,
    SDB_CURSOR_ALREADY_ACTIVE = 533,
    SDB_CURSOR_ACTIVE = 534,
    SDB_OBJECT_NOT_ACCESSED = 535,
    SDB_CONTENTION = 536,
    SDB_NO_MORE_DISK_SPACE = 537,
    SDB_NO_MEMORY = 538,
    SDB_MAX_OPEN_FILES_EXCEEDED = 539,
    SDB_NO_ACTIVE_TRANSACTION = 540,
    SDB_TRANSACTION_ALREADY_ACTIVE = 541,
    SDB_TRANSACTION_ERROR = 542,
    SDB_TRANSACTION_ABORTED = 543,
    SDB_INVALID_OPCODE = 544,
    SDB_INVALID_RTN_CNT = 545,
    SDB_BUF_TOO_SMALL = 546,
    SDB_KEY_SPECIFICATION = 547,
    SDB_ATTR_OVER_MAX = 548,
    SDB_ATTR_UNDER_MIN = 549,
    SDB_DATA_TOO_LARGE = 550,
    SDB_DOT_IN_KEY = 551,
    SDB_WRITE_FAILED = 552,
    SDB_READ_FAILURE = 553,
    SDB_FILE_NOT_PRESENT = 554,
    SDB_NO_INFORM1_LINE = 555,
    SDB_INVALID_ATTR_LIST = 556,
    SDB_INVALID_KEY_LIST = 557,
    SDB_INVALID_SELECT_LIST = 558,
    SDB_FOREIGN_KEY = 559,
    SDB_OLD_DICTIONARY_FAILURE = 560,
    SDB_UPGRADE_ERR = 561,
    SDB_FILE_ALREADY_EXISTS = 562,
    SDB_OPEN_SDB_LOG_FAILED = 563,
    SDB_WRITE_SDB_LOG_FAILED = 564,
    SDB_FILE_OPEN_FAILURE = 565,
    SDB_QUERY_VERS_FAILED = 566,
    SDB_BA_BACKUP_FAILED = 567,
    SDB_SIMPLE_UPDATE_FAILED = 568,
    SDB_QRY_FILES_FAILED = 569,
    SDB_QRY_ATTR_FAILED = 570,
    SDB_INVALID_INPUT_LINE = 571,
    SDB_CREATE_TMPLT_FAILED = 572,
    SDB_FLAT_UPDATE_FAILED = 573,
    SDB_CANT_MODIFY_MVATTR = 574,
    SDB_DUPLICATE_FILE_NAMES = 575,
    SDB_INVALID_VENDOR_LEN = 576,
    SDB_INVALID_SERVICE_LEN = 577,
    SDB_INVALID_SRV_TYPE = 578,
    SDB_INVALID_SRV_NAME_LEN = 579,
    SDB_ALLOC_RESOURCE_ERR = 580,
    SDB_INIT_TSRV_PASSWD_ERR = 581,
    SDB_GET_TSRV_DEFAULT_ERR = 582,
    SDB_TSRV_LOADED = 583,
    SDB_SCHEMA_CHANGE_ERR = 584,
    SDB_MUST_BE_CSTA = 585,
    SDB_INVALID_FILE_NM = 586,
    SDB_INVALID_FILE_FORMAT = 587,
    SDB_LAST_ERR = 599
} SDBFailureCodes_t;

typedef unsigned char   SDBOptions_t;
#define                     SDB_NON_FATAL 0x40
#define                     SDB_OVERWRITE 0x20
#define                     SDB_CONVERT_SIMPLE 0x10
#define                     SDB_CONVERT_FLAT 0x08

typedef unsigned char   SDBConvertOptions_t;
#define                     BTRV_TO_NDS 0x40
#define                     BTRV_TO_UNIX 0x20

typedef struct SDBOpenConnection_t {
    SDBContext_t    context;
    SDBLoginName_t  login;
} SDBOpenConnection_t;

typedef struct SDBOpenConnConfEvent_t {
    SDBConnectionID_t connID;
    SDBContext_t    context;
} SDBOpenConnConfEvent_t;

typedef struct SDBCloseConnection_t {
    SDBConnectionID_t connID;
} SDBCloseConnection_t;

typedef struct SDBCloseConnConfEvent_t {
    Nulltype        null;
} SDBCloseConnConfEvent_t;

typedef struct SDBInsertObject_t {
    SDBConnectionID_t connID;
    SDBFileType_t   fileType;
    struct SDBAttributeList_t FAR *attrList;
} SDBInsertObject_t;

typedef struct SDBInsertObjectConfEvent_t {
    Nulltype        null;
} SDBInsertObjectConfEvent_t;

typedef struct SDBInsertAttribute_t {
    SDBConnectionID_t connID;
    SDBFileType_t   fileType;
    struct SDBAttributeList_t FAR *keyList;
    struct SDBAttributeList_t FAR *attrList;
} SDBInsertAttribute_t;

typedef struct SDBInsertAttributeConfEvent_t {
    Nulltype        null;
} SDBInsertAttributeConfEvent_t;

typedef struct SDBDeleteObject_t {
    SDBConnectionID_t connID;
    SDBFileType_t   fileType;
    struct SDBAttributeList_t FAR *keyList;
} SDBDeleteObject_t;

typedef struct SDBDeleteObjectConfEvent_t {
    Nulltype        null;
} SDBDeleteObjectConfEvent_t;

typedef struct SDBDeleteAttribute_t {
    SDBConnectionID_t connID;
    SDBFileType_t   fileType;
    struct SDBAttributeList_t FAR *keyList;
    struct SDBAttributeList_t FAR *attrList;
} SDBDeleteAttribute_t;

typedef struct SDBDeleteAttributeConfEvent_t {
    Nulltype        null;
} SDBDeleteAttributeConfEvent_t;

typedef struct SDBSelectObject_t {
    SDBConnectionID_t connID;
    SDBFileType_t   fileType;
    struct SDBAttributeList_t FAR *keyList;
    SDBSelectOpcodes_t opcode;
    struct SDBSelectAttrList_t FAR *attrList;
    SDBBufferSize_t bufSize;
    SDBReturnedCount_t retrnCnt;
} SDBSelectObject_t;

typedef struct SDBSelectObjectConfEvent_t {
    struct SDBAttributeList_t FAR *attrList;
    SDBReturnedCount_t retrnCnt;
    SDBRetrievalStatus_t status;
} SDBSelectObjectConfEvent_t;

typedef struct SDBOpenCursor_t {
    SDBConnectionID_t connID;
} SDBOpenCursor_t;

typedef struct SDBOpenCursorConfEvent_t {
    Nulltype        null;
} SDBOpenCursorConfEvent_t;

typedef struct SDBFetchCursor_t {
    SDBConnectionID_t connID;
    SDBBufferSize_t bufSize;
    SDBReturnedCount_t retrnCnt;
} SDBFetchCursor_t;

typedef struct SDBFetchCursorConfEvent_t {
    struct SDBAttributeList_t FAR *attrList;
    SDBReturnedCount_t retrnCnt;
    SDBRetrievalStatus_t status;
} SDBFetchCursorConfEvent_t;

typedef struct SDBCloseCursor_t {
    SDBConnectionID_t connID;
} SDBCloseCursor_t;

typedef struct SDBCloseCursorConfEvent_t {
    Nulltype        null;
} SDBCloseCursorConfEvent_t;

typedef struct SDBModifyObject_t {
    SDBConnectionID_t connID;
    SDBFileType_t   fileType;
    struct SDBAttributeList_t FAR *keyList;
    struct SDBAttributeList_t FAR *attrList;
} SDBModifyObject_t;

typedef struct SDBModifyObjectConfEvent_t {
    Nulltype        null;
} SDBModifyObjectConfEvent_t;

typedef struct SDBStartTrans_t {
    SDBConnectionID_t connID;
} SDBStartTrans_t;

typedef struct SDBStartTransConfEvent_t {
    Nulltype        null;
} SDBStartTransConfEvent_t;

typedef struct SDBCommitTrans_t {
    SDBConnectionID_t connID;
} SDBCommitTrans_t;

typedef struct SDBCommitTransConfEvent_t {
    Nulltype        null;
} SDBCommitTransConfEvent_t;

typedef struct SDBRollbackTrans_t {
    SDBConnectionID_t connID;
} SDBRollbackTrans_t;

typedef struct SDBRollbackTransConfEvent_t {
    Nulltype        null;
} SDBRollbackTransConfEvent_t;

typedef struct SDBBackupDataBase_t {
    SDBFileName_t   fileNm;
    SDBComments_t   comments;
} SDBBackupDataBase_t;

typedef struct SDBBackupDataBaseConfEvent_t {
    Nulltype        null;
} SDBBackupDataBaseConfEvent_t;

typedef struct SDBUpdateDataBase_t {
    SDBFlatFileName_t flatFile;
    SDBSimpleFileName_t simpleFile;
    SDBErrorFileName_t errorFile;
    SDBOptions_t    options;
} SDBUpdateDataBase_t;

typedef struct SDBUpdateDataBaseConfEvent_t {
    Nulltype        null;
} SDBUpdateDataBaseConfEvent_t;

typedef struct SDBCreateTemplate_t {
    SDBFlatFileName_t flatFile;
    SDBSimpleFileName_t simpleFile;
} SDBCreateTemplate_t;

typedef struct SDBCreateTemplateConfEvent_t {
    Nulltype        null;
} SDBCreateTemplateConfEvent_t;

typedef struct SDBQueryVersions_t {
    Nulltype        null;
} SDBQueryVersions_t;

typedef struct SDBQueryVersionsConfEvent_t {
    SDBVersion_t    dataDictionaryVersion;
    SDBVersion_t    oldDictionaryVersion;
    SDBVersion_t    overallVersion;
    SDBVersion_t    userVersion;
    SDBVersion_t    worktopVersion;
    SDBVersion_t    deviceVersion;
    SDBVersion_t    dlistVersion;
    SDBVersion_t    tlinkVersion;
    SDBVersion_t    tlistVersion;
    SDBVersion_t    oamlistVersion;
    SDBVersion_t    tservVersion;
    SDBDriverType_t driverType;
    SDBVersion_t    driverVersion;
    SDBVersion_t    tsrvnlmVersion;
    SDBDriverState_t driverState;
    SDBBtrvVersion_t btrvVersion;
} SDBQueryVersionsConfEvent_t;

typedef struct SDBQueryFiles_t {
    SDBBufferSize_t bufSize;
} SDBQueryFiles_t;

typedef struct SDBQueryFilesConfEvent_t {
    struct SDBFileList_t FAR *fileList;
} SDBQueryFilesConfEvent_t;

typedef struct SDBQueryAttributes_t {
    SDBFileType_t   fileType;
    SDBBufferSize_t bufSize;
    SDBReturnedCount_t retrnCnt;
} SDBQueryAttributes_t;

typedef struct SDBQueryAttributesConfEvent_t {
    struct SDBQryAttrList_t FAR *attrList;
    SDBReturnedCount_t retrnCnt;
    SDBRetrievalStatus_t status;
} SDBQueryAttributesConfEvent_t;

typedef struct SDBFileReadList_t {
    _Int             count;
    SDBFileReadCount_t FAR *sdbFileRd;
} SDBFileReadList_t;

typedef struct SDBQueryStatus_t {
    Nulltype        null;
} SDBQueryStatus_t;

typedef struct SDBQueryStatusConfEvent_t {
    SDBConnectCount_t sdbConns;
    SDBMemoryUsed_t memUsed;
    SDBFileReadList_t fileRd;
} SDBQueryStatusConfEvent_t;

typedef struct SDBUniversalFailureConfEvent_t {
    SDBFailureCodes_t error;
    SDBAttributeID_t attrID;
} SDBUniversalFailureConfEvent_t;

typedef struct SDBUniversalFailureEvent_t {
    SDBFailureCodes_t error;
} SDBUniversalFailureEvent_t;

typedef struct SDBSelectKey_t {
    SDBConnectionID_t connID;
    SDBFileType_t   fileType;
    SDBAttributeID_t key;
    SDBAttrHdr_t    filter;
    SDBBufferSize_t bufSize;
} SDBSelectKey_t;

typedef struct SDBSelectKeyConfEvent_t {
    SDBRetrievalStatus_t status;
    struct {
        short           length;
        unsigned char   FAR *value;
    } keyList;
} SDBSelectKeyConfEvent_t;

typedef struct SDBConvertDataBase_t {
    SDBFlatFileName_t flatFile;
    SDBFlatFileName_t finalFile;
    SDBErrorFileName_t errorFile;
    SDBConvertOptions_t options;
    SDBContext_t    context;
} SDBConvertDataBase_t;

typedef struct SDBConvertDataBaseConfEvent_t {
    Nulltype        null;
} SDBConvertDataBaseConfEvent_t;

typedef struct SDBBackupNdsDataBase_t {
    SDBFileName_t   fileNm;
    SDBComments_t   comments;
    SDBContext_t    context;
} SDBBackupNdsDataBase_t;

typedef struct SDBBackupNdsDataBaseConfEvent_t {
    Nulltype        null;
} SDBBackupNdsDataBaseConfEvent_t;

typedef struct SDBUpdateNdsDataBase_t {
    SDBFlatFileName_t flatFile;
    SDBSimpleFileName_t simpleFile;
    SDBErrorFileName_t errorFile;
    SDBOptions_t    options;
    SDBContext_t    context;
} SDBUpdateNdsDataBase_t;

typedef struct SDBUpdateNdsDataBaseConfEvent_t {
    Nulltype        null;
} SDBUpdateNdsDataBaseConfEvent_t;


extern void FAR *sdb_asn_tbl;    /* encoder-decoder control table */

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -