Changeset 52f2c89 in mainline for uspace/lib/mbr/libmbr.h


Ignore:
Timestamp:
2013-06-24T22:29:44Z (11 years ago)
Author:
Dominik Taborsky (AT DOT) <brembyseznamcz>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9bdfde73
Parents:
44c4886 (diff), 6317b33 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

hdisk, libmbr and libgpt updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/mbr/libmbr.h

    r44c4886 r52f2c89  
    213213extern void         mbr_set_flag(mbr_part_t *, MBR_FLAGS, bool);
    214214extern uint32_t     mbr_get_next_aligned(uint32_t, unsigned int);
    215 
    216 #define mbr_part_foreach(parts, iterator)       \
    217         for (iterator  = list_get_instance((parts)->list.head.next, mbr_part_t, link); \
    218              iterator != list_get_instance(&((parts)->list.head), mbr_part_t, link); \
     215extern list_t *     mbr_get_list(mbr_label_t *);
     216extern mbr_part_t * mbr_get_first_partition(mbr_label_t *);
     217extern mbr_part_t * mbr_get_next_partition(mbr_label_t *, mbr_part_t *);
     218
     219#define mbr_part_foreach(label, iterator) \
     220        for (iterator  = list_get_instance((label)->parts->list.head.next, mbr_part_t, link); \
     221             iterator != list_get_instance(&((label)->parts->list.head), mbr_part_t, link); \
    219222             iterator  = list_get_instance(iterator->link.next, mbr_part_t, link))
    220223
Note: See TracChangeset for help on using the changeset viewer.