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/range_list.h

    r169 r201  
    3636#include <string.h>
    3737#include <math.h>
    38 #include "talloc.h"
     38#include <talloc.h>
     39
     40/* GCC-specific macro for library exports */
     41#ifdef _EXPORT
     42#undef _EXPORT
     43#endif
     44#define _EXPORT __attribute__((visibility("default")))
    3945
    4046typedef struct _range_list_element
     
    5965 * @return A newly allocated range_list, or NULL if an error occurred.
    6066 */
     67_EXPORT
    6168range_list* range_list_new();
    6269
     
    6976 * @param rl the range_list to be free()d.
    7077 */
     78_EXPORT
    7179void range_list_free(range_list* rl);
    7280
     
    7886 * @return The number of elements currently in the list.
    7987 */
     88_EXPORT
    8089uint32_t range_list_size(const range_list* rl);
    8190
     
    97106 * errors may also be possible.
    98107 */
     108_EXPORT
    99109bool range_list_add(range_list* rl, uint32_t offset, uint32_t length, void* data);
    100110
     
    109119 * @return true if the element was successfully removed, false otherwise.
    110120 */
     121_EXPORT
    111122bool range_list_remove(range_list* rl, uint32_t index);
    112123
     
    120131 *         available.
    121132 */
     133_EXPORT
    122134const range_list_element* range_list_get(const range_list* rl, uint32_t index);
    123135
     
    130142 * @return A matching element index or a negative value if none could be found.
    131143 */
     144_EXPORT
    132145int32_t range_list_find(const range_list* rl, uint32_t offset);
    133146
     
    144157 *        element was never set.
    145158 */
     159_EXPORT
    146160void* range_list_find_data(const range_list* rl, uint32_t offset);
    147161
     
    165179 * @return true if the element was successfully split, false otherwise.
    166180 */
     181_EXPORT
    167182bool range_list_split_element(range_list* rl, uint32_t index, uint32_t offset);
    168183
     
    177192 * @return true if the specified range exists and is complete, false otherwise.
    178193 */
     194_EXPORT
    179195bool range_list_has_range(range_list* rl, uint32_t start, uint32_t length);
    180196
Note: See TracChangeset for help on using the changeset viewer.