Product Documentation

FairCom DB API for C

Previous Topic

Next Topic

FairCom DB 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 FairCom DB API C API

Resource Locks

TOCIndex