[][src]Function opensc_sys::list_attributes_hash_computer

pub unsafe extern "C" fn list_attributes_hash_computer(
    l: *mut list_t,
    hash_computer_fun: element_hash_computer
) -> c_int

set the element hash computing function for the list elements.

[ advanced preference ]

An hash can be requested depicting the list status at a given time. An hash only depends on the elements and their order. By default, the hash of an element is only computed on its reference. With this function, the user can set a custom function computing the hash of an element. If such function is provided, the list_hash() function automatically computes the list hash using the custom function instead of simply referring to element references.

@param l list to operate @param hash_computer_fun pointer to the actual hash computing function @return 0 if the attribute was successfully set; -1 otherwise

@see element_hash_computer()