aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmil Velikov2015-08-07 10:44:33 -0500
committerEmil Velikov2015-08-13 11:43:22 -0500
commitf4d14f147cfc2bdea4f1ffafcfd302ebdfbcef1d (patch)
treed37c2fafea15e3473b94e50ac827477e0eb5ef6c /amdgpu/util_hash_table.h
parent5f0f6387a6abe9e20c94d99a1e59aa7fa231b17a (diff)
downloadexternal-libgbm-f4d14f147cfc2bdea4f1ffafcfd302ebdfbcef1d.tar.gz
external-libgbm-f4d14f147cfc2bdea4f1ffafcfd302ebdfbcef1d.tar.xz
external-libgbm-f4d14f147cfc2bdea4f1ffafcfd302ebdfbcef1d.zip
amdgpu/util_hash_table: hide private symbols from global namespace
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Christian K├Ânig <christian.koenig@amd.com> Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
Diffstat (limited to 'amdgpu/util_hash_table.h')
-rw-r--r--amdgpu/util_hash_table.h24
1 files changed, 16 insertions, 8 deletions
diff --git a/amdgpu/util_hash_table.h b/amdgpu/util_hash_table.h
index 04fe7043..e0001289 100644
--- a/amdgpu/util_hash_table.h
+++ b/amdgpu/util_hash_table.h
@@ -34,6 +34,12 @@
34#ifndef U_HASH_TABLE_H_ 34#ifndef U_HASH_TABLE_H_
35#define U_HASH_TABLE_H_ 35#define U_HASH_TABLE_H_
36 36
37#ifdef HAVE_CONFIG_H
38#include "config.h"
39#endif
40
41#include "libdrm_macros.h"
42
37/** 43/**
38 * Generic purpose hash table. 44 * Generic purpose hash table.
39 */ 45 */
@@ -45,21 +51,23 @@ struct util_hash_table;
45 * @param hash hash function 51 * @param hash hash function
46 * @param compare should return 0 for two equal keys. 52 * @param compare should return 0 for two equal keys.
47 */ 53 */
48struct util_hash_table *util_hash_table_create(unsigned (*hash)(void *key), 54drm_private struct util_hash_table *
49 int (*compare)(void *key1, void *key2)); 55util_hash_table_create(unsigned (*hash)(void *key),
56 int (*compare)(void *key1, void *key2));
50 57
51void util_hash_table_set(struct util_hash_table *ht, void *key, void *value); 58drm_private void
59util_hash_table_set(struct util_hash_table *ht, void *key, void *value);
52 60
53void *util_hash_table_get(struct util_hash_table *ht, void *key); 61drm_private void *util_hash_table_get(struct util_hash_table *ht, void *key);
54 62
55void util_hash_table_remove(struct util_hash_table *ht, void *key); 63drm_private void util_hash_table_remove(struct util_hash_table *ht, void *key);
56 64
57void util_hash_table_clear(struct util_hash_table *ht); 65drm_private void util_hash_table_clear(struct util_hash_table *ht);
58 66
59void util_hash_table_foreach(struct util_hash_table *ht, 67drm_private void util_hash_table_foreach(struct util_hash_table *ht,
60 void (*callback)(void *key, void *value, void *data), 68 void (*callback)(void *key, void *value, void *data),
61 void *data); 69 void *data);
62 70
63void util_hash_table_destroy(struct util_hash_table *ht); 71drm_private void util_hash_table_destroy(struct util_hash_table *ht);
64 72
65#endif /* U_HASH_TABLE_H_ */ 73#endif /* U_HASH_TABLE_H_ */