summaryrefslogtreecommitdiff
path: root/telepathy-farsight
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.co.uk>2009-11-10 19:38:00 -0500
committerOlivier CrĂȘte <olivier.crete@collabora.co.uk>2010-01-05 14:00:57 -0500
commit77884843668654e4ba05614aecb0bc9fce107699 (patch)
treebc4e7316a856d2dbd91155dbaf65054d5dc87312 /telepathy-farsight
parentd4795af1a73e6d220bd05baf153f12cb62a0d23c (diff)
Export held resources
Diffstat (limited to 'telepathy-farsight')
-rw-r--r--telepathy-farsight/stream.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/telepathy-farsight/stream.c b/telepathy-farsight/stream.c
index 75b2688..b73d70e 100644
--- a/telepathy-farsight/stream.c
+++ b/telepathy-farsight/stream.c
@@ -133,7 +133,8 @@ enum
PROP_NAT_PROPERTIES,
PROP_SINK_PAD,
PROP_LOCAL_PREFERENCES,
- PROP_TOS
+ PROP_TOS,
+ PROP_RESOURCES
};
static void get_all_properties_cb (TpProxy *proxy,
@@ -266,6 +267,9 @@ tf_stream_get_property (GObject *object,
else
g_value_set_uint (value, self->priv->tos);
break;
+ case PROP_RESOURCES:
+ g_value_set_uint (value, self->priv->has_resource);
+ break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
break;
@@ -540,6 +544,15 @@ tf_stream_class_init (TfStreamClass *klass)
0, 255, 0,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
+ g_object_class_install_property (object_class, PROP_RESOURCES,
+ g_param_spec_uint ("resources",
+ "Resources held by the stream",
+ "The resources held by a TpMediaStreamDirection",
+ TP_MEDIA_STREAM_DIRECTION_NONE,
+ TP_MEDIA_STREAM_DIRECTION_BIDIRECTIONAL,
+ TP_MEDIA_STREAM_DIRECTION_NONE,
+ G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
+
/**
* TfStream::closed:
* @stream: the stream that has been closed