* xmlHashUpdateEntry2: * @hash: hash table * @key: first string key * @key2: second string key * @payload: pointer to the payload * @dealloc: deallocator function for replaced item or NULL * * Add a hash table entry with two strings as key. * * See xmlHashUpdateEntry. * * Returns 0 on success and -1 in case of error. */
| 782 | * Returns 0 on success and -1 in case of error. |
| 783 | */ |
| 784 | int |
| 785 | xmlHashUpdateEntry2(xmlHashTablePtr hash, const xmlChar *key, |
| 786 | const xmlChar *key2, void *payload, |
| 787 | xmlHashDeallocator dealloc) { |
| 788 | int res = xmlHashUpdateInternal(hash, key, key2, NULL, payload, |
| 789 | dealloc, 1); |
| 790 | |
| 791 | if (res == 1) |
| 792 | res = 0; |
| 793 | |
| 794 | return(res); |
| 795 | } |
| 796 | |
| 797 | /** |
| 798 | * xmlHashUpdateEntry3: |
no test coverage detected