#[unsafe(no_mangle)]pub extern "C" fn ket_process_new(
qpu_config: *mut QPUConfig,
process: &mut *mut Process,
) -> i32Expand description
Allocates a new Process using the provided QPU configuration.
qpu_config is consumed by this call: ownership is transferred to the
newly created Process and the pointer must not be used afterwards.
§Parameters
qpu_config: Pointer to aQPUConfig.process: Output: receives the pointer to the newly allocatedProcess. Must eventually be freed withket_process_delete.
§Returns
0 on success, non-zero error code on failure.