openHiTLS API openHiTLS 0.1.0-Alpha1

◆ BSL_LIST_AddElement()

int32_t BSL_LIST_AddElement ( BslList pList,
void *  pData,
BslListPosition  enPosition 
)

This function creates a new node before, after or at the begining or end of the current node. If the list was already NULL, the node will be added as the only node.The current pointer is changed to point to the newly added node in the list. If the current pointer is NULL then this operation fails.

参数
pList[IN] The list
pData[IN] The element to be added
enPosition[IN] Whether the element is to be added before or after the list
返回值
Theerror code.
BSL_SUCCESSIf successful.