createWorkflow method

Pointer<Void> createWorkflow(
  1. Pointer<Void> libraryPtr,
  2. String workflowName
)

Implementation

Pointer<Void> createWorkflow(Pointer<Void> libraryPtr, String workflowName) {
  Pointer<Pointer<Void>> workflowOut = calloc();
  int error = _createWorkflow(libraryPtr, workflowName.toNativeUtf8(), workflowOut);

  if( error != FaceCaptureErrorCode.noErrors.value ) {
    throw FaceCaptureException(error);
  }
  Pointer<Void> workflowPtr = workflowOut.value;
  calloc.free(workflowOut);

  return workflowPtr;
}