summaryrefslogtreecommitdiff
path: root/sal/rtl/source/hash.h
blob: 81eefc7e1b58df6282382f9c796dc6876f09902c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef INCLUDED_RTL_SOURCE_HASH_H
#define INCLUDED_RTL_SOURCE_HASH_H

#ifndef _SAL_TYPES_H_
#include <sal/types.h>
#endif
#ifndef _RTL_USTRING_H_
#include <rtl/ustring.h>
#endif

#if defined __cplusplus
extern "C" {
#endif /* __cplusplus */

typedef struct StringHashTableImpl StringHashTable;

StringHashTable *rtl_str_hash_new    (sal_uInt32         nSize);
void             rtl_str_hash_free   (StringHashTable   *pHash);
rtl_uString     *rtl_str_hash_intern (StringHashTable   *pHash,
                                      rtl_uString       *pString,
                                      int                can_return);
void             rtl_str_hash_remove (StringHashTable   *pHash,
                                      rtl_uString       *pString);

#if defined __cplusplus
}
#endif /* __cplusplus */

#endif /* INCLUDED_RTL_SOURCE_HASH_H */