[Bug 30204] TpCapabilities: API to check tube support
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Tue Sep 21 17:42:54 CEST 2010
https://bugs.freedesktop.org/show_bug.cgi?id=30204
Simon McVittie <simon.mcvittie at collabora.co.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status Whiteboard| |review-, minor changes
AssignedTo|telepathy-bugs at lists.freede |guillaume.desmottes at collabo
|sktop.org |ra.co.uk
--- Comment #2 from Simon McVittie <simon.mcvittie at collabora.co.uk> 2010-09-21 08:42:54 PDT ---
> +tp_capabilities_supports_stream_tube
To be consistent (and grammatically correct), this should be
"supports_stream_tubes".
I'd prefer it if you added supports_dbus_tubes at the same time:
static gboolean
tp_capabilities_supports_tubes_common (TpCapabilities *self,
const gchar *expected_channel_type,
TpHandleType expected_handle_type,
const gchar *expected_service_prop,
const gchar *expected_service)
{
... the same thing you already implemented, but with expected_channel_type
and expected_service_prop instead of constants ...
}
gboolean
tp_capabilities_supports_stream_tubes (TpCapabilities *self,
TpHandleType handle_type,
const gchar *service)
{
return tp_capabilities_supports_tubes_common (self,
TP_IFACE_CHANNEL_TYPE_STREAM_TUBE, handle_type,
TP_PROP_CHANNEL_TYPE_STREAM_TUBE_SERVICE, service);
}
gboolean
tp_capabilities_supports_dbus_tubes (TpCapabilities *self,
TpHandleType handle_type,
const gchar *service)
{
return tp_capabilities_supports_tubes_common (self,
TP_IFACE_CHANNEL_TYPE_DBUS_TUBE, handle_type,
TP_PROP_CHANNEL_TYPE_DBUS_TUBE_SERVICE, service);
}
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the telepathy-bugs
mailing list