Product Documentation

FairCom DB API for C

Previous Topic

Next Topic

ctdbClearAllCallback

Clears all callbacks associated with any FairCom DB API handle.

DECLARATION

CTDBRET ctdbClearAllCallback(CTHANDLE Handle);

DESCRIPTION

ctdbClearAllCallback() clears all callbacks associated with a handle. Handle can be a session, database, table or record handle.

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 hRecord = ctdbAllocRecord(hTable);


/* make sure there are no callbacks */

if (ctdbClearAllCallback(hRecord))

printf("ctdbClearAllCallback failed\n");

SEE ALSO

ctdbClearCallback(), ctdbGetCallback(), ctdbSetCallback()

TOCIndex