[DNSAPI]
authorCameron Gutman <aicommander@gmail.com>
Mon, 12 Jul 2010 19:36:42 +0000 (19:36 +0000)
committerCameron Gutman <aicommander@gmail.com>
Mon, 12 Jul 2010 19:36:42 +0000 (19:36 +0000)
- Merge r45450 from aicom-network-branch

svn path=/trunk/; revision=48018

reactos/dll/win32/dnsapi/dnsapi.rbuild
reactos/dll/win32/dnsapi/dnsapi.spec
reactos/dll/win32/dnsapi/dnsapi/memory.c [moved from reactos/dll/win32/dnsapi/dnsapi/free.c with 64% similarity]

index 4c0e31d..bda940f 100644 (file)
@@ -12,7 +12,7 @@
        <directory name="dnsapi">
                <file>adns.c</file>
                <file>context.c</file>
-               <file>free.c</file>
+               <file>memory.c</file>
                <file>names.c</file>
                <file>query.c</file>
                <file>record.c</file>
index 47eb2d0..4c73991 100644 (file)
@@ -6,6 +6,8 @@
 @ stub DnsAddRecordSet_W
 @ stub DnsAllocateRecord
 @ stub DnsApiHeapReset
+@ stdcall DnsApiAlloc(long)
+@ stdcall DnsApiFree(ptr)
 @ stub DnsAsyncRegisterHostAddrs_A
 @ stub DnsAsyncRegisterHostAddrs_UTF8
 @ stub DnsAsyncRegisterHostAddrs_W
similarity index 64%
rename from reactos/dll/win32/dnsapi/dnsapi/free.c
rename to reactos/dll/win32/dnsapi/dnsapi/memory.c
index 5bfffa6..5d3e6fe 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * COPYRIGHT:   See COPYING in the top level directory
  * PROJECT:     ReactOS system libraries
- * FILE:        lib/dnsapi/dnsapi/free.c
+ * FILE:        lib/dnsapi/dnsapi/memory.c
  * PURPOSE:     DNSAPI functions built on the ADNS library.
  * PROGRAMER:   Art Yerkes
  * UPDATE HISTORY:
 #define NDEBUG
 #include <debug.h>
 
+VOID
+WINAPI
+DnsApiFree(IN PVOID Data)
+{
+    RtlFreeHeap(RtlGetProcessHeap(), 0, Data);
+}
+
+PVOID
+WINAPI
+DnsApiAlloc(IN DWORD Size)
+{
+    return RtlAllocateHeap(RtlGetProcessHeap(), 0, Size);
+}
+
+PVOID
+WINAPI
+DnsQueryConfigAllocEx(IN DNS_CONFIG_TYPE Config,
+                      OUT PVOID pBuffer,
+                      IN OUT PDWORD pBufferLength)
+{
+    return NULL;
+}
+
 VOID WINAPI
 DnsFree(PVOID Data,
         DNS_FREE_TYPE FreeType)
@@ -32,4 +55,3 @@ DnsFree(PVOID Data,
             break;
     }
 }
-