From c34b4f49f46f86b2809edb3b9139b780aa4ea74b Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Wed, 30 Jul 2003 17:46:59 +0000 Subject: [PATCH] Added ActiveJobIndex(). git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4136 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- .../kernel/disk_device_manager/KDiskDeviceJobQueue.h | 1 + .../core/disk_device_manager/KDiskDeviceJobQueue.cpp | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/headers/private/kernel/disk_device_manager/KDiskDeviceJobQueue.h b/headers/private/kernel/disk_device_manager/KDiskDeviceJobQueue.h index 90aa940f6f..3b734489f5 100644 --- a/headers/private/kernel/disk_device_manager/KDiskDeviceJobQueue.h +++ b/headers/private/kernel/disk_device_manager/KDiskDeviceJobQueue.h @@ -23,6 +23,7 @@ public: void SetDevice(KDiskDevice *device); KDiskDevice *Device() const; + int32 ActiveJobIndex() const; KDiskDeviceJob *ActiveJob() const; // list of scheduled jobs diff --git a/src/kernel/core/disk_device_manager/KDiskDeviceJobQueue.cpp b/src/kernel/core/disk_device_manager/KDiskDeviceJobQueue.cpp index 1116c046f8..6aa89bfdd0 100644 --- a/src/kernel/core/disk_device_manager/KDiskDeviceJobQueue.cpp +++ b/src/kernel/core/disk_device_manager/KDiskDeviceJobQueue.cpp @@ -97,6 +97,13 @@ KDiskDeviceJobQueue::Device() const return fDevice; } +// ActiveJobIndex +int32 +KDiskDeviceJobQueue::ActiveJobIndex() const +{ + return fActiveJob; +} + // ActiveJob KDiskDeviceJob * KDiskDeviceJobQueue::ActiveJob() const