ket_process_new

Function ket_process_new 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn ket_process_new( config: *mut (ExecutionTarget, Option<QuantumExecution>), process: &mut *mut Process, ) -> i32
Expand description

Creates a new Process instance with the given process ID.

§Arguments

  • config - [in] A mutable pointer to a Configuration instance.
  • process - [out] A mutable pointer to a Process pointer.

§Returns

An integer representing the error code. 0 indicates success.

§Safety

This function is marked as unsafe because it deals with raw pointers.