[][src]Function lilv_sys::lilv_port_is_a

pub unsafe extern "C" fn lilv_port_is_a(
    plugin: *const LilvPlugin,
    port: *const LilvPort,
    port_class: *const LilvNode
) -> bool

Determine if a port is of a given class (input, output, audio, etc). For convenience/performance/extensibility reasons, hosts are expected to create a LilvNode for each port class they "care about". Well-known type URI strings are defined (e.g. LILV_URI_INPUT_PORT) for convenience, but this function is designed so that Lilv is usable with any port types without requiring explicit support in Lilv.