Init control word to zero, cdrom-handler reads this and will crash if it is non-zero...
[AROS.git] / rom / partition / querypartitiontableattrs.c
blobcf6a9b64de3d333632f7cad72927ac82fc37682a
1 /*
2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
3 $Id$
5 */
7 #include "partition_support.h"
8 #include "platform.h"
10 /* By default we have nothing here */
11 static const struct PartitionAttribute defaultPartitionTableAttrs[] =
13 {TAG_DONE, 0}
16 /*****************************************************************************
18 NAME */
19 #include <libraries/partition.h>
21 AROS_LH1(const struct PartitionAttribute *, QueryPartitionTableAttrs,
23 /* SYNOPSIS */
24 AROS_LHA(struct PartitionHandle *, table, A1),
26 /* LOCATION */
27 struct Library *, PartitionBase, 17, Partition)
29 /* FUNCTION
30 query partition table attributes
32 INPUTS
33 ph - PartitionHandle of a partition table
35 RESULT
36 list of NULL-terminated ULONGs with attributes
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 (table->table)
57 struct PTFunctionTable *handler = table->table->handler;
59 return handler->partitionTableAttrs;
62 return defaultPartitionTableAttrs;
64 AROS_LIBFUNC_EXIT