From 0bf13f208abe2713455ba8e2d9ffb752233fcc24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Fri, 7 Nov 2014 20:36:31 +0000 Subject: Weather: Add support for specifying own UserAgent in INI (requested in #810) git-svn-id: http://svn.miranda-ng.org/main/trunk@10923 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Weather/src/weather.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'plugins/Weather/src/weather.h') diff --git a/plugins/Weather/src/weather.h b/plugins/Weather/src/weather.h index 9caeddf1f6..ab64d6237c 100644 --- a/plugins/Weather/src/weather.h +++ b/plugins/Weather/src/weather.h @@ -323,7 +323,8 @@ typedef struct { char *UpdateURL2; char *UpdateURL3; char *UpdateURL4; - char *Cookie; + char *Cookie; + char *UserAgent; // items int UpdateDataCount; WIDATAITEMLIST *UpdateData; @@ -441,7 +442,7 @@ void wfree(WCHAR **Data); void DBDataManage(MCONTACT hContact, WORD Mode, WPARAM wParam, LPARAM lParam); // functions in weather_http.c -int InternetDownloadFile (char *szUrl, char *cookie, TCHAR** szData); +int InternetDownloadFile (char *szUrl, char *cookie, char *userAgent, TCHAR** szData); void NetlibInit(); void NetlibHttpDisconnect(void); -- cgit v1.2.3