Function gnunet_sys::GNUNET_CONTAINER_multipeermap_put[][src]

pub unsafe extern "C" fn GNUNET_CONTAINER_multipeermap_put(
    map: *mut GNUNET_CONTAINER_MultiPeerMap,
    key: *const GNUNET_PeerIdentity,
    value: *mut c_void,
    opt: GNUNET_CONTAINER_MultiHashMapOption
) -> c_int

@ingroup hashmap Store a key-value pair in the map.

@param map the map @param key key to use @param value value to use @param opt options for put @return #GNUNET_OK on success, #GNUNET_NO if a value was replaced (with REPLACE) #GNUNET_SYSERR if #GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_ONLY was the option and the value already exists