2 Copyright © 1995-2017, The AROS Development Team. All rights reserved.
6 #include <proto/utility.h>
8 #include "partition_support.h"
12 /*****************************************************************************
15 #include <utility/tagitem.h>
16 #include <libraries/partition.h>
18 AROS_LH2(LONG
, GetPartitionTableAttrs
,
21 AROS_LHA(struct PartitionHandle
*, root
, A1
),
22 AROS_LHA(const struct TagItem
*, taglist
, A2
),
25 struct Library
*, PartitionBase
, 13, Partition
)
28 Get attributes of a partition table.
31 ph - PartitionHandle of the partition table
32 taglist - list of attributes; unknown tags are ignored
36 Get partition table type
37 PTT_MAXLEADIN (LONG *)
38 PTT_RESERVED (ULONG *)
39 Get number of reserved blocks
53 *****************************************************************************/
59 struct PTFunctionTable
*handler
= root
->table
->handler
;
62 while ((tag
= NextTagItem((struct TagItem
**)&taglist
)))
66 if (handler
->getPartitionTableAttr
)
67 sup
= handler
->getPartitionTableAttr(PartitionBase
, root
, tag
);
76 *((LONG
*)tag
->ti_Data
) = root
->table
->type
;
81 case PTT_MAX_PARTITIONS
:
82 *((LONG
*)tag
->ti_Data
) = 0;
91 /* There's no partition table here */