Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
sc0w committed Feb 10, 2024
1 parent d9a704b commit 909d86e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions libcafeweather/weather-wx.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,19 @@ response_body = soup_session_send_and_read_finish(SOUP_SESSION(object),
}

static void
wx_got_chunk (SoupMessage *msg, SoupBuffer *chunk, gpointer data)
wx_got_chunk /*(SoupMessage *msg, SoupBuffer *chunk, gpointer data)*/
(SoupServerMessage *msg, GBytes *chunk, gpointer data)
{
WeatherInfo *info = (WeatherInfo *)data;
gpointer msgdata = NULL;
GError *error = NULL;

msgdata = g_bytes_unref_to_data(chunk, NULL/*&length*/);

g_return_if_fail (info != NULL);

gdk_pixbuf_loader_write (info->radar_loader, (guchar *)chunk->data,
chunk->length, &error);
gdk_pixbuf_loader_write (info->radar_loader, (guchar *)msgdata,
(gsize) chunk, &error);
if (error) {
g_print ("%s \n", error->message);
g_error_free (error);
Expand Down

0 comments on commit 909d86e

Please sign in to comment.