227 CL_IN ClUint32T dataLength);
355 clCntOrderedLlistCreate(
1033 CL_IN ClInt32T length);
1038 CL_IN ClInt32T length);
1178 CL_OUT ClUint32T *pSize);
1213 CL_OUT ClUint32T* pSize);
1253 #define CNT_WALK_RC(cnt,rc) do { \
1255 if(rc == CL_IOC_STOP_WALK) {\
1259 if(oldRc != CL_OK) { \
1261 rc = clCntSizeGet((cnt),&n);\
1262 if(rc != CL_OK || n > 0) { \
Typical defines found in any software project.
Header file of RBE related APIs.
ClPtrT ClCntDataHandleT
Handle of the data.
Definition: clCntApi.h:97
ClRcT clCntNodeDelete(CL_IN ClCntHandleT containerHandle, CL_IN ClCntNodeHandleT nodeHandle)
Deletes a specific node from the Container.
ClRcT clCntNodeUserDataGet(CL_IN ClCntHandleT containerHandle, CL_IN ClCntNodeHandleT nodeHandle, CL_OUT ClCntDataHandleT *pUserDataHandle)
Returns the user-data from the node.
ClRcT clCntKeySizeGet(CL_IN ClCntHandleT containerHandle, CL_IN ClCntKeyHandleT userKey, CL_OUT ClUint32T *pSize)
Returns the number of nodes associated with a user-key.
ClInt32T(* ClCntKeyCompareCallbackT)(CL_IN ClCntKeyHandleT key1, CL_IN ClCntKeyHandleT key2)
Compares the two keys.
Definition: clCntApi.h:151
void(* ClCntDeleteCallbackT)(CL_IN ClCntKeyHandleT userKey, CL_IN ClCntDataHandleT userData)
Gets called While destroying the node of the container.
Definition: clCntApi.h:175
ClRcT clCntThreadSafeLlistCreate(CL_IN ClCntKeyCompareCallbackT fpKeyCompare, CL_IN ClCntDeleteCallbackT fpUserDeleteCallback, CL_IN ClCntDeleteCallbackT fpUserDestroyCallback, CL_IN ClCntKeyTypeT containerKeyType, CL_OUT ClCntHandleT *pContainerHandle)
Creates the container doubly linked list with lock variable.
ClRcT clCntNodeUserKeyGet(CL_IN ClCntHandleT containerHandle, CL_IN ClCntNodeHandleT nodeHandle, CL_OUT ClCntKeyHandleT *pUserKey)
Returns the user-key from the node.
ClRcT(* ClCntWalkCallbackT)(CL_IN ClCntKeyHandleT userKey, CL_IN ClCntDataHandleT userData, CL_IN ClCntArgHandleT userArg, CL_IN ClUint32T dataLength)
Gets called While performing container walk operation.
Definition: clCntApi.h:224
ClRcT clCntRbtreeCreate(CL_IN ClCntKeyCompareCallbackT fpKeyCompare, CL_IN ClCntDeleteCallbackT fpUserDeleteCallback, CL_IN ClCntDeleteCallbackT fpUserDestroyCallback, CL_IN ClCntKeyTypeT containerKeyType, CL_OUT ClCntHandleT *pContainerHandle)
Creates the container red black tree.
ClRcT clCntAllNodesForKeyDelete(CL_IN ClCntHandleT containerHandle, CL_IN ClCntKeyHandleT userKey)
ClRcT clCntDataForKeyGet(CL_IN ClCntHandleT containerHandle, CL_IN ClCntKeyHandleT userKey, CL_OUT ClCntDataHandleT *pUserData)
Returns the user-data associated with a specified key.
ClRcT clCntFirstNodeGet(CL_IN ClCntHandleT containerHandle, CL_OUT ClCntNodeHandleT *pNodeHandle)
Returns the first node from the Container.
ClPtrT ClCntNodeHandleT
Handle of the container Node.
Definition: clCntApi.h:93
ClPtrT ClCntArgHandleT
Handle of the argument which will be passed to callback functions.
Definition: clCntApi.h:101
ClPtrT ClCntHandleT
Handle of the container.
Definition: clCntApi.h:88
ClRcT clCntThreadSafeHashtblCreate(CL_IN ClUint32T numberOfBuckets, CL_IN ClCntKeyCompareCallbackT fpKeyCompare, CL_IN ClCntHashCallbackT fpHashFunction, CL_IN ClCntDeleteCallbackT fpUserDeleteCallback, CL_IN ClCntDeleteCallbackT fpUserDestroyCallback, CL_IN ClCntKeyTypeT containerKeyType, CL_OUT ClCntHandleT *pContainerHandle)
Creates a thread safe hash table.
ClRcT clCntNodeAddAndNodeGet(CL_IN ClCntHandleT containerHandle, CL_IN ClCntKeyHandleT userKey, CL_IN ClCntDataHandleT userData, CL_IN ClRuleExprT *pExp, CL_IN ClCntNodeHandleT *pNodeHandle)
Adds a new node to Container and returns the node handle.
ClUint32T(* ClCntHashCallbackT)(CL_IN ClCntKeyHandleT userKey)
Gets called While doing hash table related operations.
Definition: clCntApi.h:198
ClRcT clCntNextNodeGet(CL_IN ClCntHandleT containerHandle, CL_IN ClCntNodeHandleT currentNodeHandle, CL_OUT ClCntNodeHandleT *pNextNodeHandle)
Returns the next node from the Container.
ClRcT clCntNodeAdd(CL_IN ClCntHandleT containerHandle, CL_IN ClCntKeyHandleT userKey, CL_IN ClCntDataHandleT userData, CL_IN ClRuleExprT *rbeExpression)
Adds a new node to Container.
ClCntKeyTypeT
This enum describes type of the container.
Definition: clCntApi.h:111
ClRcT clCntHashtblCreate(CL_IN ClUint32T numberOfBuckets, CL_IN ClCntKeyCompareCallbackT fpKeyCompare, CL_IN ClCntHashCallbackT fpHashFunction, CL_IN ClCntDeleteCallbackT fpUserDeleteCallback, CL_IN ClCntDeleteCallbackT fpUserDestroyCallback, CL_IN ClCntKeyTypeT containerKeyType, CL_IN ClCntHandleT *pContainerHandle)
Creates the hash table.
ClRcT clCntAllNodesDelete(CL_IN ClCntHandleT containerHandle)
Deletes all the nodes from the Container.
ClRcT clCntLlistCreate(CL_IN ClCntKeyCompareCallbackT fpKeyCompare, CL_IN ClCntDeleteCallbackT fpUserDeleteCallback, CL_IN ClCntDeleteCallbackT fpUserDestroyCallback, CL_IN ClCntKeyTypeT containerKeyType, CL_OUT ClCntHandleT *pContainerHandle)
Creates the container doubly linked list.
ClRcT clCntNodeFind(CL_IN ClCntHandleT containerHandle, CL_IN ClCntKeyHandleT userKey, CL_IN ClCntNodeHandleT *pNodeHandle)
Finds a specific node in the Container.
ClRcT clCntSizeGet(CL_IN ClCntHandleT containerHandle, CL_OUT ClUint32T *pSize)
Returns the size of the Container.
ClRcT clCntThreadSafeRbtreeCreate(CL_IN ClCntKeyCompareCallbackT fpKeyCompare, CL_IN ClCntDeleteCallbackT fpUserDeleteCallback, CL_IN ClCntDeleteCallbackT fpUserDestroyCallback, CL_IN ClCntKeyTypeT containerKeyType, CL_OUT ClCntHandleT *pContainerHandle)
Creates the thread safe container red black tree.
ClRcT clCntPreviousNodeGet(CL_IN ClCntHandleT containerHandle, CL_IN ClCntNodeHandleT currentNodeHandle, CL_OUT ClCntNodeHandleT *pPreviousNodeHandle)
Returns the previous node from the Container.
ClRcT clCntWalk(CL_IN ClCntHandleT containerHandle, CL_IN ClCntWalkCallbackT fpUserWalkCallback, CL_IN ClCntArgHandleT userArg, CL_IN ClInt32T length)
Walks through the Container.
ClPtrT ClCntKeyHandleT
Handle of the key handle.
Definition: clCntApi.h:105
ClRcT clCntDelete(CL_IN ClCntHandleT containerHandle)
Destroys the Container.
ClRcT clCntLastNodeGet(CL_IN ClCntHandleT containerHandle, CL_OUT ClCntNodeHandleT *pNodeHandle)
Returns the last node from the Container.
@ CL_CNT_INVALID_KEY_TYPE
Invalid container type.
Definition: clCntApi.h:123
@ CL_CNT_UNIQUE_KEY
Container contains unique key.
Definition: clCntApi.h:115
@ CL_CNT_NON_UNIQUE_KEY
Container contains non unique key.
Definition: clCntApi.h:119
ClUint32T ClRcT
Clovis return code type.
Definition: clCommon.h:168
#define CL_OUT
CL_OUT macro assists in clearly defining arguments of an API, but has no actual meaning.
Definition: clCommon.h:110
#define CL_IN
CL_IN macro assists in clearly defining arguments of an API, but has no actual meaning.
Definition: clCommon.h:106
Rule to filter data.Expression definition.
Definition: clRuleApi.h:241