1//----------------------------------------------------------------------
2//  This software is part of the Haiku distribution and is covered
3//  by the MIT License.
4//
5//  Copyright (c) 2003 Tyler Dauwalder, tyler@dauwalder.net
6//---------------------------------------------------------------------
7#ifndef _UDF_PARTITION_H
8#define _UDF_PARTITION_H
9
10/*! \file Partition.h
11*/
12
13#include <SupportDefs.h>
14
15/*! \brief Abstract base class for various UDF partition types.
16*/
17class Partition {
18public:
19	virtual ~Partition() {}
20	virtual status_t MapBlock(uint32 logicalBlock, off_t &physicalBlock) = 0;
21//	virtual status_t MapExtent(uint32 logicalBlock, uint32 logicalLength,
22//	                           uint32 &physicalBlock, uint32 &physicalLength) = 0;
23};
24
25#endif	// _UDF_PARTITION_H
26