Function gnunet_sys::GNUNET_TRANSPORT_monitor_plugins[][src]

pub unsafe extern "C" fn GNUNET_TRANSPORT_monitor_plugins(
    cfg: *const GNUNET_CONFIGURATION_Handle,
    cb: GNUNET_TRANSPORT_SessionMonitorCallback,
    cb_cls: *mut c_void
) -> *mut GNUNET_TRANSPORT_PluginMonitor

Install a plugin session state monitor callback. The callback will be notified whenever the session changes.

@param cfg configuration to use @param cb callback to invoke on events @param cb_cls closure for @a cb @return NULL on error, otherwise handle for cancellation