[Spice-devel] [PATCH v2 10/19] Reuse reds_core_timer_add

Frediano Ziglio fziglio at redhat.com
Fri Nov 25 14:52:40 UTC 2016


Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
 server/main-channel-client.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/server/main-channel-client.c b/server/main-channel-client.c
index 987f260..576b31f 100644
--- a/server/main-channel-client.c
+++ b/server/main-channel-client.c
@@ -174,9 +174,7 @@ static void main_channel_client_constructed(GObject *object)
     RedsState *reds =
         red_channel_get_server(red_channel_client_get_channel(RED_CHANNEL_CLIENT(object)));
 
-    self->priv->ping_timer =
-        reds_get_core_interface(reds)->timer_add(reds_get_core_interface(reds),
-                                                 ping_timer_cb, self);
+    self->priv->ping_timer = reds_core_timer_add(reds, ping_timer_cb, self);
     if (!self->priv->ping_timer) {
         spice_error("ping timer create failed");
     }
-- 
git-series 0.9.1


More information about the Spice-devel mailing list