void myqtt_hash_replace_full ( MyQttHash hash_table,
axlPointer  key,
axlDestroyFunc  key_destroy,
axlPointer  value,
axlDestroyFunc  value_destroy 
)

Replace using the given pair key/value into the given hash, providing the particular key and value destroy function, overrding default ones.

Replace the key/value pair into hash_table. If previous value key/value is not found then the pair is simply added.

Parameters
hash_tablethe hash table to operate on
keythe key value
key_destroyDestroy function to be called for the key.
valuethe value to insert
value_destroyDestroy value function to be called for the data.

References myqtt_mutex_lock(), and myqtt_mutex_unlock().

Referenced by myqtt_conn_set_data_full(), myqtt_ctx_set_data_full(), myqttd_ctx_add_listener_activator(), and myqttd_users_register_backend().