[−][src]Function dqcsim::bindings::dqcs_tcfg_new_raw
#[no_mangle]pub extern "C" fn dqcs_tcfg_new_raw(
plugin_type: dqcs_plugin_type_t,
name: *const c_char,
callback: Option<extern "C" fn(user_data: *mut c_void, simulator: *const c_char)>,
user_free: Option<extern "C" fn(user_data: *mut c_void)>,
user_data: *mut c_void
) -> dqcs_handle_t
Creates a new plugin thread configuration object from a callback.
The callback is called by DQCsim from a dedicated thread when DQCsim wants to start the plugin. The callback must then in some way spawn a plugin process that connects to the provided simulator string. The callback should return only when the process terminates.