Replace .def file by a .spec file
authorHervé Poussineau <hpoussin@reactos.org>
Sat, 9 Aug 2008 09:25:21 +0000 (09:25 +0000)
committerHervé Poussineau <hpoussin@reactos.org>
Sat, 9 Aug 2008 09:25:21 +0000 (09:25 +0000)
svn path=/trunk/; revision=35218

reactos/drivers/directx/dxg/dxg.def [deleted file]
reactos/drivers/directx/dxg/dxg.rbuild
reactos/drivers/directx/dxg/dxg.spec [new file with mode: 0644]
reactos/drivers/directx/dxg/dxg_int.h
reactos/drivers/directx/dxg/main.c

diff --git a/reactos/drivers/directx/dxg/dxg.def b/reactos/drivers/directx/dxg/dxg.def
deleted file mode 100644 (file)
index 6500bd5..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-; $Id: videoprt.def 27062 2007-06-07 21:13:06Z greatlrd $
-;
-; dxg.def - export definition file for ReactOS
-;
-EXPORTS
-DriverEntry@8
-DxDdCleanupDxGraphics@0
-DxDdStartupDxGraphics@24
-
index 1e2a5d2..920183f 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0"?>
 <!DOCTYPE module SYSTEM "../../../../tools/rbuild/project.dtd">
 <module name="dxg" type="kernelmodedriver" installbase="system32/drivers" installname="dxg.sys">
-       <importlibrary definition="dxg.def" />
+       <importlibrary definition="dxg.spec.def" />
        <include base="dxg">.</include>
        <include base="dxg">include</include>
        <include base="ReactOS">subsystems/win32/win32k/include</include>
@@ -14,4 +14,5 @@
        <file>eng.c</file>
        <file>historic.c</file>
        <file>dxg.rc</file>
+       <file>dxg.spec</file>
 </module>
diff --git a/reactos/drivers/directx/dxg/dxg.spec b/reactos/drivers/directx/dxg/dxg.spec
new file mode 100644 (file)
index 0000000..d911436
--- /dev/null
@@ -0,0 +1,3 @@
+@ stdcall DriverEntry(ptr ptr)
+@ stdcall DxDdCleanupDxGraphics()
+@ stdcall DxDdStartupDxGraphics(long ptr long ptr ptr ptr)
index 081b651..5235478 100644 (file)
@@ -72,9 +72,9 @@ typedef struct _EDD_SURFACE_LOCAL
 } EDD_SURFACE_LOCAL, *PEDD_SURFACE_LOCAL;
 
 /* exported functions */
-NTSTATUS DriverEntry(IN PVOID Context1, IN PVOID Context2);
-NTSTATUS GsDriverEntry(IN PVOID Context1, IN PVOID Context2);
-NTSTATUS DxDdCleanupDxGraphics();
+NTSTATUS NTAPI DriverEntry(IN PVOID Context1, IN PVOID Context2);
+NTSTATUS NTAPI GsDriverEntry(IN PVOID Context1, IN PVOID Context2);
+NTSTATUS APIENTRY DxDdCleanupDxGraphics();
 
 /* Global pointers */
 extern ULONG gcSizeDdHmgr;
index ba82eeb..91104c2 100644 (file)
@@ -25,7 +25,7 @@ const ULONG gcDxgFuncs = DXG_INDEX_DxDdIoctl + 1;
 
 
 
-NTSTATUS
+NTSTATUS NTAPI
 DriverEntry(IN PVOID Context1,
             IN PVOID Context2)
 {
@@ -117,6 +117,7 @@ DxDdStartupDxGraphics (ULONG SizeEngDrv,
 
 
 NTSTATUS
+APIENTRY
 DxDdCleanupDxGraphics()
 {
     DdHmgDestroy();