non-specific parts of aros build completely for armeb now.
[AROS.git] / rom / partition / setpartitionattrs.c
blob30e134d20d011ba57a00f3758354a51f1d701862
1 /*
2 Copyright © 1995-2017, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include "partition_support.h"
7 #include "platform.h"
9 /*****************************************************************************
11 NAME */
12 #include <utility/tagitem.h>
13 #include <libraries/partition.h>
15 AROS_LH2(LONG, SetPartitionAttrs,
17 /* SYNOPSIS */
18 AROS_LHA(struct PartitionHandle *, ph, A1),
19 AROS_LHA(const struct TagItem *, taglist, A2),
21 /* LOCATION */
22 struct Library *, PartitionBase, 16, Partition)
24 /* FUNCTION
25 Set attributes of a partition
27 INPUTS
28 ph - PartitionHandle
29 taglist - list of attributes; unknown tags are ignored
31 TAGS
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)
38 RESULT
40 NOTES
42 EXAMPLE
44 BUGS
46 SEE ALSO
48 INTERNALS
50 *****************************************************************************/
52 AROS_LIBFUNC_INIT
54 if (ph->root)
56 struct PTFunctionTable *handler = ph->root->table->handler;
58 if (handler->setPartitionAttrs)
59 return handler->setPartitionAttrs(PartitionBase, ph, taglist);
61 return 1;
62 AROS_LIBFUNC_EXIT