[Telepathy-commits] [telepathy-gabble/master] add gabble_bytestream_multiple_nb_stream_method
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Tue Jan 6 08:41:34 PST 2009
---
src/bytestream-multiple.c | 9 +++++++++
src/bytestream-multiple.h | 3 +++
2 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/src/bytestream-multiple.c b/src/bytestream-multiple.c
index aef0125..e598450 100644
--- a/src/bytestream-multiple.c
+++ b/src/bytestream-multiple.c
@@ -615,6 +615,15 @@ gabble_bytestream_multiple_add_stream_method (GabbleBytestreamMultiple *self,
bytestream_activate_next (self);
}
+guint
+gabble_bytestream_multiple_nb_stream_method (GabbleBytestreamMultiple *self)
+{
+ GabbleBytestreamMultiplePrivate *priv =
+ GABBLE_BYTESTREAM_MULTIPLE_GET_PRIVATE (self);
+
+ return g_list_length (priv->fallback_stream_methods);
+}
+
static void
bytestream_iface_init (gpointer g_iface,
gpointer iface_data)
diff --git a/src/bytestream-multiple.h b/src/bytestream-multiple.h
index efd84d2..da5b666 100644
--- a/src/bytestream-multiple.h
+++ b/src/bytestream-multiple.h
@@ -68,6 +68,9 @@ GType gabble_bytestream_multiple_get_type (void);
void gabble_bytestream_multiple_add_stream_method (
GabbleBytestreamMultiple *self, const gchar *method);
+guint gabble_bytestream_multiple_nb_stream_method (
+ GabbleBytestreamMultiple *self);
+
G_END_DECLS
#endif /* #ifndef __GABBLE_BYTESTREAM_MULTIPLE_H__ */
--
1.5.6.5
More information about the Telepathy-commits
mailing list