diff options
author | Alban Crequy <alban.crequy@collabora.co.uk> | 2008-06-05 11:42:17 +0000 |
---|---|---|
committer | Alban Crequy <alban.crequy@collabora.co.uk> | 2008-06-05 11:42:17 +0000 |
commit | 0ac09c290fb19109c4c360a4eeb2178ef8572201 (patch) | |
tree | 07a6acd9fab4f3ce7058ae9aa1282dcf852e35f3 /src/salut.c | |
parent | 249b8eb2e94e8a224f74df468a95b492249ff8a1 (diff) | |
download | telepathy-salut-0ac09c290fb19109c4c360a4eeb2178ef8572201.tar.gz |
Remove the two salut_discovery_client_new() functions, choose the avahi or dummy backend from the main() function and pass the GType backend to SalutConnectionManager and SalutConnection via a property when the object is created
20080605114217-a41c0-0473007078d1fc15270971e3d8c8034690662e07.gz
Diffstat (limited to 'src/salut.c')
-rw-r--r-- | src/salut.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/salut.c b/src/salut.c index 1612d42d..c303a4cf 100644 --- a/src/salut.c +++ b/src/salut.c @@ -6,13 +6,16 @@ #include <telepathy-glib/debug.h> #include "salut-connection-manager.h" +#include "salut-avahi-discovery-client.h" #include "debug.h" static TpBaseConnectionManager * salut_create_connection_manager (void) { return TP_BASE_CONNECTION_MANAGER ( - g_object_new (SALUT_TYPE_CONNECTION_MANAGER, NULL)); + g_object_new (SALUT_TYPE_CONNECTION_MANAGER, + "backend-type", SALUT_TYPE_AVAHI_DISCOVERY_CLIENT, + NULL)); } int |