Function GenieNode_create

Function Documentation

Genie_Status_t GenieNode_create(const GenieNodeConfig_Handle_t nodeConfigHandle, GenieNode_Handle_t *nodeHandle)

A function to create a node. The node can be configured using a builder pattern.

Parameters
  • nodeConfigHandle[in] A handle to a valid config. Must not be NULL.

  • nodeHandle[out] A handle to the created node. Must not be NULL.

Returns

Status code:

  • GENIE_STATUS_SUCCESS: API call was successful.

  • GENIE_STATUS_ERROR_INVALID_HANDLE: Config handle is invalid.

  • GENIE_STATUS_ERROR_INVALID_ARGUMENT: At least one argument is invalid.

  • GENIE_STATUS_ERROR_MEM_ALLOC: Memory allocation failure.