From df744730d68ce73ffeeabb5aa0d3565e80b1faf3 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Fri, 29 Jun 2012 15:11:59 +0100 Subject: [PATCH 2/9] Fix missing arguments to some functions in status-set I'm not 100% sure these values are right, but at least this test compiles now. --- tests/status-set.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/status-set.c b/tests/status-set.c index c111826..4f1eda7 100644 --- a/tests/status-set.c +++ b/tests/status-set.c @@ -97,7 +97,8 @@ service_added_cb (YtsRoster *roster, { yts_client_set_status_by_capability (client1, "yts-caps-video", - "yts-activity-playing"); + "yts-activity-playing", + ""); } } @@ -112,7 +113,8 @@ main (int argc, char **argv) loop = g_main_loop_new (NULL, FALSE); client1 = yts_client_new_p2p ("org.freedesktop.ytstenut.SetStatusTest1"); - yts_client_add_capability (client1, "yts-caps-video"); + yts_client_add_capability (client1, "yts-caps-video", + YTS_CAPABILITY_MODE_PROVIDED); g_signal_connect (client1, "authenticated", G_CALLBACK (authenticated_cb), NULL); roster1 = yts_client_get_roster (client1); @@ -121,7 +123,8 @@ main (int argc, char **argv) yts_client_connect (client1); client2 = yts_client_new_p2p ("org.freedesktop.ytstenut.SetStatusTest2"); - yts_client_add_capability (client1, "yts-caps-video"); + yts_client_add_capability (client2, "yts-caps-video", + YTS_CAPABILITY_MODE_CONSUMED); g_signal_connect (client2, "authenticated", G_CALLBACK (authenticated_cb), NULL); roster2 = yts_client_get_roster (client2); -- 1.7.10.4