2 Copyright © 1995-2003, 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 disk.
29 root - partition table to destroy
32 0 on success; an error code otherwise
35 After calling this function the state of the PartitionHandle will be the
36 same as before calling OpenPartitionTable(). Therefore do not reference
37 any child PartitionHandles any more.
47 *****************************************************************************/
54 struct PTFunctionTable
*handler
= root
->table
->handler
;
56 #undef DestroyPartitionTable
57 if (handler
->destroyPartitionTable
)
59 retval
= handler
->destroyPartitionTable(PartitionBase
, root
);
61 ClosePartitionTable(root
);