use the soc family name, not specific chip name(s)
[AROS.git] / rom / partition / writepartitiontable.c
blob98aa64d5b2816c7958442488f93c59e804316a7e
1 /*
2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
3 $Id$
5 */
7 #include "partition_intern.h"
8 #include "partition_support.h"
9 #include "platform.h"
11 /*****************************************************************************
13 NAME */
14 #include <libraries/partition.h>
16 AROS_LH1(LONG, WritePartitionTable,
18 /* SYNOPSIS */
19 AROS_LHA(struct PartitionHandle *, root, A1),
21 /* LOCATION */
22 struct Library *, PartitionBase, 9, Partition)
24 /* FUNCTION
25 Write a partition table; writing this partition table doesn't affect
26 subpartition tables
28 INPUTS
29 root - partition table to write
31 RESULT
32 0 for success; an error code otherwise
34 NOTES
36 EXAMPLE
38 BUGS
40 SEE ALSO
42 INTERNALS
44 HISTORY
45 21-02-02 first version
47 *****************************************************************************/
49 AROS_LIBFUNC_INIT
51 if (root->table)
53 struct PTFunctionTable *handler = root->table->handler;
55 if (handler->writePartitionTable)
56 return handler->writePartitionTable(PartitionBase, root);
59 /* Can't write (no method) */
60 return ERROR_ACTION_NOT_KNOWN;
62 AROS_LIBFUNC_EXIT