#[no_mangle]
pub unsafe extern "C" fn iohk_jormungandr_vote_proposal_new_public(
vote_plan_id: *const u8,
index: u8,
num_choices: u8,
proposal_out: *mut ProposalPtr
) -> ErrorPtr
Expand description
build the proposal object
This function may fail if:
proposal_out
is null.
num_choices
is out of the allowed range.
This function dereference raw pointers. Even though the function checks if
the pointers are null. Mind not to put random values in or you may see
unexpected behaviors.