Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbSetResourceName

Set the resource name.

DECLARATION

CTDBRET ctdbDECL ctdbSetResourceName(CTHANDLE resource, pTEXT name);

DSCRIPTION

Set the resource name.

  • resource is a handle allocated by ctdbAllocHandle().
  • name is a resource name. A NULL value is acceptable to clear the current resource name.

RETURN

ctdbSetResourceName() returns CTDBRET_OK on success

EXAMPLE

if (ctdbGetResourceName(hRes) != NULL)

ctdbSetResourceName(hRes, NULL);

SEE ALSO

ctdbAllocResource(), ctdbFreeResource(), ctdbAddResource(), ctdbDeleteResource(), ctdbUpdateResource(), ctdbFirstResource(), ctdbNextResource(), ctdbFindResource(), ctdbFindResourceByName(), ctdbGetResourceType(), ctdbGetResourceNumber(), ctdbSetResourceNumber(), ctdbGetResourceName(), ctdbSetResourceType(), ctdbGetResourceDataLength(), ctdbGetResourceData(), ctdbSetResourceData(), ctdbIsResourceLocked(), ctdbUnlockResource()

TOCIndex