~ubuntu-branches/ubuntu/maverick/telepathy-glib/maverick

« back to all changes in this revision

Viewing changes to examples/client/extended-client.c

  • Committer: Bazaar Package Importer
  • Author(s): Simon McVittie
  • Date: 2010-05-25 16:57:39 UTC
  • mfrom: (1.6.2 upstream) (30.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20100525165739-kted5mhm904f8lwj
Tags: 0.11.6-1
* New upstream version
  - requires gtk-doc 1.15
  - requires gobject-introspection 0.6.11
  - new ABI, API
* Merge from experimental
  - add gir1.0-telepathyglib-0.12 binary package

Show diffs side-by-side

added added

removed removed

Lines of Context:
290
290
{
291
291
  TpConnectionManager *cm = NULL;
292
292
  GError *error = NULL;
293
 
  TpDBusDaemon *daemon = NULL;
 
293
  TpDBusDaemon *dbus = NULL;
294
294
 
295
295
  g_type_init ();
296
296
  tp_debug_set_flags (g_getenv ("EXAMPLE_DEBUG"));
297
297
 
298
298
  example_cli_init ();
299
299
 
300
 
  daemon = tp_dbus_daemon_dup (&error);
 
300
  dbus = tp_dbus_daemon_dup (&error);
301
301
 
302
 
  if (daemon == NULL)
 
302
  if (dbus == NULL)
303
303
    {
304
304
      g_warning ("%s", error->message);
305
305
      g_error_free (error);
308
308
 
309
309
  mainloop = g_main_loop_new (NULL, FALSE);
310
310
 
311
 
  cm = tp_connection_manager_new (daemon, "example_extended", NULL, &error);
 
311
  cm = tp_connection_manager_new (dbus, "example_extended", NULL, &error);
312
312
 
313
313
  if (cm == NULL)
314
314
    {
327
327
  if (cm != NULL)
328
328
    g_object_unref (cm);
329
329
 
330
 
  if (daemon != NULL)
331
 
    g_object_unref (daemon);
 
330
  if (dbus != NULL)
 
331
    g_object_unref (dbus);
332
332
 
333
333
  if (mainloop != NULL)
334
334
    g_main_loop_unref (mainloop);