Robert Shearman : wininet: Move cookie-related stubs to cookie.c

Alexandre Julliard julliard at wine.codeweavers.com
Tue Mar 14 12:04:32 CST 2006


Module: wine
Branch: refs/heads/master
Commit: 153aac019459745c8c5663d7c5e24beab31854f3
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=153aac019459745c8c5663d7c5e24beab31854f3

Author: Robert Shearman <rob at codeweavers.com>
Date:   Tue Mar 14 14:35:52 2006 +0000

wininet: Move cookie-related stubs to cookie.c

---

 dlls/wininet/cookie.c   |  149 +++++++++++++++++++++++++++++++++++++++++++++++
 dlls/wininet/internet.c |   82 --------------------------
 2 files changed, 149 insertions(+), 82 deletions(-)

diff --git a/dlls/wininet/cookie.c b/dlls/wininet/cookie.c
index 043de1b..231faca 100644
--- a/dlls/wininet/cookie.c
+++ b/dlls/wininet/cookie.c
@@ -504,3 +504,152 @@ BOOL WINAPI InternetSetCookieA(LPCSTR lp
 
     return r;
 }
+
+/***********************************************************************
+ *           InternetSetCookieExA (WININET.@)
+ *
+ * See InternetSetCookieExW.
+ */
+DWORD WINAPI InternetSetCookieExA( LPCSTR lpszURL, LPCSTR lpszCookieName, LPCSTR lpszCookieData,
+                                   DWORD dwFlags, DWORD_PTR dwReserved)
+{
+    FIXME("(%s, %s, %s, 0x%08lx, 0x%08lx) stub\n",
+          debugstr_a(lpszURL), debugstr_a(lpszCookieName), debugstr_a(lpszCookieData),
+          dwFlags, dwReserved);
+    return TRUE;
+}
+
+/***********************************************************************
+ *           InternetSetCookieExW (WININET.@)
+ *
+ * Sets a cookie for the specified URL.
+ *
+ * RETURNS
+ *    TRUE  on success
+ *    FALSE on failure
+ *
+ */
+DWORD WINAPI InternetSetCookieExW( LPCWSTR lpszURL, LPCWSTR lpszCookieName, LPCWSTR lpszCookieData,
+                                   DWORD dwFlags, DWORD_PTR dwReserved)
+{
+    FIXME("(%s, %s, %s, 0x%08lx, 0x%08lx) stub\n",
+          debugstr_w(lpszURL), debugstr_w(lpszCookieName), debugstr_w(lpszCookieData),
+          dwFlags, dwReserved);
+    return TRUE;
+}
+
+/***********************************************************************
+ *           InternetGetCookieExA (WININET.@)
+ *
+ * See InternetGetCookieExW.
+ */
+BOOL WINAPI InternetGetCookieExA( LPCSTR pchURL, LPCSTR pchCookieName, LPSTR pchCookieData,
+                                  LPDWORD pcchCookieData, DWORD dwFlags, LPVOID lpReserved)
+{
+    FIXME("(%s, %s, %s, %p, 0x%08lx, %p) stub\n",
+          debugstr_a(pchURL), debugstr_a(pchCookieName), debugstr_a(pchCookieData),
+          pcchCookieData, dwFlags, lpReserved);
+    return FALSE;
+}
+
+/***********************************************************************
+ *           InternetGetCookieExW (WININET.@)
+ *
+ * Retrieve cookie for the specified URL.
+ *
+ * RETURNS
+ *    TRUE  on success
+ *    FALSE on failure
+ *
+ */
+BOOL WINAPI InternetGetCookieExW( LPCWSTR pchURL, LPCWSTR pchCookieName, LPWSTR pchCookieData,
+                                  LPDWORD pcchCookieData, DWORD dwFlags, LPVOID lpReserved)
+{
+    FIXME("(%s, %s, %s, %p, 0x%08lx, %p) stub\n",
+          debugstr_w(pchURL), debugstr_w(pchCookieName), debugstr_w(pchCookieData),
+          pcchCookieData, dwFlags, lpReserved);
+    return FALSE;
+}
+
+/***********************************************************************
+ *           InternetClearAllPerSiteCookieDecisions (WININET.@)
+ *
+ * Clears all per-site decisions about cookies.
+ *
+ * RETURNS
+ *    TRUE  on success
+ *    FALSE on failure
+ *
+ */
+BOOL WINAPI InternetClearAllPerSiteCookieDecisions( VOID )
+{
+    FIXME("stub\n");
+    return TRUE;
+}
+
+/***********************************************************************
+ *           InternetEnumPerSiteCookieDecisionA (WININET.@)
+ *
+ * See InternetEnumPerSiteCookieDecisionW.
+ */
+BOOL WINAPI InternetEnumPerSiteCookieDecisionA( LPSTR pszSiteName, unsigned long *pcSiteNameSize,
+                                                unsigned long *pdwDecision, unsigned long dwIndex )
+{
+    FIXME("(%s, %p, %p, 0x%08lx) stub\n",
+          debugstr_a(pszSiteName), pcSiteNameSize, pdwDecision, dwIndex);
+    return FALSE;
+}
+
+/***********************************************************************
+ *           InternetEnumPerSiteCookieDecisionW (WININET.@)
+ *
+ * Enumerates all per-site decisions about cookies.
+ *
+ * RETURNS
+ *    TRUE  on success
+ *    FALSE on failure
+ *
+ */
+BOOL WINAPI InternetEnumPerSiteCookieDecisionW( LPWSTR pszSiteName, unsigned long *pcSiteNameSize,
+                                                unsigned long *pdwDecision, unsigned long dwIndex )
+{
+    FIXME("(%s, %p, %p, 0x%08lx) stub\n",
+          debugstr_w(pszSiteName), pcSiteNameSize, pdwDecision, dwIndex);
+    return FALSE;
+}
+
+/***********************************************************************
+ *           InternetGetPerSiteCookieDecisionA (WININET.@)
+ */
+BOOL WINAPI InternetGetPerSiteCookieDecisionA( LPCSTR pwchHostName, unsigned long *pResult )
+{
+    FIXME("(%s, %p) stub\n", debugstr_a(pwchHostName), pResult);
+    return FALSE;
+}
+
+/***********************************************************************
+ *           InternetGetPerSiteCookieDecisionW (WININET.@)
+ */
+BOOL WINAPI InternetGetPerSiteCookieDecisionW( LPCWSTR pwchHostName, unsigned long *pResult )
+{
+    FIXME("(%s, %p) stub\n", debugstr_w(pwchHostName), pResult);
+    return FALSE;
+}
+
+/***********************************************************************
+ *           InternetSetPerSiteCookieDecisionA (WININET.@)
+ */
+BOOL WINAPI InternetSetPerSiteCookieDecisionA( LPCSTR pchHostName, DWORD dwDecision )
+{
+    FIXME("(%s, 0x%08lx) stub\n", debugstr_a(pchHostName), dwDecision);
+    return FALSE;
+}
+
+/***********************************************************************
+ *           InternetSetPerSiteCookieDecisionW (WININET.@)
+ */
+BOOL WINAPI InternetSetPerSiteCookieDecisionW( LPCWSTR pchHostName, DWORD dwDecision )
+{
+    FIXME("(%s, 0x%08lx) stub\n", debugstr_w(pchHostName), dwDecision);
+    return FALSE;
+}
diff --git a/dlls/wininet/internet.c b/dlls/wininet/internet.c
index f2d4ad3..73c3a15 100644
--- a/dlls/wininet/internet.c
+++ b/dlls/wininet/internet.c
@@ -4139,88 +4139,6 @@ BOOL WINAPI CreateMD5SSOHash( PWSTR pszC
     return FALSE;
 }
 
