Bug 18056 - tp_connection_manager_get_name() would be nice
Summary: tp_connection_manager_get_name() would be nice
Status: RESOLVED FIXED
Alias: None
Product: Telepathy
Classification: Unclassified
Component: tp-glib (show other bugs)
Version: unspecified
Hardware: Other All
: medium enhancement
Assignee: Telepathy bugs list
QA Contact: Telepathy bugs list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-14 02:07 UTC by Murray Cumming
Modified: 2009-02-16 10:03 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Murray Cumming 2008-10-14 02:07:24 UTC
This is tedious:

  /* Get the connection manager name: */
  gchar *cm_name = NULL;
  g_object_get (G_OBJECT(cm),
    "connection-manager", &cm_name,
    NULL);

So this would be nicer:

gchar* cm_name = tp_connection_manager_get_name (cm);
Comment 1 Simon McVittie 2008-10-14 03:20:12 UTC
The idea was that you'd just use the read-only member connection_manager->name (which is marked as public at the moment).

I realise public struct members are often considered harmful; we're gradually introducing C convenience API and deprecating direct access (TpProxy will get this in the next version, TpChannel already has it).
Comment 2 Simon McVittie 2009-02-16 10:03:49 UTC
Fixed in 0.7.26, along with lots of other "C bindings" for TpConnectionManager


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.