Function nemo_relay_plugin_context_register_subscriber

View as MarkdownOpen in Claude

Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-pii-redaction -p nemo-relay-ffi -p nemo-relay-types -p nemo-relay-plugin -p nemo-relay-worker-proto -p nemo-relay-worker.

#[unsafe(no_mangle)]pub unsafe extern "C" fn nemo_relay_plugin_context_register_subscriber(
    ctx: *mut FfiPluginContext,
    name: *const c_char,
    cb: NemoRelayEventSubscriberCb,
    user_data: *mut c_void,
    free_fn: NemoRelayFreeFn,
) -> NemoRelayStatus

Register an event subscriber into the plugin registration context.

Safety

ctx and name must be valid pointers and the callback must remain valid for the duration of the plugin registration lifetime.