Changeset 8f6c7785 in mainline for uspace/lib/gpt/libgpt.h
- Timestamp:
- 2013-04-26T02:55:32Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 700f89e
- Parents:
- d617050
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/gpt/libgpt.h
rd617050 r8f6c7785 153 153 extern void gpt_set_start_lba (gpt_part_t * p, uint64_t start); 154 154 extern uint64_t gpt_get_start_lba (gpt_part_t * p); 155 extern void gpt_set_end_lba (gpt_part_t * p, uint64_t start);155 extern void gpt_set_end_lba (gpt_part_t * p, uint64_t end); 156 156 extern uint64_t gpt_get_end_lba (gpt_part_t * p); 157 157 extern unsigned char * gpt_get_part_name (gpt_part_t * p); … … 162 162 163 163 164 #define gpt_ foreach(parts, i, iterator) \165 for( size_t i = 0, gpt_part_t * iterator = parts->part_array; \166 i < parts->fill; i++, iterator++)164 #define gpt_part_foreach(parts, iterator) \ 165 for(gpt_part_t * iterator = (parts)->part_array; \ 166 iterator < (parts)->part_array + (parts)->fill; ++iterator) 167 167 168 168 extern void gpt_free_gpt(gpt_t * gpt);
Note:
See TracChangeset
for help on using the changeset viewer.