Functions | |
RDM_RETCODE | rdm_rdmAllocTFS (RDM_TFS *phTFS) |
Allocate a TFS handle. More... | |
RDM_RETCODE | rdm_rdmAllocTFSWithMemBuf (void *pMemBuf, size_t memSize, RDM_TFS *phTFS) |
Allocate a TFS handle with an associated memory buffer. More... | |
The TFS instantiation API. The functions here are located in Transactional File Server Interface Library. Linker option:
-lrdmtfs
RDM_RETCODE rdm_rdmAllocTFS | ( | RDM_TFS * | phTFS | ) |
#include <rdmrdmapi.h>
Allocate a TFS handle.
Allocate the TFS handle and use the of malloc for memory requests.
sOKAY | Normal, successful return. |
eNOMEMORY | Out of memory. |
[out] | phTFS | TFS handle |
RDM_RETCODE rdm_rdmAllocTFSWithMemBuf | ( | void * | pMemBuf, |
size_t | memSize, | ||
RDM_TFS * | phTFS | ||
) |
#include <rdmrdmapi.h>
Allocate a TFS handle with an associated memory buffer.
Allocate the TFS handle and use the associated memory buffer instead of malloc for memory requests. If no memory buffer is specified and memSize is greater than 0 memSize will serve as the memory limit for the TFS, but memory will be obtained via calls to malloc.
sOKAY | Normal, successful return. |
eNOMEMORY | Out of memory. |
[in] | pMemBuf | The memory buffer to use instead of getting memory from malloc |
[in] | memSize | The memory size limit (size of pMemBuf if pMemBuf is not NULL) |
[out] | phTFS | TFS handle |