2 Copyright © 1995-2017, The AROS Development Team. All rights reserved.
6 #include <exec/memory.h>
7 #include <proto/exec.h>
8 #include <proto/partition.h>
9 #include "partition_support.h"
12 /*****************************************************************************
15 #include <libraries/partition.h>
17 AROS_LH1(LONG
, DestroyPartitionTable
,
20 AROS_LHA(struct PartitionHandle
*, root
, A1
),
23 struct Library
*, PartitionBase
, 19, Partition
)
26 Destroy a partition table by immediately overwriting table data on
30 root - partition table to destroy
33 0 on success; an error code otherwise
36 After calling this function the state of the PartitionHandle will be
37 the same as before calling OpenPartitionTable(). Therefore do not
38 reference any child PartitionHandles any more.
48 *****************************************************************************/
55 struct PTFunctionTable
*handler
= root
->table
->handler
;
57 #undef DestroyPartitionTable
58 if (handler
->destroyPartitionTable
)
60 retval
= handler
->destroyPartitionTable(PartitionBase
, root
);
62 ClosePartitionTable(root
);