blob: 992f6f31875bdf54e5ed54201585d3ae95cb97c2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#ifndef DEF_PART_NS_H
#define DEF_PART_NS_H
#include <Devices/BlockDevice.proto.h>
#include <Vector.class.h>
#include <VFS/Partition.class.h>
namespace Part {
extern Vector<BlockDevice*> devices;
extern Vector<Partition*> partitions;
void registerDevice(BlockDevice* dev);
void unregisterDevice(BlockDevice* dev);
u32int getDeviceID(BlockDevice* dev);
BlockDevice* dev(String _class, u32int idx);
Partition* part(BlockDevice* dev, u32int idx);
String partIdentifier(Partition* p); //Simply to help recognize the partition
}
#endif
|