Type Definition gnunet_sys::GNUNET_SERVICE_InitCallback[][src]

type GNUNET_SERVICE_InitCallback = Option<unsafe extern "C" fn(cls: *mut c_void, cfg: *const GNUNET_CONFIGURATION_Handle, sh: *mut GNUNET_SERVICE_Handle)>;

Callback to initialize a service, called exactly once when the service is run.

@param cls closure passed to #GNUNET_SERVICE_MAIN @param cfg configuration to use for this service @param sh handle to the newly create service