diff -r 5e441a173c63 -r 2ac1c5c27758 kernel/eka/include/drivers/sdcard.inl --- a/kernel/eka/include/drivers/sdcard.inl Mon May 24 18:45:46 2010 +0100 +++ b/kernel/eka/include/drivers/sdcard.inl Mon Jun 07 16:46:36 2010 +0100 @@ -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)