Changeset 253 for trunk/include/lru_cache.h
- Timestamp:
- 06/12/11 22:27:42 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/lru_cache.h
r201 r253 37 37 #include <talloc.h> 38 38 39 /* GCC-specific macro for library exports */ 40 #ifdef _EXPORT 41 #undef _EXPORT 42 #endif 43 #define _EXPORT __attribute__((visibility("default"))) 39 #include "compat.h" 40 44 41 45 42 struct lru_cache_element; … … 74 71 * XXX: finish documenting. 75 72 */ 76 _EXPORT 73 _EXPORT() 77 74 lru_cache* lru_cache_create(uint32_t max_keys, uint32_t secret); 78 75 … … 81 78 * XXX: finish documenting. 82 79 */ 83 _EXPORT 80 _EXPORT() 84 81 lru_cache* lru_cache_create_ctx(void* talloc_ctx, uint32_t max_keys, 85 82 uint32_t secret, bool talloc_data); … … 89 86 * XXX: finish documenting. 90 87 */ 91 _EXPORT 88 _EXPORT() 92 89 void lru_cache_destroy(lru_cache* ht); 93 90 … … 96 93 * XXX: finish documenting. 97 94 */ 98 _EXPORT 95 _EXPORT() 99 96 bool lru_cache_update(lru_cache* ht, const void* index, 100 97 uint32_t index_len, void* data); … … 106 103 * If no data was found at index, NULL is returned. 107 104 */ 108 _EXPORT 105 _EXPORT() 109 106 void* lru_cache_find(lru_cache* ht, const void* index, 110 107 uint32_t index_len); … … 118 115 * at index. 119 116 */ 120 _EXPORT 117 _EXPORT() 121 118 bool lru_cache_remove(lru_cache* ht, const void* index, 122 119 uint32_t index_len);
Note: See TracChangeset
for help on using the changeset viewer.