xref: /reactos/dll/win32/dnsapi/memory.c (revision 872fc17d)
1*872fc17dSEric Kohl /*
2*872fc17dSEric Kohl  * COPYRIGHT:   See COPYING in the top level directory
3*872fc17dSEric Kohl  * PROJECT:     ReactOS system libraries
4*872fc17dSEric Kohl  * FILE:        lib/dnsapi/dnsapi/memory.c
5*872fc17dSEric Kohl  * PURPOSE:     DNSAPI functions built on the ADNS library.
6*872fc17dSEric Kohl  * PROGRAMER:   Art Yerkes
7*872fc17dSEric Kohl  * UPDATE HISTORY:
8*872fc17dSEric Kohl  *              12/15/03 -- Created
9*872fc17dSEric Kohl  */
10*872fc17dSEric Kohl 
11*872fc17dSEric Kohl #include "precomp.h"
12*872fc17dSEric Kohl 
13*872fc17dSEric Kohl #define NDEBUG
14*872fc17dSEric Kohl #include <debug.h>
15*872fc17dSEric Kohl 
16*872fc17dSEric Kohl VOID
17*872fc17dSEric Kohl WINAPI
DnsApiFree(IN PVOID Data)18*872fc17dSEric Kohl DnsApiFree(IN PVOID Data)
19*872fc17dSEric Kohl {
20*872fc17dSEric Kohl     RtlFreeHeap(RtlGetProcessHeap(), 0, Data);
21*872fc17dSEric Kohl }
22*872fc17dSEric Kohl 
23*872fc17dSEric Kohl PVOID
24*872fc17dSEric Kohl WINAPI
DnsApiAlloc(IN DWORD Size)25*872fc17dSEric Kohl DnsApiAlloc(IN DWORD Size)
26*872fc17dSEric Kohl {
27*872fc17dSEric Kohl     return RtlAllocateHeap(RtlGetProcessHeap(), 0, Size);
28*872fc17dSEric Kohl }
29*872fc17dSEric Kohl 
30*872fc17dSEric Kohl PVOID
31*872fc17dSEric Kohl WINAPI
DnsQueryConfigAllocEx(IN DNS_CONFIG_TYPE Config,OUT PVOID pBuffer,IN OUT PDWORD pBufferLength)32*872fc17dSEric Kohl DnsQueryConfigAllocEx(IN DNS_CONFIG_TYPE Config,
33*872fc17dSEric Kohl                       OUT PVOID pBuffer,
34*872fc17dSEric Kohl                       IN OUT PDWORD pBufferLength)
35*872fc17dSEric Kohl {
36*872fc17dSEric Kohl     return NULL;
37*872fc17dSEric Kohl }
38*872fc17dSEric Kohl 
39*872fc17dSEric Kohl VOID WINAPI
DnsFree(PVOID Data,DNS_FREE_TYPE FreeType)40*872fc17dSEric Kohl DnsFree(PVOID Data,
41*872fc17dSEric Kohl         DNS_FREE_TYPE FreeType)
42*872fc17dSEric Kohl {
43*872fc17dSEric Kohl     switch(FreeType)
44*872fc17dSEric Kohl     {
45*872fc17dSEric Kohl         case DnsFreeFlat:
46*872fc17dSEric Kohl             RtlFreeHeap( RtlGetProcessHeap(), 0, Data );
47*872fc17dSEric Kohl             break;
48*872fc17dSEric Kohl 
49*872fc17dSEric Kohl         case DnsFreeRecordList:
50*872fc17dSEric Kohl             DnsIntFreeRecordList( (PDNS_RECORD)Data );
51*872fc17dSEric Kohl             break;
52*872fc17dSEric Kohl 
53*872fc17dSEric Kohl         case DnsFreeParsedMessageFields:
54*872fc17dSEric Kohl             /* assert( FALSE ); XXX arty not yet implemented. */
55*872fc17dSEric Kohl             break;
56*872fc17dSEric Kohl     }
57*872fc17dSEric Kohl }
58