Adaptation/GUID-DD568637-CD37-5E4C-AD78-4AA5AFE1E9D8.dita
changeset 15 307f4279f433
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Adaptation/GUID-DD568637-CD37-5E4C-AD78-4AA5AFE1E9D8.dita	Fri Oct 15 14:32:18 2010 +0100
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (c) 2007-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" 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: 
+-->
+<!DOCTYPE concept
+  PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd">
+<concept id="GUID-DD568637-CD37-5E4C-AD78-4AA5AFE1E9D8" xml:lang="en"><title>Entry
+Point Implementation</title><shortdesc>Media driver must implement an entry point function that creates
+a PDD factory object that is derived from <codeph>DPhysicalDevice</codeph>.</shortdesc><prolog><metadata><keywords/></metadata></prolog><conbody>
+<p>Because media drivers are implemented as kernel extensions, use the <xref href="GUID-F10BBEC9-FC49-3B85-9B7F-9A6DB66A7B30.dita"><apiname>DECLARE_EXTENSION_PDD()</apiname></xref> macro
+as a wrapper around the code that creates your factory object; the following
+code fragment is typical: </p>
+<codeblock id="GUID-BE6811EF-1FA7-58D2-89AC-12887B49DA5B" xml:space="preserve">DECLARE_EXTENSION_PDD()
+    {
+    return new DMyPhysicalDevice;
+    } </codeblock>
+<p>where <codeph>DMyPhysicalDevice</codeph> is an implementation of <xref href="GUID-A5484A7F-94B9-34C7-9F88-82B1BF516930.dita"><apiname>DPhysicalDevice</apiname></xref>. </p>
+</conbody></concept>
\ No newline at end of file