diff options
author | Will Thompson <will.thompson@collabora.co.uk> | 2010-08-19 16:55:32 +0100 |
---|---|---|
committer | Will Thompson <will.thompson@collabora.co.uk> | 2010-08-19 18:52:27 +0100 |
commit | 86deaeb31f8ca05cf393c0651bf2e27e1478125a (patch) | |
tree | 6fa3d497aa1a67fb1de62c83faa9b18ec37cc877 /telepathy-glib/base-channel.c | |
parent | 4e9f50f2a699bcba645446a3bd04831b0667597d (diff) | |
download | telepathy-glib-86deaeb31f8ca05cf393c0651bf2e27e1478125a.tar.gz |
Add tp_base_channel_is_requested()
Diffstat (limited to 'telepathy-glib/base-channel.c')
-rw-r--r-- | telepathy-glib/base-channel.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/telepathy-glib/base-channel.c b/telepathy-glib/base-channel.c index 66c0d16ce..81815059a 100644 --- a/telepathy-glib/base-channel.c +++ b/telepathy-glib/base-channel.c @@ -264,6 +264,23 @@ tp_base_channel_get_initiator (TpBaseChannel *chan) return chan->priv->initiator; } +/** + * tp_base_channel_is_requested: + * @chan: a channel + * + * Returns whether or not @chan was requested, as a shortcut for retrieving the + * #TpBaseChannel:requested property. + * + * Returns: whether or not @chan was requested. + */ +gboolean +tp_base_channel_is_requested (TpBaseChannel *chan) +{ + g_return_val_if_fail (TP_IS_BASE_CHANNEL (chan), 0); + + return chan->priv->requested; +} + /* * tp_base_channel_add_properties: * |