diff options
Diffstat (limited to 'src/plist.h')
| -rw-r--r-- | src/plist.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/plist.h b/src/plist.h index a993e3a..3043fb7 100644 --- a/src/plist.h +++ b/src/plist.h | |||
| @@ -81,4 +81,17 @@ extern plist_err_t plist_write_to_stream_default(plist_t plist, FILE *stream, pl | |||
| 81 | extern plist_err_t plist_write_to_stream_limd(plist_t plist, FILE *stream, plist_write_options_t options); | 81 | extern plist_err_t plist_write_to_stream_limd(plist_t plist, FILE *stream, plist_write_options_t options); |
| 82 | extern plist_err_t plist_write_to_stream_plutil(plist_t plist, FILE *stream, plist_write_options_t options); | 82 | extern plist_err_t plist_write_to_stream_plutil(plist_t plist, FILE *stream, plist_write_options_t options); |
| 83 | 83 | ||
| 84 | static inline unsigned int plist_node_ptr_hash(const void *ptr) | ||
| 85 | { | ||
| 86 | uintptr_t h = (uintptr_t)ptr; | ||
| 87 | h ^= (h >> 16); | ||
| 88 | h *= 0x85ebca6b; | ||
| 89 | return (unsigned int)h; | ||
| 90 | } | ||
| 91 | |||
| 92 | static inline int plist_node_ptr_compare(const void *a, const void *b) | ||
| 93 | { | ||
| 94 | return a == b; | ||
| 95 | } | ||
| 96 | |||
| 84 | #endif | 97 | #endif |
