1 /* 2 * Copyright 2002-2013, Haiku, Inc. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 * 5 * Copyright 2001-2002, Travis Geiselbrecht. All rights reserved. 6 * Distributed under the terms of the NewOS License. 7 */ 8 #ifndef _KERNEL_UTIL_STRING_HASH_H 9 #define _KERNEL_UTIL_STRING_HASH_H 10 11 12 #include <SupportDefs.h> 13 14 15 #ifdef __cplusplus 16 extern "C" { 17 #endif 18 19 20 uint32 hash_hash_string(const char* string); 21 uint32 hash_hash_string_part(const char* string, size_t maxLength); 22 23 24 #ifdef __cplusplus 25 } 26 #endif 27 28 29 #endif /* _KERNEL_UTIL_STRING_HASH_H */ 30