2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
7 #include <exec/memory.h>
8 #include <proto/exec.h>
9 #include "partition_support.h"
10 #include "partition_intern.h"
13 /*****************************************************************************
16 #include <libraries/partition.h>
18 AROS_LH1(void, ClosePartitionTable
,
21 AROS_LHA(struct PartitionHandle
*, root
, A1
),
24 struct Library
*, PartitionBase
, 8, Partition
)
27 close a partition table (and discard all changes)
28 all partitions and subpartitions in root->list will be removed recursivly
31 root - partition table to close
46 21-02-02 first version
48 *****************************************************************************/
54 struct PTFunctionTable
*handler
= root
->table
->handler
;
56 if (handler
->closePartitionTable
)
57 handler
->closePartitionTable(PartitionBase
, root
);
58 FreeMem(root
->table
, sizeof(struct PartitionTableHandler
));