kernel/eka/include/d32usbcsc.inl
changeset 247 d8d70de2bd36
parent 0 a41df078684a
child 257 3e88ff8f41d5
--- a/kernel/eka/include/d32usbcsc.inl	Tue Jul 06 15:50:07 2010 +0300
+++ b/kernel/eka/include/d32usbcsc.inl	Wed Aug 18 11:08:29 2010 +0300
@@ -1,4 +1,4 @@
-// Copyright (c) 1995-2009 Nokia Corporation and/or its subsidiary(-ies).
+// Copyright (c) 1995-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"
@@ -118,10 +118,19 @@
 
 /** @capability CommDD
 */
-inline TInt RDevUsbcScClient::Open(TInt aUnit)
+inline TInt RDevUsbcScClient::Open(TInt aUnit, TBool aShare)
 	{
 	_LIT(KUsbDevName, "usbcsc");
-	return (DoCreate(KUsbDevName, VersionRequired(), aUnit, NULL, NULL, EOwnerThread));
+	return (DoCreate(KUsbDevName, VersionRequired(), aUnit, NULL, NULL, EOwnerThread, aShare));
+	}
+
+inline TInt RDevUsbcScClient::Open(RMessagePtr2 aMessage,TInt aParam,TOwnerType aType)
+	{
+	iEndpointStatus = 0;
+	iAltSettingSeq = 0;
+	iAlternateSetting = 0;
+	iNewAltSetting = 0;
+	return RBusLogicalChannel::Open(aMessage,aParam,aType);
 	}
 
 
@@ -714,6 +723,8 @@
 	return DoControl(EControlStartNextInAlternateSetting);
 	}
 
+
+
 //Buffer Interface Layer (BIL) inline functions
 
 
@@ -730,6 +741,12 @@
 	return iEndpointNumber;
 	}
 
+inline TInt TEndpointBuffer::BufferNumber()
+	{
+	return iBufferNum;
+	}
+
+
 #endif // #ifndef __KERNEL_MODE__
 
 #endif // #ifndef __D32USBCSC_INL__