[Xfce4-commits] [panel-plugins/xfce4-weather-plugin] 02/05: Remember HTTP status code resulting from data download.

noreply at xfce.org noreply at xfce.org
Fri Oct 24 14:24:42 CEST 2014


This is an automated email from the git hooks/post-receive script.

hjudt pushed a commit to branch master
in repository panel-plugins/xfce4-weather-plugin.

commit c894f578240c2930436b8c0b63f9ac51844acf9a
Author: Harald Judt <h.judt at gmx.at>
Date:   Fri Oct 24 12:38:53 2014 +0200

    Remember HTTP status code resulting from data download.
---
 panel-plugin/weather.c |    2 ++
 panel-plugin/weather.h |    1 +
 2 files changed, 3 insertions(+)

diff --git a/panel-plugin/weather.c b/panel-plugin/weather.c
index a764193..8c4d72e 100644
--- a/panel-plugin/weather.c
+++ b/panel-plugin/weather.c
@@ -487,6 +487,7 @@ cb_astro_update(SoupSession *session,
 
     time(&now_t);
     data->astro_update->attempt++;
+    data->astro_update->http_status_code = msg->status_code;
     if ((msg->status_code == 200 || msg->status_code == 203)) {
         if (msg->status_code == 203)
             g_warning
@@ -549,6 +550,7 @@ cb_weather_update(SoupSession *session,
     weather_debug("Processing downloaded weather data.");
     time(&now_t);
     data->weather_update->attempt++;
+    data->weather_update->http_status_code = msg->status_code;
     if (msg->status_code == 200 || msg->status_code == 203) {
         if (msg->status_code == 203)
             g_warning
diff --git a/panel-plugin/weather.h b/panel-plugin/weather.h
index 1506e44..6556682 100644
--- a/panel-plugin/weather.h
+++ b/panel-plugin/weather.h
@@ -59,6 +59,7 @@ typedef struct {
     guint check_interval;
     gboolean started;
     gboolean finished;
+    guint http_status_code;
 } update_info;
 
 typedef struct {

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list