| 181 |
181 |
| 182 /** |
182 /** |
| 183 * Add or overwrite an element. |
183 * Add or overwrite an element. |
| 184 * If the @p value is @c NULL, the implementation |
184 * If the @p value is @c NULL, the implementation |
| 185 * shall only allocate memory instead of adding an existing value to the map. |
185 * shall only allocate memory instead of adding an existing value to the map. |
| 186 * Returns a pointer to the allocated memory or @c NULL if allocation fails. |
186 * Returns a map entry where the pointer to the key is @c NULL if allocation fails. |
| 187 */ |
187 */ |
| 188 void *(*put)(CxMap *map, CxHashKey key, void *value); |
188 CxMapEntry (*put)(CxMap *map, CxHashKey key, void *value); |
| 189 |
189 |
| 190 /** |
190 /** |
| 191 * Returns an element. |
191 * Returns an element. |
| 192 */ |
192 */ |
| 193 void *(*get)(const CxMap *map, CxHashKey key); |
193 void *(*get)(const CxMap *map, CxHashKey key); |