phytrace_agent_create_from_yaml

Function phytrace_agent_create_from_yaml 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn phytrace_agent_create_from_yaml( yaml_str: *const c_char, ) -> *mut PhyTraceAgentHandle
Expand description

Create a PhyTrace agent from a YAML configuration string.

Returns a heap-allocated agent handle on success, or null on failure. On failure, call phytrace_last_error() for details.

The returned handle must be freed with phytrace_agent_destroy().