revert between 56095 -> 55830 in arch
[AROS.git] / rom / partition / setpartitiontableattrs.c
blob70757dbb7027e1194015ee1757935a656771fc90
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 #ifndef DEBUG
10 #define DEBUG 1
11 #endif
12 #include "debug.h"
14 /*****************************************************************************
16 NAME */
17 #include <utility/tagitem.h>
18 #include <libraries/partition.h>
20 AROS_LH2(LONG, SetPartitionTableAttrs,
22 /* SYNOPSIS */
23 AROS_LHA(struct PartitionHandle *, root, A1),
24 AROS_LHA(const struct TagItem *, taglist, A2),
26 /* LOCATION */
27 struct Library *, PartitionBase, 14, Partition)
29 /* FUNCTION
30 Set attributes of a partition table.
32 INPUTS
33 ph - PartitionHandle of the partition table
34 taglist - list of attributes; unknown tags are ignored
36 RESULT
38 NOTES
40 EXAMPLE
42 BUGS
44 SEE ALSO
46 INTERNALS
48 *****************************************************************************/
50 AROS_LIBFUNC_INIT
52 if (root->table)
54 struct PTFunctionTable *handler = root->table->handler;
56 if (handler->setPartitionTableAttrs)
57 return handler->setPartitionTableAttrs(PartitionBase, root, taglist);
59 return 1;
60 AROS_LIBFUNC_EXIT