non-specific parts of aros build completely for armeb now.
[AROS.git] / rom / partition / querypartitionattrs.c
blobc5d9986545674e1b0c93bd10f4e7821e979a677f
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 /* This is what we can always do */
10 static const struct PartitionAttribute defaultPartitionAttrs[] =
12 {PT_GEOMETRY , PLAM_READ},
13 {PT_DOSENVEC , PLAM_READ},
14 {PT_POSITION , PLAM_READ},
15 {PT_STARTBLOCK, PLAM_READ},
16 {PT_ENDBLOCK , PLAM_READ},
17 {TAG_DONE, 0}
20 /*****************************************************************************
22 NAME */
23 #include <libraries/partition.h>
25 AROS_LH1(const struct PartitionAttribute *, QueryPartitionAttrs,
27 /* SYNOPSIS */
28 AROS_LHA(struct PartitionHandle *, table, A1),
30 /* LOCATION */
31 struct Library *, PartitionBase, 18, Partition)
33 /* FUNCTION
34 Query partition attributes.
36 INPUTS
37 ph - PartitionHandle to the table
39 RESULT
40 List of NULL-terminated ULONGs with attributes.
42 NOTES
44 EXAMPLE
46 BUGS
48 SEE ALSO
50 INTERNALS
52 *****************************************************************************/
54 AROS_LIBFUNC_INIT
56 if (table->table)
58 struct PTFunctionTable *handler = table->table->handler;
60 return handler->partitionAttrs;
63 return defaultPartitionAttrs;
65 AROS_LIBFUNC_EXIT