- New winsock (part 3 of x)
[reactos.git] / dll / win32 / dnsapi / dnsapi / memory.c
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
59 VOID WINAPI
60 DnsRecordListFree(PDNS_RECORD Data,
61 DNS_FREE_TYPE FreeType)
62 {
63 DnsFree(Data, FreeType);
64 }
65 /*
66 * COPYRIGHT: See COPYING in the top level directory
67 * PROJECT: ReactOS system libraries
68 * FILE: lib/dnsapi/dnsapi/free.c
69 * PURPOSE: DNSAPI functions built on the ADNS library.
70 * PROGRAMER: Art Yerkes
71 * UPDATE HISTORY:
72 * 12/15/03 -- Created
73 */
74
75 #include "precomp.h"
76
77 #define NDEBUG
78 #include <debug.h>
79
80 VOID
81 WINAPI
82 DnsApiFree(IN PVOID Data)
83 {
84 RtlFreeHeap(RtlGetProcessHeap(), 0, Data);
85 }
86
87 PVOID
88 WINAPI
89 DnsApiAlloc(IN DWORD Size)
90 {
91 return RtlAllocateHeap(RtlGetProcessHeap(), 0, Size);
92 }
93
94 PVOID
95 WINAPI
96 DnsQueryConfigAllocEx(IN DNS_CONFIG_TYPE Config,
97 OUT PVOID pBuffer,
98 IN OUT PDWORD pBufferLength)
99 {
100 return NULL;
101 }
102
103 VOID WINAPI
104 DnsFree(PVOID Data,
105 DNS_FREE_TYPE FreeType)
106 {
107 switch(FreeType)
108 {
109 case DnsFreeFlat:
110 RtlFreeHeap( RtlGetProcessHeap(), 0, Data );
111 break;
112
113 case DnsFreeRecordList:
114 DnsIntFreeRecordList( (PDNS_RECORD)Data );
115 break;
116
117 case DnsFreeParsedMessageFields:
118 /* assert( FALSE ); XXX arty not yet implemented. */
119 break;
120 }
121 }
122
123 VOID WINAPI
124 DnsRecordListFree(PDNS_RECORD Data,
125 DNS_FREE_TYPE FreeType)
126 {
127 DnsFree(Data, FreeType);
128 }