Type Definition gnunet_sys::GNUNET_CORE_StartupCallback[][src]

type GNUNET_CORE_StartupCallback = Option<unsafe extern "C" fn(cls: *mut c_void, my_identity: *const GNUNET_PeerIdentity)>;

Function called after #GNUNET_CORE_connect has succeeded (or failed for good). Note that the private key of the peer is intentionally not exposed here; if you need it, your process should try to read the private key file directly (which should work if you are authorized…). Implementations of this function must not call #GNUNET_CORE_disconnect (other than by scheduling a new task to do this later).

@param cls closure @param my_identity ID of this peer, NULL if we failed