Add Stubs for DirectDrawVideoPort and DDVideoPortContainer.
authorMaarten Bosma <maarten@bosma.de>
Fri, 28 Oct 2005 12:12:33 +0000 (12:12 +0000)
committerMaarten Bosma <maarten@bosma.de>
Fri, 28 Oct 2005 12:12:33 +0000 (12:12 +0000)
svn path=/trunk/; revision=18830

reactos/lib/ddraw/ddraw.xml
reactos/lib/ddraw/main/videoport.c [new file with mode: 0644]

index 181a479..d8e6227 100644 (file)
@@ -29,6 +29,7 @@
                <file>color.c</file>\r
                <file>gamma.c</file>\r
                <file>palette.c</file>\r
                <file>color.c</file>\r
                <file>gamma.c</file>\r
                <file>palette.c</file>\r
+               <file>videoport.c</file>\r
        </directory>\r
 \r
        <directory name="soft">\r
        </directory>\r
 \r
        <directory name="soft">\r
diff --git a/reactos/lib/ddraw/main/videoport.c b/reactos/lib/ddraw/main/videoport.c
new file mode 100644 (file)
index 0000000..a1fa4a2
--- /dev/null
@@ -0,0 +1,182 @@
+/* $Id$
+ *
+ * COPYRIGHT:            See COPYING in the top level directory
+ * PROJECT:              ReactOS
+ * FILE:                 lib/ddraw/main/videoport.c
+ * PURPOSE:              IDirectDrawVideoPort and DDVideoPortContainer Implementation 
+ * PROGRAMMER:           Maarten Bosma
+ *
+ */
+
+#include "rosdraw.h"
+
+
+/************* IDirectDrawVideoPort *************/ 
+
+HRESULT WINAPI 
+Main_DirectDrawVideoPort_QueryInterface (LPDIRECTDRAWVIDEOPORT iface, REFIID riid, LPVOID* ppvObj)
+{
+       DX_STUB;
+}
+
+ULONG WINAPI 
+Main_DirectDrawVideoPort_AddRef (LPDIRECTDRAWVIDEOPORT iface) 
+{
+       DX_STUB;
+}
+
+ULONG WINAPI 
+Main_DirectDrawVideoPort_Release (LPDIRECTDRAWVIDEOPORT iface)
+{
+       DX_STUB;
+}
+
+HRESULT WINAPI 
+Main_DirectDrawVideoPort_Flip (LPDIRECTDRAWVIDEOPORT iface, LPDIRECTDRAWSURFACE lpDDSurface, DWORD dwFlags)
+{
+       DX_STUB;
+}
+
+HRESULT WINAPI 
+Main_DirectDrawVideoPort_GetBandwidthInfo (LPDIRECTDRAWVIDEOPORT iface, LPDDPIXELFORMAT lpddpfFormat, DWORD dwWidth, 
+                                                                                  DWORD dwHeight, DWORD dwFlags, LPDDVIDEOPORTBANDWIDTH lpBandwidth)
+{
+       DX_STUB;
+}
+
+HRESULT WINAPI 
+Main_DirectDrawVideoPort_GetColorControls (LPDIRECTDRAWVIDEOPORT iface, LPDDCOLORCONTROL lpColorControl)
+{
+       DX_STUB;
+}
+
+HRESULT WINAPI Main_DirectDrawVideoPort_GetInputFormats (LPDIRECTDRAWVIDEOPORT iface, LPDWORD lpNumFormats, 
+                                                                                                                LPDDPIXELFORMAT lpFormats, DWORD dwFlags)
+{
+       DX_STUB;
+}
+
+HRESULT WINAPI Main_DirectDrawVideoPort_GetOutputFormats (LPDIRECTDRAWVIDEOPORT iface, LPDDPIXELFORMAT lpInputFormat, 
+                                                                                                                 LPDWORD lpNumFormats, LPDDPIXELFORMAT lpFormats, DWORD dwFlags)
+{
+       DX_STUB;
+}
+
+HRESULT WINAPI Main_DirectDrawVideoPort_GetFieldPolarity (LPDIRECTDRAWVIDEOPORT iface, LPBOOL lpbFieldPolarity)
+{
+       DX_STUB;
+}
+
+HRESULT WINAPI Main_DirectDrawVideoPort_GetVideoLine (LPDIRECTDRAWVIDEOPORT This, LPDWORD lpdwLine)
+{
+       DX_STUB;
+}
+
+HRESULT WINAPI Main_DirectDrawVideoPort_GetVideoSignalStatus (LPDIRECTDRAWVIDEOPORT iface, LPDWORD lpdwStatus)
+{
+       DX_STUB;
+}
+
+HRESULT WINAPI Main_DirectDrawVideoPort_SetColorControls (LPDIRECTDRAWVIDEOPORT iface, LPDDCOLORCONTROL lpColorControl)
+{
+       DX_STUB;
+}
+
+HRESULT WINAPI Main_DirectDrawVideoPort_SetTargetSurface (LPDIRECTDRAWVIDEOPORT iface, LPDIRECTDRAWSURFACE lpDDSurface, 
+                                                                                                                 DWORD dwFlags)
+{
+       DX_STUB;
+}
+
+HRESULT WINAPI Main_DirectDrawVideoPort_StartVideo (LPDIRECTDRAWVIDEOPORT iface, LPDDVIDEOPORTINFO dwFlags)
+{
+       DX_STUB;
+}
+
+HRESULT WINAPI Main_DirectDrawVideoPort_StopVideo (LPDIRECTDRAWVIDEOPORT iface)
+{
+       DX_STUB;
+}
+
+HRESULT WINAPI Main_DirectDrawVideoPort_UpdateVideo (LPDIRECTDRAWVIDEOPORT iface, LPDDVIDEOPORTINFO dwFlags)
+{
+       DX_STUB;
+}
+
+HRESULT WINAPI Main_DirectDrawVideoPort_WaitForSync (LPDIRECTDRAWVIDEOPORT iface, DWORD dwFlags, DWORD dwLine, 
+                                                                                                        DWORD dwTimeout)
+{
+       DX_STUB;
+}
+
+/************* IDDVideoPortContainer *************/ 
+
+HRESULT WINAPI Main_DDVideoPortContainer_QueryInterface (LPDDVIDEOPORTCONTAINER iface, REFIID riid, LPVOID* ppvObj)
+{
+    DX_STUB;
+}
+
+ULONG WINAPI Main_DDVideoPortContainer_AddRef (LPDDVIDEOPORTCONTAINER iface) 
+{
+    DX_STUB;
+}
+
+ULONG WINAPI Main_DDVideoPortContainer_Release (LPDDVIDEOPORTCONTAINER iface)
+{
+    DX_STUB;
+}
+
+HRESULT WINAPI Main_DDVideoPortContainer_CreateVideoPort (LPDDVIDEOPORTCONTAINER iface, DWORD dwFlags, LPDDVIDEOPORTDESC pPortDesc, 
+                                                                                                                 LPDIRECTDRAWVIDEOPORT* DDVideoPort, IUnknown* pUnkOuter)
+{
+    DX_STUB;
+}    
+
+HRESULT WINAPI Main_DDVideoPortContainer_EnumVideoPorts (LPDDVIDEOPORTCONTAINER iface, DWORD dwFlags, LPDDVIDEOPORTCAPS pCaps, LPVOID pContext, 
+                                                                                                                LPDDENUMVIDEOCALLBACK pEnumVideoCallback)
+{
+    DX_STUB;
+}
+
+HRESULT WINAPI Main_DDVideoPortContainer_GetVideoPortConnectInfo (LPDDVIDEOPORTCONTAINER iface, DWORD PortId, DWORD* pNumEntries, 
+                                                                                                                                 LPDDVIDEOPORTCONNECT pConnectInfo)
+{
+    DX_STUB;
+}
+
+HRESULT WINAPI Main_DDVideoPortContainer_QueryVideoPortStatus (LPDDVIDEOPORTCONTAINER iface, DWORD PortId, LPDDVIDEOPORTSTATUS pStatus)
+{
+    DX_STUB;
+}
+
+IDirectDrawVideoPortVtbl DirectDrawVideoPort_Vtable =
+{
+       Main_DirectDrawVideoPort_QueryInterface,
+       Main_DirectDrawVideoPort_AddRef,
+       Main_DirectDrawVideoPort_Release,
+       Main_DirectDrawVideoPort_Flip, 
+       Main_DirectDrawVideoPort_GetBandwidthInfo, 
+       Main_DirectDrawVideoPort_GetColorControls, 
+       Main_DirectDrawVideoPort_GetInputFormats, 
+       Main_DirectDrawVideoPort_GetOutputFormats, 
+       Main_DirectDrawVideoPort_GetFieldPolarity, 
+       Main_DirectDrawVideoPort_GetVideoLine,
+       Main_DirectDrawVideoPort_GetVideoSignalStatus, 
+       Main_DirectDrawVideoPort_SetColorControls, 
+       Main_DirectDrawVideoPort_SetTargetSurface, 
+       Main_DirectDrawVideoPort_StartVideo, 
+       Main_DirectDrawVideoPort_StopVideo, 
+       Main_DirectDrawVideoPort_UpdateVideo, 
+       Main_DirectDrawVideoPort_WaitForSync
+};
+
+IDDVideoPortContainerVtbl DDVideoPortContainer_Vtable =
+{
+    Main_DDVideoPortContainer_QueryInterface,
+    Main_DDVideoPortContainer_AddRef,
+    Main_DDVideoPortContainer_Release,
+    Main_DDVideoPortContainer_CreateVideoPort,
+    Main_DDVideoPortContainer_EnumVideoPorts,
+    Main_DDVideoPortContainer_GetVideoPortConnectInfo,
+    Main_DDVideoPortContainer_QueryVideoPortStatus
+};