Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

c-treeDB API C API - Working with Resources

Resource operations are usually performed in the following sequence:

  1. Allocate a resource handle with the FairCom DB API call, ctdbAllocResource().
  2. Perform the desired resource operation such as adding, updating, deleting or reading resources.
  3. Once a resource handle is no longer required, call ctdbFreeResource() to free any resource locks and release the memory allocated for the resource handle.

In This Section

Allocating and Releasing Resource Handles

Adding New Resources

Deleting Resources

Updating Existing Resources

Reading Resources

Get and Set Resource Properties with the c-treeDB API C API

Resource Locks

TOCIndex