[−][src]Function lsl_sys::lsl_resolver_results
pub unsafe extern "C" fn lsl_resolver_results(
res: lsl_continuous_resolver,
buffer: *mut lsl_streaminfo,
buffer_elements: u32
) -> i32
Obtain the set of currently present streams on the network (i.e. resolve result).
@param res A continuous resolver (previously created with one of the
lsl_create_continuous_resolver() functions).
@param buffer A user-allocated buffer to hold the current resolve results.
@attention It is the user's responsibility to either destroy the resulting streaminfo objects or
to pass them back to the LSL during during creation of an inlet.
@attention The stream_infos returned by the resolver are only short versions that do not include
the lsl_get_desc() field (which can be arbitrarily big).
To obtain the full stream information you need to call lsl_get_info() on the inlet after you have created one. @param buffer_elements The user-provided buffer length. @return The number of results written into the buffer (never more than the provided # of slots) or a negative number if an error has occurred (values corresponding to #lsl_error_code_t).