Fixed a few warnings.
[tangerine.git] / workbench / libs / partition / getpartitiontableattrs.c
blob740fa48435fcd88db3aba72d0fee8f50424bb942
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, GetPartitionTableAttrs,
22 /* SYNOPSIS */
23 AROS_LHA(struct PartitionHandle *, root, A1),
24 AROS_LHA(struct TagItem *, taglist, A2),
26 /* LOCATION */
27 struct Library *, PartitionBase, 13, Partition)
29 /* FUNCTION
30 get attributes of a partition table
32 INPUTS
33 ph - PartitionHandle of the partition table
34 taglist - list of attributes; unknown tags are ignored
35 PTT_TYPE - ULONG * ; get partition table type
36 PTT_MAXLEADIN - LONG *
37 PTT_RESERVED - ULONG * ; get number of reserved blocks
39 RESULT
41 NOTES
43 EXAMPLE
45 BUGS
47 SEE ALSO
49 INTERNALS
51 HISTORY
52 21-02-02 first version
54 *****************************************************************************/
56 AROS_LIBFUNC_INIT
58 if (root->table)
60 struct PTFunctionTable *handler = root->table->handler;
62 if (handler->getPartitionTableAttrs)
63 return handler->getPartitionTableAttrs(PartitionBase, root, taglist);
65 return 1;
66 AROS_LIBFUNC_EXIT