2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
7 #include <proto/utility.h>
9 #include "partition_support.h"
13 /*****************************************************************************
16 #include <utility/tagitem.h>
17 #include <libraries/partition.h>
19 AROS_LH2(LONG
, GetPartitionTableAttrs
,
22 AROS_LHA(struct PartitionHandle
*, root
, A1
),
23 AROS_LHA(struct TagItem
*, taglist
, A2
),
26 struct Library
*, PartitionBase
, 13, Partition
)
29 get attributes of a partition table
32 ph - PartitionHandle of the partition table
33 taglist - list of attributes; unknown tags are ignored
34 PTT_TYPE - ULONG * ; get partition table type
35 PTT_MAXLEADIN - LONG *
36 PTT_RESERVED - ULONG * ; get number of reserved blocks
51 21-02-02 first version
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 */