Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbGetLibType

Retrieves the c-tree operational model used when compiling the c-treeDB API library.

Declaration

CTLIB_TYPE ctdbGetLibType(CTHANDLE Handle)

Description

ctdbGetLibType provides the ability to detect c-tree Plus operational model used when compiling a c-treeDB API C library.

  • Handle the Database Handle.

Returns

ctdbGetLibType returns a value of type CTLIB_TYPE.

CTLIB_TYPE

Description

CTLIB_SINGLE

Single user libary.

CTLIB_MUSER

Multi-user libary.

CTLIB_CLIENT

Client libary

CTLIB_LOCLIB

LOCLIB model.

CTLIB_SERVER

Server side library.

CTLIB_THREA

Multi-threaded enabled.

CTLIB_TRAN

Transaction processing enabled.

The return value has the following bits set if the library supports optional features.

Optional Bits

Description

 

CTLIB_THREA

Multi-threaded enabled.

CTLIB_TRAN

Transaction processing enabled.

See c-treeDB Errors and Return Values for a complete listing of valid c-treeDB error codes and return values.

TOCIndex