aboutsummaryrefslogtreecommitdiffstats
path: root/com32/chain/partiter.h
diff options
context:
space:
mode:
authorMichal Soltys <soltys@ziu.info>2010-08-22 15:36:23 +0200
committerMichal Soltys <soltys@ziu.info>2010-09-28 09:32:52 +0200
commitbd488610577a8cafb4f226f8ec3d093c51b67121 (patch)
tree7b56cbd4c77aad3729350f9b33dc1d9082430295 /com32/chain/partiter.h
parentb4ba30102958f77e6bef1354459a06416408c2d7 (diff)
downloadsyslinux-bd488610577a8cafb4f226f8ec3d093c51b67121.tar.gz
syslinux-bd488610577a8cafb4f226f8ec3d093c51b67121.tar.xz
syslinux-bd488610577a8cafb4f226f8ec3d093c51b67121.zip
partiter.c: add stepall modifier; bugfixes + comment changes
In certain situations (new features to be added later), it's useful to be able to step through all partitions in a partition list. This patch adds necessary functionality. Adjust chain.c to use new version of partiter. Also small bugfixes and comment changes. Signed-off-by: Michal Soltys <soltys@ziu.info>
Diffstat (limited to 'com32/chain/partiter.h')
-rw-r--r--com32/chain/partiter.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/com32/chain/partiter.h b/com32/chain/partiter.h
index d00d6099..718f6033 100644
--- a/com32/chain/partiter.h
+++ b/com32/chain/partiter.h
@@ -52,15 +52,17 @@ struct itertype {
struct part_iter {
const struct itertype *type;
+ char *data;
char *record;
uint64_t start_lba;
int index;
struct disk_info di;
/* internal */
- char *data;
+ int stepall;
union _sub {
struct _dos {
uint32_t disk_sig;
+ uint32_t mbr_lba;
/* internal */
uint32_t ebr_start;
uint32_t ebr_size;
@@ -85,7 +87,7 @@ extern const struct itertype * const typedos;
extern const struct itertype * const typegpt;
extern const struct itertype * const typeraw;
-struct part_iter *pi_begin(const struct disk_info *);
+struct part_iter *pi_begin(const struct disk_info *, int stepall);
struct part_iter *pi_new(const struct itertype *, ...);
void *pi_del(struct part_iter **);
struct part_iter *pi_next(struct part_iter **);