Product Documentation

FairCom DB API for C

Previous Topic

Next Topic

ctdbClearCallback

Clears a particular callback associated with a FairCom DB API handle.

DECLARATION

CTDBRET ctdbClearCallback(CTHANDLE Handle, CTDB_CALLBACK_TYPE CallBackType);

DESCRIPTION

You can clear a particular callback associated with a handle. Handle can be a session, database, table or record handle. CallBackType is one of the valid callback types.

RETURN

Value

Symbolic Constant

Explanation

0

NO_ERROR

No error occurred.

See Appendix A for a complete listing of valid c-tree Plus error values.

EXAMPLE

/* allocate a record handle */

CTHANDLE hSession = ctdbAllocSession(CTSESSION_CTREE);


/* make sure there are no CTDB_ON_TABLE_OPEN callbacks */

if (ctdbClearCallback(hSession, CTDB_ON_TABLE_OPEN))

printf("ctdbClearCallback failed\n");

SEE ALSO

ctdbClearAllCallback(), ctdbGetCallback(), ctdbSetCallback()

TOCIndex