a700f43532b3c73d4c74bed2a0982d332e026204
[reactos.git] / reactos / dll / win32 / dnsapi / dnsapi / free.c
1 /*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS system libraries
4 * FILE: lib/dnsapi/dnsapi/free.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 WINAPI DnsFree
17 ( PVOID Data, DNS_FREE_TYPE FreeType ) {
18 switch( FreeType ) {
19 case DnsFreeFlat:
20 RtlFreeHeap( RtlGetProcessHeap(), 0, Data );
21 break;
22
23 case DnsFreeRecordList:
24 DnsIntFreeRecordList( (PDNS_RECORD)Data );
25 break;
26
27 case DnsFreeParsedMessageFields:
28 /* assert( FALSE ); XXX arty not yet implemented. */
29 break;
30 }
31 }
32
33 VOID WINAPI DnsRecordListFree
34 ( PDNS_RECORD Data, DNS_FREE_TYPE FreeType ) {
35 DnsFree( Data, FreeType );
36 }