NT_GetTopics

Function NT_GetTopics 

Source
pub unsafe extern "C" fn NT_GetTopics(
    inst: NT_Inst,
    prefix: *const WPI_String,
    types: u32,
    count: *mut usize,
) -> *mut NT_Topic
Expand description

Get Published Topic Handles.

Returns an array of topic handles. The results are optionally filtered by string prefix and type to only return a subset of all topics.

§Parameters

  • inst: instance handle
  • prefix: name required prefix; only topics whose name starts with this string are returned
  • types: bitmask of NT_Type values; 0 is treated specially as a “don’t care”
  • count: output parameter; set to length of returned array

§Returns

Array of topic handles.