2 Copyright © 1995-2017, The AROS Development Team. All rights reserved.
6 #include "partition_support.h"
9 /* This is what we can always do */
10 static const struct PartitionAttribute defaultPartitionAttrs
[] =
12 {PT_GEOMETRY
, PLAM_READ
},
13 {PT_DOSENVEC
, PLAM_READ
},
14 {PT_POSITION
, PLAM_READ
},
15 {PT_STARTBLOCK
, PLAM_READ
},
16 {PT_ENDBLOCK
, PLAM_READ
},
20 /*****************************************************************************
23 #include <libraries/partition.h>
25 AROS_LH1(const struct PartitionAttribute
*, QueryPartitionAttrs
,
28 AROS_LHA(struct PartitionHandle
*, table
, A1
),
31 struct Library
*, PartitionBase
, 18, Partition
)
34 Query partition attributes.
37 ph - PartitionHandle to the table
40 List of NULL-terminated ULONGs with attributes.
52 *****************************************************************************/
58 struct PTFunctionTable
*handler
= table
->table
->handler
;
60 return handler
->partitionAttrs
;
63 return defaultPartitionAttrs
;