diff -r 000000000000 -r 5d03bc08d59c windowing/windowserver/nonnga/CLIENT/w32comm.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/windowing/windowserver/nonnga/CLIENT/w32comm.cpp Tue Feb 02 01:47:50 2010 +0200 @@ -0,0 +1,53 @@ +// Copyright (c) 1996-2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of "Eclipse Public License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.eclipse.org/legal/epl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// Common utils +// +// + +#include +#include "w32comm.h" + +void TWriteDescriptorType::SetDescriptorOnIpcArgs(TIpcArgs& aIpcArgs) const + { + switch (iBufferType) + { + case EDes8: + aIpcArgs.Set(KReplyBufferMessageSlot, reinterpret_cast(iArgument)); + break; + case EDes16: + aIpcArgs.Set(KReplyBufferMessageSlot, reinterpret_cast(iArgument)); + break; + case EDesC8: + case EDesC16: + default: + break; + } + } + +void TReadDescriptorType::SetDescriptorOnIpcArgs(TIpcArgs& aIpcArgs) const + { + switch (iBufferType) + { + case EDesC8: + aIpcArgs.Set(KRemoteBufferMessageSlot, reinterpret_cast(iArgument)); + break; + case EDesC16: + aIpcArgs.Set(KRemoteBufferMessageSlot, reinterpret_cast(iArgument)); + break; + case EDes8: + case EDes16: + default: + break; + } + }