winmm: Remove unused variable and if check (Coverity).
[wine.git] / dlls / wininet / gopher.c
blobb6f25eb9979618052c61546f3939a75847554428
1 /*
2 * WININET - Gopher implementation
4 * Copyright 2003 Kirill Smelkov
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 #include "config.h"
23 #include <stdarg.h>
25 #include "windef.h"
26 #include "winbase.h"
27 #include "wininet.h"
29 #include "wine/debug.h"
31 WINE_DEFAULT_DEBUG_CHANNEL(wininet);
33 /***********************************************************************
34 * GopherCreateLocatorA (WININET.@)
36 * Create a Gopher locator string from its component parts
38 * PARAMS
39 * lpszHost [I] host name
40 * nServerPort [I] port in host byteorder or INTERNET_INVALID_PORT_NUMBER for default
41 * lpszDisplayString [I] document/directory to display (NULL - default directory)
42 * lpszSelectorString [I] selector string for server (NULL - none)
43 * dwGopherType [I] selector type (see GOPHER_TYPE_xxx)
44 * lpszLocator [O] buffer for locator string
45 * lpdwBufferLength [I] locator buffer length
47 * RETURNS
48 * TRUE on success
49 * FALSE on failure
52 BOOL WINAPI GopherCreateLocatorA(
53 LPCSTR lpszHost,
54 INTERNET_PORT nServerPort,
55 LPCSTR lpszDisplayString,
56 LPCSTR lpszSelectorString,
57 DWORD dwGopherType,
58 LPSTR lpszLocator,
59 LPDWORD lpdwBufferLength
62 FIXME("stub\n");
63 return FALSE;
66 /***********************************************************************
67 * GopherCreateLocatorW (WININET.@)
69 * See GopherCreateLocatorA.
71 BOOL WINAPI GopherCreateLocatorW(
72 LPCWSTR lpszHost,
73 INTERNET_PORT nServerPort,
74 LPCWSTR lpszDisplayString,
75 LPCWSTR lpszSelectorString,
76 DWORD dwHopherType,
77 LPWSTR lpszLocator,
78 LPDWORD lpdwBufferLength
81 FIXME("stub\n");
82 return FALSE;
85 /***********************************************************************
86 * GopherFindFirstFileA (WININET.@)
88 * Create a session and locate the requested documents
90 * PARAMS
91 * hConnect [I] Handle to a Gopher session returned by InternetConnect
92 * lpszLocator [I] - address of a string containing the name of the item to locate.
93 * - Locator created by the GopherCreateLocator function.
94 * lpszSearchString [I] what to search for if this request is to an index server.
95 * Otherwise, this parameter should be NULL.
96 * lpFindData [O] retrieved information
97 * dwFlags [I] INTERNET_FLAG_{HYPERLINK, NEED_FILE, NO_CACHE_WRITE, RELOAD, RESYNCHRONIZE}
98 * dwContext [I] application private value
100 * RETURNS
101 * HINTERNET handle on success
102 * NULL on error
104 HINTERNET WINAPI GopherFindFirstFileA(
105 HINTERNET hConnect,
106 LPCSTR lpszLocator,
107 LPCSTR lpszSearchString,
108 LPGOPHER_FIND_DATAA
109 lpFindData,
110 DWORD dwFlags,
111 DWORD dwContext
114 FIXME("stub\n");
115 return NULL;
118 /***********************************************************************
119 * GopherFindFirstFileW (WININET.@)
121 * See GopherFindFirstFileA.
123 HINTERNET WINAPI GopherFindFirstFileW(
124 HINTERNET hConnect,
125 LPCWSTR lpszLocator,
126 LPCWSTR lpszSearchString,
127 LPGOPHER_FIND_DATAW
128 lpFindData,
129 DWORD dwFlags,
130 DWORD dwContext
133 FIXME("stub\n");
134 return NULL;
137 /***********************************************************************
138 * GopherGetAttributeA (WININET.@)
140 * Retrieves the specific attribute information from the server.
142 * RETURNS
143 * TRUE on success
144 * FALSE on failure
146 BOOL WINAPI GopherGetAttributeA(
147 HINTERNET hConnect,
148 LPCSTR lpszLocator,
149 LPCSTR lpszAttributeName,
150 LPBYTE lpBuffer,
151 DWORD dwBufferLength,
152 LPDWORD lpdwCharactersReturned,
153 GOPHER_ATTRIBUTE_ENUMERATORA
154 lpfnEnumerator,
155 DWORD dwContext
158 FIXME("stub\n");
159 return FALSE;
162 /***********************************************************************
163 * GopherGetAttributeW (WININET.@)
165 * See GopherGetAttributeA.
167 BOOL WINAPI GopherGetAttributeW(
168 HINTERNET hConnect,
169 LPCWSTR lpszLocator,
170 LPCWSTR lpszAttributeName,
171 LPBYTE lpBuffer,
172 DWORD dwBufferLength,
173 LPDWORD lpdwCharactersReturned,
174 GOPHER_ATTRIBUTE_ENUMERATORW
175 lpfnEnumerator,
176 DWORD dwContext
179 FIXME("stub\n");
180 return FALSE;
183 /***********************************************************************
184 * GopherGetLocatorTypeA (WININET.@)
186 * Parses a Gopher locator and determines its attributes.
188 * PARAMS
189 * lpszLocator [I] Address of the Gopher locator string to parse
190 * lpdwGopherType [O] destination for bitmasked type of locator
192 * RETURNS
193 * TRUE on success
194 * FALSE on failure
196 BOOL WINAPI GopherGetLocatorTypeA(LPCSTR lpszLocator, LPDWORD lpdwGopherType)
198 FIXME("stub\n");
199 return FALSE;
202 /***********************************************************************
203 * GopherGetLocatorTypeW (WININET.@)
205 * See GopherGetLocatorTypeA.
207 BOOL WINAPI GopherGetLocatorTypeW(LPCWSTR lpszLocator, LPDWORD lpdwGopherType)
209 FIXME("stub\n");
210 return FALSE;
213 /***********************************************************************
214 * GopherOpenFileA (WININET.@)
216 * Begins reading a Gopher data file from a Gopher server.
218 * PARAMS
219 * hConnect [I] handle to a Gopher session
220 * lpszLocator [I] file locator
221 * lpszView [I] file view (or default if NULL)
222 * dwFlags [I] INTERNET_FLAG_{HYPERLINK, NEED_FILE, NO_CACHE_WRITE, RELOAD, RESYNCHRONIZE}
223 * dwContext [I] application private value
225 * RETURNS
226 * handle on success
227 * NULL on error
229 HINTERNET WINAPI GopherOpenFileA(
230 HINTERNET hConnect,
231 LPCSTR lpszLocator,
232 LPCSTR lpszView,
233 DWORD dwFlags,
234 DWORD dwContext
237 FIXME("stub\n");
238 return NULL;
241 /***********************************************************************
242 * GopherOpenFileW (WININET.@)
244 * See GopherOpenFileA.
246 HINTERNET WINAPI GopherOpenFileW(
247 HINTERNET hConnect,
248 LPCWSTR lpszLocator,
249 LPCWSTR lpszView,
250 DWORD dwFlags,
251 DWORD dwContext
254 FIXME("stub\n");
255 return NULL;