diff -r 657f875b013e -r 73ea206103e6 kernel/eka/include/drivers/sdcard.inl --- a/kernel/eka/include/drivers/sdcard.inl Fri Jun 11 15:02:23 2010 +0300 +++ b/kernel/eka/include/drivers/sdcard.inl Wed Jun 23 19:44:53 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)