Added a test for MUIA_Listview_SelectChange.
[AROS.git] / rom / partition / setpartitionattrs.c
blobf3afd2ab73e24c696e77541e9ee4293c75b118e7
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 */
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(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
30 PT_DOSENVEC - set new DosEnvec values
31 PT_TYPE - change partition type (MBR-PC)
32 PT_POSITION - move partition to another position (MBR-PC)
33 PT_ACTIVE - set partition active
34 PT_NAME - change name of partition (max 31 Bytes + NULL-byte)
36 RESULT
38 NOTES
40 EXAMPLE
42 BUGS
44 SEE ALSO
46 INTERNALS
48 HISTORY
49 21-02-02 first version
51 *****************************************************************************/
53 AROS_LIBFUNC_INIT
55 if (ph->root)
57 struct PTFunctionTable *handler = ph->root->table->handler;
59 if (handler->setPartitionAttrs)
60 return handler->setPartitionAttrs(PartitionBase, ph, taglist);
62 return 1;
63 AROS_LIBFUNC_EXIT