[][src]Function opensc_sys::list_attributes_copy

pub unsafe extern "C" fn list_attributes_copy(
    l: *mut list_t,
    metric_fun: element_meter,
    copy_data: c_int
) -> c_int

require to free element data when list entry is removed (default: don't free).

[ advanced preference ]

By default, when an element is removed from the list, it disappears from the list by its actual data is not free()d. With this option, every deletion causes element data to be freed.

It is responsibility of this function to correctly handle NULL values, if NULL elements are inserted into the list.

@param l list to operate @param metric_fun pointer to the actual metric function @param copy_data 0: do not free element data (default); non-0: do free @return 0 if the attribute was successfully set; -1 otherwise

@see element_meter() @see list_meter_int8_t() @see list_meter_int16_t() @see list_meter_int32_t() @see list_meter_int64_t() @see list_meter_uint8_t() @see list_meter_uint16_t() @see list_meter_uint32_t() @see list_meter_uint64_t() @see list_meter_float() @see list_meter_double() @see list_meter_string()