summaryrefslogtreecommitdiffstats
path: root/webservice.h
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2013-01-18 03:05:48 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-01-17 22:29:24 -0800
commita5ee2b66e1cc9b1b7b0b7437517a30bee5b0054f (patch)
tree662228fd671ab5ffb4c83fe59af426088c5bdd09 /webservice.h
parentd0d4bbece7e0a304a3e1f1fcea3608f3d741e8fa (diff)
downloadsubsurface-a5ee2b66e1cc9b1b7b0b7437517a30bee5b0054f.tar.gz
Added client side communication to the Subsurface Web Service
A couple of new files webservice.c and webservice.h are added. webservice.h exposes two methods at the moment: - webservice_download_dialog(): this function creates the user interface for the download dialog from the web service. - webservice_request_user_xml() this function is a direct call to retrieve XML for a specific user identifier. the actual data, data length and error codes are stored in passed pointers. A menu entry is added in the Log menu: "Download From Web Service" The used backend for communication at the moment is provided by libsoup. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'webservice.h')
-rw-r--r--webservice.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/webservice.h b/webservice.h
new file mode 100644
index 000000000..ea74885c1
--- /dev/null
+++ b/webservice.h
@@ -0,0 +1,2 @@
+extern void webservice_download_dialog(void);
+extern gboolean webservice_request_user_xml(const gchar *, gchar **, guint *, guint *);