-BOOL WINAPI InternetClearAllPerSiteCookieDecisions( VOID )
-{
-    FIXME("stub\n");
-    return TRUE;
-}
-
-BOOL WINAPI InternetEnumPerSiteCookieDecisionA( LPSTR pszSiteName, unsigned long *pcSiteNameSize,
-                                                unsigned long *pdwDecision, unsigned long dwIndex )
-{
-    FIXME("(%s, %p, %p, 0x%08lx) stub\n",
-          debugstr_a(pszSiteName), pcSiteNameSize, pdwDecision, dwIndex);
-    return FALSE;
-}
-
-BOOL WINAPI InternetEnumPerSiteCookieDecisionW( LPWSTR pszSiteName, unsigned long *pcSiteNameSize,
-                                                unsigned long *pdwDecision, unsigned long dwIndex )
-{
-    FIXME("(%s, %p, %p, 0x%08lx) stub\n",
-          debugstr_w(pszSiteName), pcSiteNameSize, pdwDecision, dwIndex);
-    return FALSE;
-}
-
-BOOL WINAPI InternetGetCookieExA( LPCSTR pchURL, LPCSTR pchCookieName, LPSTR pchCookieData,
-                                  LPDWORD pcchCookieData, DWORD dwFlags, LPVOID lpReserved)
-{
-    FIXME("(%s, %s, %s, %p, 0x%08lx, %p) stub\n",
-          debugstr_a(pchURL), debugstr_a(pchCookieName), debugstr_a(pchCookieData),
-          pcchCookieData, dwFlags, lpReserved);
-    return FALSE;
-}
-
-BOOL WINAPI InternetGetCookieExW( LPCWSTR pchURL, LPCWSTR pchCookieName, LPWSTR pchCookieData,
-                                  LPDWORD pcchCookieData, DWORD dwFlags, LPVOID lpReserved)
-{
-    FIXME("(%s, %s, %s, %p, 0x%08lx, %p) stub\n",
-          debugstr_w(pchURL), debugstr_w(pchCookieName), debugstr_w(pchCookieData),
-          pcchCookieData, dwFlags, lpReserved);
-    return FALSE;
-}
-
-BOOL WINAPI InternetGetPerSiteCookieDecisionA( LPCSTR pwchHostName, unsigned long *pResult )
-{
-    FIXME("(%s, %p) stub\n", debugstr_a(pwchHostName), pResult);
-    return FALSE;
-}
-
-BOOL WINAPI InternetGetPerSiteCookieDecisionW( LPCWSTR pwchHostName, unsigned long *pResult )
-{
-    FIXME("(%s, %p) stub\n", debugstr_w(pwchHostName), pResult);
-    return FALSE;
-}
-
-BOOL WINAPI InternetSetPerSiteCookieDecisionA( LPCSTR pchHostName, DWORD dwDecision )
-{
-    FIXME("(%s, 0x%08lx) stub\n", debugstr_a(pchHostName), dwDecision);
-    return FALSE;
-}
-
-BOOL WINAPI InternetSetPerSiteCookieDecisionW( LPCWSTR pchHostName, DWORD dwDecision )
-{
-    FIXME("(%s, 0x%08lx) stub\n", debugstr_w(pchHostName), dwDecision);
-    return FALSE;
-}
-
-DWORD WINAPI InternetSetCookieExA( LPCSTR lpszURL, LPCSTR lpszCookieName, LPCSTR lpszCookieData,
-                                   DWORD dwFlags, DWORD_PTR dwReserved)
-{
-    FIXME("(%s, %s, %s, 0x%08lx, 0x%08lx) stub\n",
-          debugstr_a(lpszURL), debugstr_a(lpszCookieName), debugstr_a(lpszCookieData),
-          dwFlags, dwReserved);
-    return TRUE;
-}
-
-DWORD WINAPI InternetSetCookieExW( LPCWSTR lpszURL, LPCWSTR lpszCookieName, LPCWSTR lpszCookieData,
-                                   DWORD dwFlags, DWORD_PTR dwReserved)
-{
-    FIXME("(%s, %s, %s, 0x%08lx, 0x%08lx) stub\n",
-          debugstr_w(lpszURL), debugstr_w(lpszCookieName), debugstr_w(lpszCookieData),
-          dwFlags, dwReserved);
-    return TRUE;
-}
-
 BOOL WINAPI ResumeSuspendedDownload( HINTERNET hInternet, DWORD dwError )
 {
     FIXME("(%p, 0x%08lx) stub\n", hInternet, dwError);




More information about the wine-cvs mailing list