Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbGetSessionHandle

Return the session handle from the opaque handle.

Declaration

CTHANDLE ctdbGetSessionHandle(CTHANDLE Handle)

Description

ctdbGetSessionHandle() returns the session handle from the opaque handle, having as parameter any handle inside the session. To allocate a session handle, use ctdbAllocSession().

  • Handle [in] may be a session handle, a database handle, a table handle, a record handle, a field handle, an index handle, or a segment handle.

Returns

ctdbGetSessionHandle() returns the session handle or NULL on failure.

Example


hSess=ctdbGetSessionHandle(hDatabase);

See also

ctdbAllocSession(), ctdbAllocDatabase(), ctdbAllocTable(), ctdbAllocRecord(), ctdbAllocField(), ctdbAllocIndex(), ctdbAllocSegment(), ctdbGetDatabaseHandle()

TOCIndex