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

    r169 r201  
    3232#include <stdbool.h>
    3333#include <string.h>
    34 #include "talloc.h"
     34#include <talloc.h>
     35
     36/* GCC-specific macro for library exports */
     37#ifdef _EXPORT
     38#undef _EXPORT
     39#endif
     40#define _EXPORT __attribute__((visibility("default")))
    3541
    3642/** XXX: document this. */
     
    5965 *         or NULL if an error occurred.
    6066 */
     67_EXPORT
    6168void_stack* void_stack_new(unsigned short max_size);
    6269
     
    6875 * @return a pointer to the duplicate void_stack, or NULL if an error occurred.
    6976 */
     77_EXPORT
    7078void_stack* void_stack_copy(const void_stack* v);
    7179
     
    7886 *         (which will be in reverse order), or NULL if an error occurred.
    7987 */
     88_EXPORT
    8089void_stack* void_stack_copy_reverse(const void_stack* v);
    8190
     
    8695 * @param stack the stack to be free()d.
    8796 */
     97_EXPORT
    8898void void_stack_free(void_stack* stack);
    8999
     
    98108 * @param stack the stack to be free()d.
    99109 */
     110_EXPORT
    100111void void_stack_free_deep(void_stack* stack);
    101112
     
    107118 * @return the number of elements currently on the stack.
    108119 */
     120_EXPORT
    109121unsigned short void_stack_size(const void_stack* stack);
    110122
     
    117129 *         on the stack.
    118130 */
     131_EXPORT
    119132void* void_stack_pop(void_stack* stack);
    120133
     
    127140 * @return true if the element was successfully added, false otherwise.
    128141 */
     142_EXPORT
    129143bool void_stack_push(void_stack* stack, void* e);
    130144
     
    137151 *         no elements exist in the stack.
    138152 */
     153_EXPORT
    139154const void* void_stack_cur(const void_stack* stack);
    140155
     
    146161 * @return a new void_stack_iterator, or NULL if an error occurred.
    147162 */
     163_EXPORT
    148164void_stack_iterator* void_stack_iterator_new(const void_stack* stack);
    149165
     
    155171 * @param iter the void_stack_iterator to be free()d.
    156172 */
     173_EXPORT
    157174void void_stack_iterator_free(void_stack_iterator* iter);
    158175
     
    166183 * @return a pointer to the next element.
    167184 */
     185_EXPORT
    168186const void* void_stack_iterator_next(void_stack_iterator* iter);
    169187
Note: See TracChangeset for help on using the changeset viewer.