Check for SYS/GL during library init. Reason is that
[AROS.git] / rom / partition / setpartitiontableattrs.c
blob36fc586c13b040ff5b69606afa9b4ebad5b38658
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 #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(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 HISTORY
49 21-02-02 first version
51 *****************************************************************************/
53 AROS_LIBFUNC_INIT
55 if (root->table)
57 struct PTFunctionTable *handler = root->table->handler;
59 if (handler->setPartitionTableAttrs)
60 return handler->setPartitionTableAttrs(PartitionBase, root, taglist);
62 return 1;
63 AROS_LIBFUNC_EXIT