[][src]Function lsl_sys::lsl_get_xml

pub unsafe extern "C" fn lsl_get_xml(info: lsl_streaminfo) -> *mut c_char

Retrieve the entire streaminfo in XML format.

This yields an XML document (in string form) whose top-level element is <info>. The info element contains one element for each field of the streaminfo class, including:

  • the core elements <name>, <type>, <channel_count, <nominal_srate>, <channel_format>, <source_id>
  • the misc elements <version>, <created_at>, <uid>, <session_id>, <v4address>, <v4data_port>, <v4service_port>, <v6address>, <v6data_port>, <v6service_port>
  • the extended description element <desc> with user-defined sub-elements. @return A pointer to a copy of the XML text or NULL in the event that an error occurred. @note It is the user's responsibility to deallocate this string when it is no longer needed.