The disk device manager now periodically checks for media changes - all it does

is dump its findings, but it's an (untested) start.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22598 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2007-10-17 17:05:48 +00:00
parent 10ffdaa294
commit 8047441723
3 changed files with 66 additions and 7 deletions
@@ -1,5 +1,7 @@
// KDiskDevice.h
/*
* Copyright 2003-2007, Ingo Weinhold, [email protected]. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef _K_DISK_DEVICE_H
#define _K_DISK_DEVICE_H
@@ -50,6 +52,8 @@ public:
bool IsRemovable() const;
bool HasMedia() const;
virtual status_t GetMediaStatus(status_t *mediaStatus);
status_t SetPath(const char *path);
// TODO: Remove this method or make it private. Once initialized the
// path must not be changed.
@@ -77,7 +81,6 @@ public:
virtual void Dump(bool deep = true, int32 level = 0);
protected:
virtual status_t GetMediaStatus(status_t *mediaStatus);
virtual status_t GetGeometry(device_geometry *geometry);
private: