* xmlDictReference: * @dict: the dictionary * * Increment the reference counter of a dictionary * * Returns 0 in case of success and -1 in case of error */
| 316 | * Returns 0 in case of success and -1 in case of error |
| 317 | */ |
| 318 | int |
| 319 | xmlDictReference(xmlDictPtr dict) { |
| 320 | if (dict == NULL) return -1; |
| 321 | xmlMutexLock(&xmlDictMutex); |
| 322 | dict->ref_counter++; |
| 323 | xmlMutexUnlock(&xmlDictMutex); |
| 324 | return(0); |
| 325 | } |
| 326 | |
| 327 | /** |
| 328 | * xmlDictFree: |
no test coverage detected