[librest/wip/baedert/tests: 14/27] continuous-twitter: Adapt to RestProxyCall changes
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librest/wip/baedert/tests: 14/27] continuous-twitter: Adapt to RestProxyCall changes
- Date: Tue, 21 Feb 2017 17:03:21 +0000 (UTC)
commit 0249f3c3e2b7c1b461abb04c62adb6766b996ffc
Author: Timm Bäder <mail baedert org>
Date: Tue Jul 26 15:03:20 2016 +0200
continuous-twitter: Adapt to RestProxyCall changes
examples/continuous-twitter.c | 20 ++++++++++++++++++--
1 files changed, 18 insertions(+), 2 deletions(-)
---
diff --git a/examples/continuous-twitter.c b/examples/continuous-twitter.c
index 7a915e0..004181e 100644
--- a/examples/continuous-twitter.c
+++ b/examples/continuous-twitter.c
@@ -28,12 +28,28 @@ _call_continous_cb (RestProxyCall *call,
const gchar *buf,
gsize len,
const GError *error,
- GObject *weak_object,
gpointer userdata)
{
g_message ("%s", buf);
}
+static void
+continuous_done_cb (GObject *source_object,
+ GAsyncResult *result,
+ gpointer user_data)
+{
+ GError *error = NULL;
+
+ rest_proxy_call_continuous_finish (REST_PROXY_CALL (source_object),
+ result,
+ &error);
+
+ if (error != NULL)
+ {
+ g_critical ("%s", error->message);
+ }
+}
+
int
main (int argc, char **argv)
{
@@ -78,7 +94,7 @@ main (int argc, char **argv)
rest_proxy_call_continuous (call,
_call_continous_cb,
NULL,
- NULL,
+ continuous_done_cb,
NULL);
g_main_loop_run (loop);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]