2 Copyright © 1995-2017, The AROS Development Team. All rights reserved.
6 #include "partition_support.h"
9 /*****************************************************************************
12 #include <utility/tagitem.h>
13 #include <libraries/partition.h>
15 AROS_LH2(LONG
, SetPartitionAttrs
,
18 AROS_LHA(struct PartitionHandle
*, ph
, A1
),
19 AROS_LHA(const struct TagItem
*, taglist
, A2
),
22 struct Library
*, PartitionBase
, 16, Partition
)
25 Set attributes of a partition
29 taglist - list of attributes; unknown tags are ignored
32 PT_DOSENVEC - set new DosEnvec values
33 PT_TYPE - change partition type (MBR-PC)
34 PT_POSITION - move partition to another position (MBR-PC)
35 PT_ACTIVE - set partition active
36 PT_NAME - change name of partition (max 31 Bytes + NULL-byte)
50 *****************************************************************************/
56 struct PTFunctionTable
*handler
= ph
->root
->table
->handler
;
58 if (handler
->setPartitionAttrs
)
59 return handler
->setPartitionAttrs(PartitionBase
, ph
, taglist
);