First public contribution.
1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
28 class MSgDriverAdapter;
33 This class encapsulates the global data in the Graphics Resource DLL.
35 NONSHARABLE_CLASS(XSgDriverPls)
39 Default constructor, called when the Graphics Resource DLL is loaded into a
40 process. Creates the mutex used to synchronise access to the global data. The
41 mutex will be automatically destroyed by the kernel on process termination.
46 Result code of the constructor.
50 Handle to the mutex used to synchronise access to the global data.
55 Handle to the Graphics Resource Adapter DLL owned by this process.
60 Number of times SgDriver::Open() has been called from this process without
61 a corresponding call to SgDriver::Close().
65 Pointer to the Graphics Resource Adapter singleton in this process.
67 MSgDriverAdapter* iDriver;
74 The UID3 value in the compound identifier of the Graphics Resource DLL.
76 const TUid KSgResourceLibraryUid = {0x10285A70};
82 The global data in the Graphics Resource DLL.
85 #define gPls (*Pls<XSgDriverPls>(KSgResourceLibraryUid))
87 extern XSgDriverPls gPls;