- Merge r45450 from aicom-network-branch

svn path=/trunk/; revision=48018
This commit is contained in:
Cameron Gutman 2010-07-12 19:36:42 +00:00
parent 795f1b72e1
commit 6ce27e86b9
3 changed files with 27 additions and 3 deletions

View file

@ -12,7 +12,7 @@
<directory name="dnsapi"> <directory name="dnsapi">
<file>adns.c</file> <file>adns.c</file>
<file>context.c</file> <file>context.c</file>
<file>free.c</file> <file>memory.c</file>
<file>names.c</file> <file>names.c</file>
<file>query.c</file> <file>query.c</file>
<file>record.c</file> <file>record.c</file>

View file

@ -6,6 +6,8 @@
@ stub DnsAddRecordSet_W @ stub DnsAddRecordSet_W
@ stub DnsAllocateRecord @ stub DnsAllocateRecord
@ stub DnsApiHeapReset @ stub DnsApiHeapReset
@ stdcall DnsApiAlloc(long)
@ stdcall DnsApiFree(ptr)
@ stub DnsAsyncRegisterHostAddrs_A @ stub DnsAsyncRegisterHostAddrs_A
@ stub DnsAsyncRegisterHostAddrs_UTF8 @ stub DnsAsyncRegisterHostAddrs_UTF8
@ stub DnsAsyncRegisterHostAddrs_W @ stub DnsAsyncRegisterHostAddrs_W

View file

@ -1,7 +1,7 @@
/* /*
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries * PROJECT: ReactOS system libraries
* FILE: lib/dnsapi/dnsapi/free.c * FILE: lib/dnsapi/dnsapi/memory.c
* PURPOSE: DNSAPI functions built on the ADNS library. * PURPOSE: DNSAPI functions built on the ADNS library.
* PROGRAMER: Art Yerkes * PROGRAMER: Art Yerkes
* UPDATE HISTORY: * UPDATE HISTORY:
@ -13,6 +13,29 @@
#define NDEBUG #define NDEBUG
#include <debug.h> #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 VOID WINAPI
DnsFree(PVOID Data, DnsFree(PVOID Data,
DNS_FREE_TYPE FreeType) DNS_FREE_TYPE FreeType)
@ -32,4 +55,3 @@ DnsFree(PVOID Data,
break; break;
} }
} }