dnsapi: Remove unused variable.
[wine] / dlls / dnsapi / main.c
1 /*
2  * DNS support
3  *
4  * Copyright (C) 2006 Matthew Kehrer
5  * Copyright (C) 2006 Hans Leidekker
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2.1 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this library; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
20  */
21
22 #include <stdarg.h>
23
24 #include "windef.h"
25 #include "winbase.h"
26 #include "winerror.h"
27 #include "windns.h"
28
29 #include "wine/debug.h"
30
31 WINE_DEFAULT_DEBUG_CHANNEL(dnsapi);
32
33 BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved )
34 {
35     TRACE( "(%p, %d, %p)\n", hinst, reason, reserved );
36
37     switch (reason)
38     {
39     case DLL_WINE_PREATTACH:
40         return FALSE;  /* prefer native version */
41     case DLL_PROCESS_ATTACH:
42         DisableThreadLibraryCalls( hinst );
43         break;
44     case DLL_PROCESS_DETACH:
45         break;
46     }
47     return TRUE;
48 }
49
50 /******************************************************************************
51  * DnsAcquireContextHandle_A              [DNSAPI.@]
52  *
53  */
54 DNS_STATUS WINAPI DnsAcquireContextHandle_A( DWORD flags, PVOID cred,
55                                              PHANDLE context )
56 {
57     FIXME( "(0x%08x,%p,%p) stub\n", flags, cred, context );
58
59     *context = (HANDLE)0xdeadbeef;
60     return ERROR_SUCCESS;
61 }
62
63 /******************************************************************************
64  * DnsAcquireContextHandle_UTF8              [DNSAPI.@]
65  *
66  */
67 DNS_STATUS WINAPI DnsAcquireContextHandle_UTF8( DWORD flags, PVOID cred,
68                                                 PHANDLE context )
69 {
70     FIXME( "(0x%08x,%p,%p) stub\n", flags, cred, context );
71
72     *context = (HANDLE)0xdeadbeef;
73     return ERROR_SUCCESS;
74 }
75
76 /******************************************************************************
77  * DnsAcquireContextHandle_W              [DNSAPI.@]
78  *
79  */
80 DNS_STATUS WINAPI DnsAcquireContextHandle_W( DWORD flags, PVOID cred,
81                                              PHANDLE context )
82 {
83     FIXME( "(0x%08x,%p,%p) stub\n", flags, cred, context );
84
85     *context = (HANDLE)0xdeadbeef;
86     return ERROR_SUCCESS;
87 }
88
89 /******************************************************************************
90  * DnsFlushResolverCache               [DNSAPI.@]
91  *
92  */
93 VOID WINAPI DnsFlushResolverCache(void)
94 {
95     FIXME(": stub\n");
96 }
97
98
99 /******************************************************************************
100  * DnsReleaseContextHandle                [DNSAPI.@]
101  *
102  */
103 VOID WINAPI DnsReleaseContextHandle( HANDLE context )
104 {
105     FIXME( "(%p) stub\n", context );
106 }
107
108 /******************************************************************************
109  * DnsExtractRecordsFromMessage_UTF8       [DNSAPI.@]
110  *
111  */
112 DNS_STATUS WINAPI DnsExtractRecordsFromMessage_UTF8( PDNS_MESSAGE_BUFFER buffer,
113                                                      WORD len, PDNS_RECORDA *record )
114 {
115     FIXME( "(%p,%d,%p) stub\n", buffer, len, record );
116
117     *record = NULL;
118     return ERROR_SUCCESS;
119 }
120
121 /******************************************************************************
122  * DnsExtractRecordsFromMessage_W          [DNSAPI.@]
123  *
124  */
125 DNS_STATUS WINAPI DnsExtractRecordsFromMessage_W( PDNS_MESSAGE_BUFFER buffer,
126                                                   WORD len, PDNS_RECORDW *record )
127 {
128     FIXME( "(%p,%d,%p) stub\n", buffer, len, record );
129
130     *record = NULL;
131     return ERROR_SUCCESS;
132 }
133
134 /******************************************************************************
135  * DnsModifyRecordsInSet_A                 [DNSAPI.@]
136  *
137  */
138 DNS_STATUS WINAPI DnsModifyRecordsInSet_A( PDNS_RECORDA add, PDNS_RECORDA delete,
139                                            DWORD options, HANDLE context,
140                                            PVOID servers, PVOID reserved )
141 {
142     FIXME( "(%p,%p,0x%08x,%p,%p,%p) stub\n", add, delete, options,
143            context, servers, reserved );
144     return ERROR_SUCCESS;
145 }
146
147 /******************************************************************************
148  * DnsModifyRecordsInSet_UTF8              [DNSAPI.@]
149  *
150  */
151 DNS_STATUS WINAPI DnsModifyRecordsInSet_UTF8( PDNS_RECORDA add, PDNS_RECORDA delete,
152                                               DWORD options, HANDLE context,
153                                               PVOID servers, PVOID reserved )
154 {
155     FIXME( "(%p,%p,0x%08x,%p,%p,%p) stub\n", add, delete, options,
156            context, servers, reserved );
157     return ERROR_SUCCESS;
158 }
159
160 /******************************************************************************
161  * DnsModifyRecordsInSet_W                 [DNSAPI.@]
162  *
163  */
164 DNS_STATUS WINAPI DnsModifyRecordsInSet_W( PDNS_RECORDW add, PDNS_RECORDW delete,
165                                            DWORD options, HANDLE context,
166                                            PVOID servers, PVOID reserved )
167 {
168     FIXME( "(%p,%p,0x%08x,%p,%p,%p) stub\n", add, delete, options,
169            context, servers, reserved );
170     return ERROR_SUCCESS;
171 }
172
173 /******************************************************************************
174  * DnsWriteQuestionToBuffer_UTF8          [DNSAPI.@]
175  *
176  */
177 BOOL WINAPI DnsWriteQuestionToBuffer_UTF8( PDNS_MESSAGE_BUFFER buffer, PDWORD size,
178                                            PCSTR name, WORD type, WORD xid,
179                                            BOOL recurse )
180 {
181     FIXME( "(%p,%p,%s,%d,%d,%d) stub\n", buffer, size, debugstr_a(name),
182            type, xid, recurse );
183     return FALSE;
184 }
185
186 /******************************************************************************
187  * DnsWriteQuestionToBuffer_W              [DNSAPI.@]
188  *
189  */
190 BOOL WINAPI DnsWriteQuestionToBuffer_W( PDNS_MESSAGE_BUFFER buffer, PDWORD size,
191                                         PCWSTR name, WORD type, WORD xid,
192                                         BOOL recurse )
193 {
194     FIXME( "(%p,%p,%s,%d,%d,%d) stub\n", buffer, size, debugstr_w(name),
195            type, xid, recurse );
196     return FALSE;
197 }
198
199 /******************************************************************************
200  * DnsReplaceRecordSetA                    [DNSAPI.@]
201  *
202  */
203 DNS_STATUS WINAPI DnsReplaceRecordSetA( PDNS_RECORDA set, DWORD options,
204                                         HANDLE context, PVOID servers,
205                                         PVOID reserved )
206 {
207     FIXME( "(%p,0x%08x,%p,%p,%p) stub\n", set, options, context,
208            servers, reserved );
209     return ERROR_SUCCESS;
210 }
211
212 /******************************************************************************
213  * DnsReplaceRecordSetUTF8                 [DNSAPI.@]
214  *
215  */
216 DNS_STATUS WINAPI DnsReplaceRecordSetUTF8( PDNS_RECORDA set, DWORD options,
217                                            HANDLE context, PVOID servers,
218                                            PVOID reserved )
219 {
220     FIXME( "(%p,0x%08x,%p,%p,%p) stub\n", set, options, context,
221            servers, reserved );
222     return ERROR_SUCCESS;
223 }
224
225 /******************************************************************************
226  * DnsReplaceRecordSetW                    [DNSAPI.@]
227  *
228  */
229 DNS_STATUS WINAPI DnsReplaceRecordSetW( PDNS_RECORDW set, DWORD options,
230                                         HANDLE context, PVOID servers,
231                                         PVOID reserved )
232 {
233     FIXME( "(%p,0x%08x,%p,%p,%p) stub\n", set, options, context,
234            servers, reserved );
235     return ERROR_SUCCESS;
236 }