diff -r 000000000000 -r 95b198f216e5 omadrm/drmengine/server/inc/drmcommonclientserver.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/omadrm/drmengine/server/inc/drmcommonclientserver.h Thu Dec 17 08:52:27 2009 +0200 @@ -0,0 +1,47 @@ +/* +* Copyright (c) 2005 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: Internal data types for client/server communications. +* +*/ + + +#ifndef DRMGENERICCLIENTSERVER_H +#define DRMGENERICCLIENTSERVER_H + +#include +#include "DRMPointerArray.h" + +const TUint8 KDRMKeyLength = 16; +typedef TBuf8< KDRMKeyLength > TDRMKey; + + +_LIT( KDRMEngCommonSemaphore, "rightsserver" ); + + +enum KDRMErrors + { + EOk = KErrNone, + EGeneralError = -30100, + EUnknownMIME = -30101, + EVersionNotSupported = -30102, + ESessionError = -30103, + ENoRights = KErrCANoRights, + ERightsDBCorrupted = -30105, + EUnsupported = KErrCANotSupported, + ERightsExpired = KErrCANoPermission, + EInvalidRights = -30108 + }; +#endif // DRMGENERICCLIENTSERVER_H + +// End of File