util: hash: Make virHashCodeGen mockable

Export the function from the util module so that dynamic linking can
override it.
This commit is contained in:
Peter Krempa
2017-08-03 09:49:15 +02:00
parent 8982f3ab20
commit 0b1ecf7b53
2 changed files with 6 additions and 1 deletions
+4
View File
@@ -1774,6 +1774,10 @@ virHashUpdateEntry;
virHashValueFree;
# util/virhashcode.h
virHashCodeGen;
# util/virhook.h
virHookCall;
virHookInitialize;
+2 -1
View File
@@ -30,6 +30,7 @@
# include "internal.h"
uint32_t virHashCodeGen(const void *key, size_t len, uint32_t seed);
uint32_t virHashCodeGen(const void *key, size_t len, uint32_t seed)
ATTRIBUTE_NOINLINE;
#endif /* __VIR_HASH_CODE_H__ */