summaryrefslogtreecommitdiff
path: root/sal/rtl/source/hash.h
blob: 63f3e99c8495ea29b7c2bd0f38387aaf73623d78 (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
#ifndef INCLUDED_RTL_SOURCE_HASH_H
#define INCLUDED_RTL_SOURCE_HASH_H

#include <sal/types.h>
#include <rtl/ustring.h>

#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 */