Changeset 201 for trunk/include/lru_cache.h
- Timestamp:
- 06/05/10 00:45:05 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/lru_cache.h
r169 r201 35 35 #include <string.h> 36 36 #include <unistd.h> 37 #include "talloc.h" 37 #include <talloc.h> 38 39 /* GCC-specific macro for library exports */ 40 #ifdef _EXPORT 41 #undef _EXPORT 42 #endif 43 #define _EXPORT __attribute__((visibility("default"))) 38 44 39 45 struct lru_cache_element; … … 68 74 * XXX: finish documenting. 69 75 */ 76 _EXPORT 70 77 lru_cache* lru_cache_create(uint32_t max_keys, uint32_t secret); 71 78 … … 74 81 * XXX: finish documenting. 75 82 */ 83 _EXPORT 76 84 lru_cache* lru_cache_create_ctx(void* talloc_ctx, uint32_t max_keys, 77 85 uint32_t secret, bool talloc_data); … … 81 89 * XXX: finish documenting. 82 90 */ 91 _EXPORT 83 92 void lru_cache_destroy(lru_cache* ht); 84 93 … … 87 96 * XXX: finish documenting. 88 97 */ 98 _EXPORT 89 99 bool lru_cache_update(lru_cache* ht, const void* index, 90 100 uint32_t index_len, void* data); … … 96 106 * If no data was found at index, NULL is returned. 97 107 */ 108 _EXPORT 98 109 void* lru_cache_find(lru_cache* ht, const void* index, 99 110 uint32_t index_len); … … 107 118 * at index. 108 119 */ 120 _EXPORT 109 121 bool lru_cache_remove(lru_cache* ht, const void* index, 110 122 uint32_t index_len);
Note: See TracChangeset
for help on using the changeset viewer.