~ubuntu-branches/ubuntu/feisty/libtelepathy/feisty

« back to all changes in this revision

Viewing changes to src/tp-helpers.c

  • Committer: Bazaar Package Importer
  • Author(s): Sjoerd Simons
  • Date: 2007-03-12 11:43:26 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20070312114326-v4aezxb6sr8utds1
Tags: 0.0.51-2
Bump shlibs

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
static void _prot_param_free (TpConnMgrProtParam *param);
36
36
static void _scan_dir (GSList **cmgr_list, const gchar *path);
37
37
 
 
38
void
 
39
_tp_warn_failure (const char *op, GError *error)
 
40
{
 
41
  if (error->domain == DBUS_GERROR
 
42
      && error->code == DBUS_GERROR_REMOTE_EXCEPTION)
 
43
    {
 
44
      g_warning ("%s failed: %s (%s)", op, error->message,
 
45
          dbus_g_error_get_name (error));
 
46
    }
 
47
  else
 
48
    {
 
49
      g_warning ("%s failed: %s (%s code %d)", op, error->message,
 
50
          g_quark_to_string (error->domain), error->code);
 
51
    }
 
52
}
 
53
 
38
54
DBusGConnection *
39
55
tp_get_bus ()
40
56
{
150
166
}
151
167
 
152
168
TpConnMgrInfo *
153
 
tp_connmgr_get_info(gchar *cm)
 
169
tp_connmgr_get_info(const gchar *cm)
154
170
{
155
171
  GError *error = NULL;
156
172
  GKeyFile *file;