Changeset 201 for trunk/include/void_stack.h
- Timestamp:
- 06/05/10 00:45:05 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/void_stack.h
r169 r201 32 32 #include <stdbool.h> 33 33 #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"))) 35 41 36 42 /** XXX: document this. */ … … 59 65 * or NULL if an error occurred. 60 66 */ 67 _EXPORT 61 68 void_stack* void_stack_new(unsigned short max_size); 62 69 … … 68 75 * @return a pointer to the duplicate void_stack, or NULL if an error occurred. 69 76 */ 77 _EXPORT 70 78 void_stack* void_stack_copy(const void_stack* v); 71 79 … … 78 86 * (which will be in reverse order), or NULL if an error occurred. 79 87 */ 88 _EXPORT 80 89 void_stack* void_stack_copy_reverse(const void_stack* v); 81 90 … … 86 95 * @param stack the stack to be free()d. 87 96 */ 97 _EXPORT 88 98 void void_stack_free(void_stack* stack); 89 99 … … 98 108 * @param stack the stack to be free()d. 99 109 */ 110 _EXPORT 100 111 void void_stack_free_deep(void_stack* stack); 101 112 … … 107 118 * @return the number of elements currently on the stack. 108 119 */ 120 _EXPORT 109 121 unsigned short void_stack_size(const void_stack* stack); 110 122 … … 117 129 * on the stack. 118 130 */ 131 _EXPORT 119 132 void* void_stack_pop(void_stack* stack); 120 133 … … 127 140 * @return true if the element was successfully added, false otherwise. 128 141 */ 142 _EXPORT 129 143 bool void_stack_push(void_stack* stack, void* e); 130 144 … … 137 151 * no elements exist in the stack. 138 152 */ 153 _EXPORT 139 154 const void* void_stack_cur(const void_stack* stack); 140 155 … … 146 161 * @return a new void_stack_iterator, or NULL if an error occurred. 147 162 */ 163 _EXPORT 148 164 void_stack_iterator* void_stack_iterator_new(const void_stack* stack); 149 165 … … 155 171 * @param iter the void_stack_iterator to be free()d. 156 172 */ 173 _EXPORT 157 174 void void_stack_iterator_free(void_stack_iterator* iter); 158 175 … … 166 183 * @return a pointer to the next element. 167 184 */ 185 _EXPORT 168 186 const void* void_stack_iterator_next(void_stack_iterator* iter); 169 187
Note: See TracChangeset
for help on using the changeset viewer.