[Xfce4-commits] <xfce4-weather-plugin:master> Prepare usage of libsoup.
Harald Judt
noreply at xfce.org
Tue Nov 20 20:18:01 CET 2012
Updating branch refs/heads/master
to a1465cce448e3cc8d13e6aa515790e8be7ac5e96 (commit)
from 81a56801e17ba99700839415c78c7d02ddfaf39f (commit)
commit a1465cce448e3cc8d13e6aa515790e8be7ac5e96
Author: Harald Judt <h.judt at gmx.at>
Date: Tue Nov 20 19:57:43 2012 +0100
Prepare usage of libsoup.
The current implementation of weather-http.c would need to be modified
to support HTTP/1.1 chunked transfer encoding. While implementing the
appropriate decoding algorithm is certainly possible, the better idea
is to rely on and use an existing implementation. This will make many
things much easier and faster to achieve and solve any outstanding
bugs that are still present in the current implementation.
libsoup should be available on any machine where Xfce is installed,
so this additional dependency should not be a problem. The screenshot
plugin is already using it too.
configure.ac.in | 1 +
panel-plugin/Makefile.am | 2 ++
2 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/configure.ac.in b/configure.ac.in
index 2c6ccdd..5bb6038 100644
--- a/configure.ac.in
+++ b/configure.ac.in
@@ -64,6 +64,7 @@ XDT_CHECK_PACKAGE([LIBXFCE4UTIL], [libxfce4util-1.0], [4.7.0])
XDT_CHECK_PACKAGE([LIBXFCE4UI], [libxfce4ui-1], [4.7.0])
XDT_CHECK_PACKAGE([LIBXFCE4PANEL], [libxfce4panel-1.0], [4.7.0])
XDT_CHECK_PACKAGE([LIBXML], [libxml-2.0], [2.4.0])
+XDT_CHECK_PACKAGE([SOUP], [libsoup-2.4], [2.26.0])
AC_CHECK_LIB(resolv, res_query, [LIBRESOLV=-lresolv])
AC_SUBST(LIBRESOLV)
diff --git a/panel-plugin/Makefile.am b/panel-plugin/Makefile.am
index 158a06b..ee184e3 100644
--- a/panel-plugin/Makefile.am
+++ b/panel-plugin/Makefile.am
@@ -37,6 +37,7 @@ libweather_la_CFLAGS = \
$(LIBXFCE4UI_CFLAGS) \
$(LIBXFCE4UTIL_CFLAGS) \
$(GTK_CFLAGS) \
+ $(SOUP_CFLAGS) \
$(LIBXML_CFLAGS)
libweather_la_LIBADD = \
@@ -45,6 +46,7 @@ libweather_la_LIBADD = \
$(LIBXFCE4UI_LIBS) \
$(GTK_LIBS) \
$(LIBXML_LIBS) \
+ $(SOUP_LIBS) \
$(LIBRESOLV)
libweather_la_LDFLAGS = \
More information about the Xfce4-commits
mailing list