Changeset 253 for trunk/include/range_list.h
- Timestamp:
- 06/12/11 22:27:42 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/range_list.h
r201 r253 38 38 #include <talloc.h> 39 39 40 /* GCC-specific macro for library exports */ 41 #ifdef _EXPORT 42 #undef _EXPORT 43 #endif 44 #define _EXPORT __attribute__((visibility("default"))) 40 #include "compat.h" 45 41 46 42 typedef struct _range_list_element … … 65 61 * @return A newly allocated range_list, or NULL if an error occurred. 66 62 */ 67 _EXPORT 63 _EXPORT() 68 64 range_list* range_list_new(); 69 65 … … 76 72 * @param rl the range_list to be free()d. 77 73 */ 78 _EXPORT 74 _EXPORT() 79 75 void range_list_free(range_list* rl); 80 76 … … 86 82 * @return The number of elements currently in the list. 87 83 */ 88 _EXPORT 84 _EXPORT() 89 85 uint32_t range_list_size(const range_list* rl); 90 86 … … 106 102 * errors may also be possible. 107 103 */ 108 _EXPORT 104 _EXPORT() 109 105 bool range_list_add(range_list* rl, uint32_t offset, uint32_t length, void* data); 110 106 … … 119 115 * @return true if the element was successfully removed, false otherwise. 120 116 */ 121 _EXPORT 117 _EXPORT() 122 118 bool range_list_remove(range_list* rl, uint32_t index); 123 119 … … 131 127 * available. 132 128 */ 133 _EXPORT 129 _EXPORT() 134 130 const range_list_element* range_list_get(const range_list* rl, uint32_t index); 135 131 … … 142 138 * @return A matching element index or a negative value if none could be found. 143 139 */ 144 _EXPORT 140 _EXPORT() 145 141 int32_t range_list_find(const range_list* rl, uint32_t offset); 146 142 … … 157 153 * element was never set. 158 154 */ 159 _EXPORT 155 _EXPORT() 160 156 void* range_list_find_data(const range_list* rl, uint32_t offset); 161 157 … … 179 175 * @return true if the element was successfully split, false otherwise. 180 176 */ 181 _EXPORT 177 _EXPORT() 182 178 bool range_list_split_element(range_list* rl, uint32_t index, uint32_t offset); 183 179 … … 192 188 * @return true if the specified range exists and is complete, false otherwise. 193 189 */ 194 _EXPORT 190 _EXPORT() 195 191 bool range_list_has_range(range_list* rl, uint32_t start, uint32_t length); 196 192
Note: See TracChangeset
for help on using the changeset viewer.