2 Copyright © 1995-2017, The AROS Development Team. All rights reserved.
6 #include <exec/memory.h>
7 #include <proto/exec.h>
8 #include "partition_support.h"
9 #include "partition_intern.h"
12 /*****************************************************************************
15 #include <libraries/partition.h>
17 AROS_LH1(void, ClosePartitionTable
,
20 AROS_LHA(struct PartitionHandle
*, root
, A1
),
23 struct Library
*, PartitionBase
, 8, Partition
)
26 Close a partition table (and discard all changes). All partitions
27 and subpartitions in root->list will be removed recursively.
30 root - partition table to close
44 *****************************************************************************/
50 struct PTFunctionTable
*handler
= root
->table
->handler
;
52 if (handler
->closePartitionTable
)
53 handler
->closePartitionTable(PartitionBase
, root
);
54 FreeMem(root
->table
, sizeof(struct PartitionTableHandler
));