--- a/kernel/eka/include/drivers/sdcard.inl Thu Jul 15 20:11:42 2010 +0300
+++ b/kernel/eka/include/drivers/sdcard.inl Thu Aug 19 11:14:22 2010 +0300
@@ -1,4 +1,4 @@
-// Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies).
+// Copyright (c) 1999-2010 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of the License "Eclipse Public License v1.0"
@@ -44,6 +44,34 @@
inline TUint32 TSDCard::PARootDirEnd() const {return iPARootDirEnd;}
inline void TSDCard::SetPARootDirEnd(TUint32 aPARootDirEnd) {iPARootDirEnd=aPARootDirEnd;}
+/**
+Called when a client registers with the SD card.
+*/
+inline void TSDCard::RegisterClient()
+ {
+ __e32_atomic_add_ord32(&iClientCountSD, 1);
+ }
+
+/**
+Called when a client de-registers with the SD card.
+*/
+inline void TSDCard::DeregisterClient()
+
+ {
+ __e32_atomic_add_ord32(&iClientCountSD, TUint32(-1));
+ }
+
+/**
+Returned value indicates whether or not clients have registered with the SD card.
+*/
+inline TBool TSDCard::ClientsRegistered()
+ {
+ if(iClientCountSD)
+ return ETrue;
+
+ return EFalse;
+ }
+
// ======== TSDCardArray ========
inline TSDCardArray::TSDCardArray(DSDStack* aOwningStack) : TMMCardArray(aOwningStack)