diff -r 57c618273d5c -r bbf46f59e123 graphicsresourceservices/graphicsresourceimplementation/inc/sgextension.inl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/graphicsresourceservices/graphicsresourceimplementation/inc/sgextension.inl Tue Aug 31 16:31:06 2010 +0300 @@ -0,0 +1,46 @@ +// Copyright (c) 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: +// Graphics Resource - kernel extension inline functions +// + +#ifndef SGEXTENSION_INL +#define SGEXTENSION_INL + +inline TInt DSgResource::Compare(const TUint64* aId, const DSgResource& aResource) + { + if (*aId > aResource.Id()) + { + return 1; + } + if (*aId < aResource.Id()) + { + return -1; + } + return 0; + } + +inline TInt DSgResource::Compare(const DSgResource& aResource1, const DSgResource& aResource2) + { + if (aResource1.Id() > aResource2.Id()) + { + return 1; + } + if (aResource1.Id() < aResource2.Id()) + { + return -1; + } + return 0; + } + +#endif // SGEXTENSION_INL