revert between 56095 -> 55830 in arch
[AROS.git] / rom / partition / querypartitiontableattrs.c
bloba2d3baef17d3850fc543827a3e703d1abaae9604
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 /* By default we have nothing here */
10 static const struct PartitionAttribute defaultPartitionTableAttrs[] =
12 {TAG_DONE, 0}
15 /*****************************************************************************
17 NAME */
18 #include <libraries/partition.h>
20 AROS_LH1(const struct PartitionAttribute *, QueryPartitionTableAttrs,
22 /* SYNOPSIS */
23 AROS_LHA(struct PartitionHandle *, table, A1),
25 /* LOCATION */
26 struct Library *, PartitionBase, 17, Partition)
28 /* FUNCTION
29 Query partition table attributes.
31 INPUTS
32 ph - PartitionHandle of a partition table
34 RESULT
35 List of NULL-terminated ULONGs with attributes.
37 NOTES
39 EXAMPLE
41 BUGS
43 SEE ALSO
45 INTERNALS
47 *****************************************************************************/
49 AROS_LIBFUNC_INIT
51 if (table->table)
53 struct PTFunctionTable *handler = table->table->handler;
55 return handler->partitionTableAttrs;
58 return defaultPartitionTableAttrs;
60 AROS_LIBFUNC_EXIT