Ignore:
Timestamp:
06/05/10 00:45:05 (14 years ago)
Author:
tim
Message:

changed symbol visibility to hidden by default and explicitly exported API functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/lru_cache.h

    r169 r201  
    3535#include <string.h>
    3636#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")))
    3844
    3945struct lru_cache_element;
     
    6874 * XXX: finish documenting.
    6975 */
     76_EXPORT
    7077lru_cache* lru_cache_create(uint32_t max_keys, uint32_t secret);
    7178
     
    7481 * XXX: finish documenting.
    7582 */
     83_EXPORT
    7684lru_cache* lru_cache_create_ctx(void* talloc_ctx, uint32_t max_keys,
    7785                                uint32_t secret, bool talloc_data);
     
    8189 * XXX: finish documenting.
    8290 */
     91_EXPORT
    8392void lru_cache_destroy(lru_cache* ht);
    8493
     
    8796 * XXX: finish documenting.
    8897 */
     98_EXPORT
    8999bool lru_cache_update(lru_cache* ht, const void* index,
    90100                      uint32_t index_len, void* data);
     
    96106 *         If no data was found at index, NULL is returned.
    97107 */
     108_EXPORT
    98109void* lru_cache_find(lru_cache* ht, const void* index,
    99110                     uint32_t index_len);
     
    107118 *         at index.
    108119 */
     120_EXPORT
    109121bool lru_cache_remove(lru_cache* ht, const void* index,
    110122                      uint32_t index_len);
Note: See TracChangeset for help on using the changeset viewer.