Skip to main content

pamoja_updater_delegation

Function pamoja_updater_delegation 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_updater_delegation( updater: *const PamojaUpdater, out_delegation: *mut PamojaDelegation, ) -> bool
Expand description

Reads the delegation an updater currently honours.

§Arguments

  • updater - the updater.
  • out_delegation - receives the delegation when there is one.

§Returns

true if a delegation is held and was written out, or false if releases must be signed by the anchor itself.

§Safety

updater must be a live handle from pamoja_updater_new, and out_delegation must be writable or null.