9
9
* University of Stuttgart. All rights reserved.
10
10
* Copyright (c) 2004-2005 The Regents of the University of California.
11
11
* All rights reserved.
12
- * Copyright (c) 2015 Intel, Inc. All rights reserved.
12
+ * Copyright (c) 2015-2017 Intel, Inc. All rights reserved.
13
13
* Copyright (c) 2015 Research Organization for Information Science
14
14
* and Technology (RIST). All rights reserved.
15
15
* Copyright (c) 2016 Mellanox Technologies, Inc.
47
47
48
48
BEGIN_C_DECLS
49
49
50
- PMIX_DECLSPEC PMIX_CLASS_DECLARATION (pmix_hash_table_t );
50
+ PMIX_EXPORT PMIX_CLASS_DECLARATION (pmix_hash_table_t );
51
51
52
52
struct pmix_hash_table_t
53
53
{
@@ -73,12 +73,12 @@ typedef struct pmix_hash_table_t pmix_hash_table_t;
73
73
*
74
74
*/
75
75
76
- PMIX_DECLSPEC pmix_status_t pmix_hash_table_init (pmix_hash_table_t * ht , size_t table_size );
76
+ PMIX_EXPORT pmix_status_t pmix_hash_table_init (pmix_hash_table_t * ht , size_t table_size );
77
77
78
78
/**
79
79
* Alternative form
80
80
*/
81
- PMIX_DECLSPEC pmix_status_t pmix_hash_table_init2 (pmix_hash_table_t * ht , size_t estimated_max_size ,
81
+ PMIX_EXPORT pmix_status_t pmix_hash_table_init2 (pmix_hash_table_t * ht , size_t estimated_max_size ,
82
82
int density_numer , int density_denom ,
83
83
int growth_numer , int growth_denom );
84
84
@@ -103,7 +103,7 @@ static inline size_t pmix_hash_table_get_size(pmix_hash_table_t *ht)
103
103
*
104
104
*/
105
105
106
- PMIX_DECLSPEC pmix_status_t pmix_hash_table_remove_all (pmix_hash_table_t * ht );
106
+ PMIX_EXPORT pmix_status_t pmix_hash_table_remove_all (pmix_hash_table_t * ht );
107
107
108
108
/**
109
109
* Retrieve value via uint32_t key.
@@ -118,8 +118,8 @@ PMIX_DECLSPEC pmix_status_t pmix_hash_table_remove_all(pmix_hash_table_t *ht);
118
118
*
119
119
*/
120
120
121
- PMIX_DECLSPEC pmix_status_t pmix_hash_table_get_value_uint32 (pmix_hash_table_t * table , uint32_t key ,
122
- void * * ptr );
121
+ PMIX_EXPORT pmix_status_t pmix_hash_table_get_value_uint32 (pmix_hash_table_t * table , uint32_t key ,
122
+ void * * ptr );
123
123
124
124
/**
125
125
* Set value based on uint32_t key.
@@ -131,7 +131,7 @@ PMIX_DECLSPEC pmix_status_t pmix_hash_table_get_value_uint32(pmix_hash_table_t*
131
131
*
132
132
*/
133
133
134
- PMIX_DECLSPEC pmix_status_t pmix_hash_table_set_value_uint32 (pmix_hash_table_t * table , uint32_t key , void * value );
134
+ PMIX_EXPORT pmix_status_t pmix_hash_table_set_value_uint32 (pmix_hash_table_t * table , uint32_t key , void * value );
135
135
136
136
/**
137
137
* Remove value based on uint32_t key.
@@ -142,7 +142,7 @@ PMIX_DECLSPEC pmix_status_t pmix_hash_table_set_value_uint32(pmix_hash_table_t*
142
142
*
143
143
*/
144
144
145
- PMIX_DECLSPEC pmix_status_t pmix_hash_table_remove_value_uint32 (pmix_hash_table_t * table , uint32_t key );
145
+ PMIX_EXPORT pmix_status_t pmix_hash_table_remove_value_uint32 (pmix_hash_table_t * table , uint32_t key );
146
146
147
147
/**
148
148
* Retrieve value via uint64_t key.
@@ -157,8 +157,8 @@ PMIX_DECLSPEC pmix_status_t pmix_hash_table_remove_value_uint32(pmix_hash_table_
157
157
*
158
158
*/
159
159
160
- PMIX_DECLSPEC pmix_status_t pmix_hash_table_get_value_uint64 (pmix_hash_table_t * table , uint64_t key ,
161
- void * * ptr );
160
+ PMIX_EXPORT pmix_status_t pmix_hash_table_get_value_uint64 (pmix_hash_table_t * table , uint64_t key ,
161
+ void * * ptr );
162
162
163
163
/**
164
164
* Set value based on uint64_t key.
@@ -170,7 +170,7 @@ PMIX_DECLSPEC pmix_status_t pmix_hash_table_get_value_uint64(pmix_hash_table_t *
170
170
*
171
171
*/
172
172
173
- PMIX_DECLSPEC pmix_status_t pmix_hash_table_set_value_uint64 (pmix_hash_table_t * table , uint64_t key , void * value );
173
+ PMIX_EXPORT pmix_status_t pmix_hash_table_set_value_uint64 (pmix_hash_table_t * table , uint64_t key , void * value );
174
174
175
175
/**
176
176
* Remove value based on uint64_t key.
@@ -181,7 +181,7 @@ PMIX_DECLSPEC pmix_status_t pmix_hash_table_set_value_uint64(pmix_hash_table_t *
181
181
*
182
182
*/
183
183
184
- PMIX_DECLSPEC pmix_status_t pmix_hash_table_remove_value_uint64 (pmix_hash_table_t * table , uint64_t key );
184
+ PMIX_EXPORT pmix_status_t pmix_hash_table_remove_value_uint64 (pmix_hash_table_t * table , uint64_t key );
185
185
186
186
/**
187
187
* Retrieve value via arbitrary length binary key.
@@ -196,8 +196,8 @@ PMIX_DECLSPEC pmix_status_t pmix_hash_table_remove_value_uint64(pmix_hash_table_
196
196
*
197
197
*/
198
198
199
- PMIX_DECLSPEC pmix_status_t pmix_hash_table_get_value_ptr (pmix_hash_table_t * table , const void * key ,
200
- size_t keylen , void * * ptr );
199
+ PMIX_EXPORT pmix_status_t pmix_hash_table_get_value_ptr (pmix_hash_table_t * table , const void * key ,
200
+ size_t keylen , void * * ptr );
201
201
202
202
/**
203
203
* Set value based on arbitrary length binary key.
@@ -209,7 +209,7 @@ PMIX_DECLSPEC pmix_status_t pmix_hash_table_get_value_ptr(pmix_hash_table_t *tab
209
209
*
210
210
*/
211
211
212
- PMIX_DECLSPEC pmix_status_t pmix_hash_table_set_value_ptr (pmix_hash_table_t * table , const void * key , size_t keylen , void * value );
212
+ PMIX_EXPORT pmix_status_t pmix_hash_table_set_value_ptr (pmix_hash_table_t * table , const void * key , size_t keylen , void * value );
213
213
214
214
/**
215
215
* Remove value based on arbitrary length binary key.
@@ -220,7 +220,7 @@ PMIX_DECLSPEC pmix_status_t pmix_hash_table_set_value_ptr(pmix_hash_table_t *tab
220
220
*
221
221
*/
222
222
223
- PMIX_DECLSPEC pmix_status_t pmix_hash_table_remove_value_ptr (pmix_hash_table_t * table , const void * key , size_t keylen );
223
+ PMIX_EXPORT pmix_status_t pmix_hash_table_remove_value_ptr (pmix_hash_table_t * table , const void * key , size_t keylen );
224
224
225
225
226
226
/** The following functions are only for allowing iterating through
@@ -245,8 +245,8 @@ PMIX_DECLSPEC pmix_status_t pmix_hash_table_remove_value_ptr(pmix_hash_table_t *
245
245
*
246
246
*/
247
247
248
- PMIX_DECLSPEC pmix_status_t pmix_hash_table_get_first_key_uint32 (pmix_hash_table_t * table , uint32_t * key ,
249
- void * * value , void * * node );
248
+ PMIX_EXPORT pmix_status_t pmix_hash_table_get_first_key_uint32 (pmix_hash_table_t * table , uint32_t * key ,
249
+ void * * value , void * * node );
250
250
251
251
252
252
/**
@@ -263,9 +263,9 @@ PMIX_DECLSPEC pmix_status_t pmix_hash_table_get_first_key_uint32(pmix_hash_table
263
263
*
264
264
*/
265
265
266
- PMIX_DECLSPEC pmix_status_t pmix_hash_table_get_next_key_uint32 (pmix_hash_table_t * table , uint32_t * key ,
267
- void * * value , void * in_node ,
268
- void * * out_node );
266
+ PMIX_EXPORT pmix_status_t pmix_hash_table_get_next_key_uint32 (pmix_hash_table_t * table , uint32_t * key ,
267
+ void * * value , void * in_node ,
268
+ void * * out_node );
269
269
270
270
271
271
/**
@@ -281,8 +281,8 @@ PMIX_DECLSPEC pmix_status_t pmix_hash_table_get_next_key_uint32(pmix_hash_table_
281
281
*
282
282
*/
283
283
284
- PMIX_DECLSPEC pmix_status_t pmix_hash_table_get_first_key_uint64 (pmix_hash_table_t * table , uint64_t * key ,
285
- void * * value , void * * node );
284
+ PMIX_EXPORT pmix_status_t pmix_hash_table_get_first_key_uint64 (pmix_hash_table_t * table , uint64_t * key ,
285
+ void * * value , void * * node );
286
286
287
287
288
288
/**
@@ -299,9 +299,9 @@ PMIX_DECLSPEC pmix_status_t pmix_hash_table_get_first_key_uint64(pmix_hash_table
299
299
*
300
300
*/
301
301
302
- PMIX_DECLSPEC pmix_status_t pmix_hash_table_get_next_key_uint64 (pmix_hash_table_t * table , uint64_t * key ,
303
- void * * value , void * in_node ,
304
- void * * out_node );
302
+ PMIX_EXPORT pmix_status_t pmix_hash_table_get_next_key_uint64 (pmix_hash_table_t * table , uint64_t * key ,
303
+ void * * value , void * in_node ,
304
+ void * * out_node );
305
305
306
306
/**
307
307
* @brief Returns next power-of-two of the given value.
0 commit comments