Cleaned up formatting of AutoDocs (mostly indentation).
[AROS.git] / rom / partition / writepartitiontable.c
blob02d9b22d5859202b6a04ae6c924167c8b829863f
1 /*
2 Copyright © 1995-2017, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include "partition_intern.h"
7 #include "partition_support.h"
8 #include "platform.h"
10 /*****************************************************************************
12 NAME */
13 #include <libraries/partition.h>
15 AROS_LH1(LONG, WritePartitionTable,
17 /* SYNOPSIS */
18 AROS_LHA(struct PartitionHandle *, root, A1),
20 /* LOCATION */
21 struct Library *, PartitionBase, 9, Partition)
23 /* FUNCTION
24 Write a partition table; writing this partition table doesn't affect
25 subpartition tables.
27 INPUTS
28 root - partition table to write
30 RESULT
31 0 for success; an error code otherwise
33 NOTES
35 EXAMPLE
37 BUGS
39 SEE ALSO
41 INTERNALS
43 *****************************************************************************/
45 AROS_LIBFUNC_INIT
47 if (root->table)
49 struct PTFunctionTable *handler = root->table->handler;
51 if (handler->writePartitionTable)
52 return handler->writePartitionTable(PartitionBase, root);
55 /* Can't write (no method) */
56 return ERROR_ACTION_NOT_KNOWN;
58 AROS_LIBFUNC_EXIT