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