pub unsafe fn hash_update_entry(
table: *mut HashTable,
name: *const xmlChar,
userdata: *mut c_void,
f: Option<xmlHashDeallocator>,
) -> c_intExpand description
Update an entry (add or replace).
§UPSTREAM-PARITY
int xmlHashUpdateEntry(xmlHashTablePtr table, const xmlChar *name,
void *userdata, xmlHashDeallocator f);If the key exists, the old payload is deallocated with f and replaced.
If the key doesn’t exist, a new entry is added.
Returns 0 on success, -1 on failure.
§SAFETY
Same as hash_add_entry with an additional deallocator.