Author: cgutman
Date: Sat Feb 6 03:56:20 2010
New Revision: 45450
URL:
http://svn.reactos.org/svn/reactos?rev=45450&view=rev
Log:
- New winsock (part 3 of x)
- Implement DnsApiAlloc and DnsApiFree
Added:
branches/aicom-network-branch/dll/win32/dnsapi/dnsapi/memory.c (with props)
Removed:
branches/aicom-network-branch/dll/win32/dnsapi/dnsapi/free.c
Modified:
branches/aicom-network-branch/dll/win32/dnsapi/dnsapi.rbuild
branches/aicom-network-branch/dll/win32/dnsapi/dnsapi.spec
Modified: branches/aicom-network-branch/dll/win32/dnsapi/dnsapi.rbuild
URL:
http://svn.reactos.org/svn/reactos/branches/aicom-network-branch/dll/win32/…
==============================================================================
--- branches/aicom-network-branch/dll/win32/dnsapi/dnsapi.rbuild [iso-8859-1] (original)
+++ branches/aicom-network-branch/dll/win32/dnsapi/dnsapi.rbuild [iso-8859-1] Sat Feb 6
03:56:20 2010
@@ -13,7 +13,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>stubs.c</file>
Modified: branches/aicom-network-branch/dll/win32/dnsapi/dnsapi.spec
URL:
http://svn.reactos.org/svn/reactos/branches/aicom-network-branch/dll/win32/…
==============================================================================
--- branches/aicom-network-branch/dll/win32/dnsapi/dnsapi.spec [iso-8859-1] (original)
+++ branches/aicom-network-branch/dll/win32/dnsapi/dnsapi.spec [iso-8859-1] Sat Feb 6
03:56:20 2010
@@ -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
Removed: branches/aicom-network-branch/dll/win32/dnsapi/dnsapi/free.c
URL:
http://svn.reactos.org/svn/reactos/branches/aicom-network-branch/dll/win32/…
==============================================================================
--- branches/aicom-network-branch/dll/win32/dnsapi/dnsapi/free.c [iso-8859-1] (original)
+++ branches/aicom-network-branch/dll/win32/dnsapi/dnsapi/free.c (removed)
@@ -1,41 +1,0 @@
-/*
- * COPYRIGHT: See COPYING in the top level directory
- * PROJECT: ReactOS system libraries
- * FILE: lib/dnsapi/dnsapi/free.c
- * PURPOSE: DNSAPI functions built on the ADNS library.
- * PROGRAMER: Art Yerkes
- * UPDATE HISTORY:
- * 12/15/03 -- Created
- */
-
-#include "precomp.h"
-
-#define NDEBUG
-#include <debug.h>
-
-VOID WINAPI
-DnsFree(PVOID Data,
- DNS_FREE_TYPE FreeType)
-{
- switch(FreeType)
- {
- case DnsFreeFlat:
- RtlFreeHeap( RtlGetProcessHeap(), 0, Data );
- break;
-
- case DnsFreeRecordList:
- DnsIntFreeRecordList( (PDNS_RECORD)Data );
- break;
-
- case DnsFreeParsedMessageFields:
- /* assert( FALSE ); XXX arty not yet implemented. */
- break;
- }
-}
-
-VOID WINAPI
-DnsRecordListFree(PDNS_RECORD Data,
- DNS_FREE_TYPE FreeType)
-{
- DnsFree(Data, FreeType);
-}
Added: branches/aicom-network-branch/dll/win32/dnsapi/dnsapi/memory.c
URL:
http://svn.reactos.org/svn/reactos/branches/aicom-network-branch/dll/win32/…
==============================================================================
--- branches/aicom-network-branch/dll/win32/dnsapi/dnsapi/memory.c (added)
+++ branches/aicom-network-branch/dll/win32/dnsapi/dnsapi/memory.c [iso-8859-1] Sat Feb 6
03:56:20 2010
@@ -1,0 +1,128 @@
+/*
+ * COPYRIGHT: See COPYING in the top level directory
+ * PROJECT: ReactOS system libraries
+ * FILE: lib/dnsapi/dnsapi/memory.c
+ * PURPOSE: DNSAPI functions built on the ADNS library.
+ * PROGRAMER: Art Yerkes
+ * UPDATE HISTORY:
+ * 12/15/03 -- Created
+ */
+
+#include "precomp.h"
+
+#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)
+{
+ switch(FreeType)
+ {
+ case DnsFreeFlat:
+ RtlFreeHeap( RtlGetProcessHeap(), 0, Data );
+ break;
+
+ case DnsFreeRecordList:
+ DnsIntFreeRecordList( (PDNS_RECORD)Data );
+ break;
+
+ case DnsFreeParsedMessageFields:
+ /* assert( FALSE ); XXX arty not yet implemented. */
+ break;
+ }
+}
+
+VOID WINAPI
+DnsRecordListFree(PDNS_RECORD Data,
+ DNS_FREE_TYPE FreeType)
+{
+ DnsFree(Data, FreeType);
+}
+/*
+ * COPYRIGHT: See COPYING in the top level directory
+ * PROJECT: ReactOS system libraries
+ * FILE: lib/dnsapi/dnsapi/free.c
+ * PURPOSE: DNSAPI functions built on the ADNS library.
+ * PROGRAMER: Art Yerkes
+ * UPDATE HISTORY:
+ * 12/15/03 -- Created
+ */
+
+#include "precomp.h"
+
+#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)
+{
+ switch(FreeType)
+ {
+ case DnsFreeFlat:
+ RtlFreeHeap( RtlGetProcessHeap(), 0, Data );
+ break;
+
+ case DnsFreeRecordList:
+ DnsIntFreeRecordList( (PDNS_RECORD)Data );
+ break;
+
+ case DnsFreeParsedMessageFields:
+ /* assert( FALSE ); XXX arty not yet implemented. */
+ break;
+ }
+}
+
+VOID WINAPI
+DnsRecordListFree(PDNS_RECORD Data,
+ DNS_FREE_TYPE FreeType)
+{
+ DnsFree(Data, FreeType);
+}
Propchange: branches/aicom-network-branch/dll/win32/dnsapi/dnsapi/memory.c
------------------------------------------------------------------------------
svn:eol-style = native