[Telepathy-commits] [telepathy-gabble/master] tube-stream: add tube-offered signal
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Mon Jan 12 04:29:37 PST 2009
---
src/tube-stream.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/src/tube-stream.c b/src/tube-stream.c
index 2090bea..eecdb8d 100644
--- a/src/tube-stream.c
+++ b/src/tube-stream.c
@@ -106,6 +106,7 @@ enum
OPENED,
NEW_CONNECTION,
CLOSED,
+ OFFERED,
LAST_SIGNAL
};
@@ -1334,6 +1335,15 @@ gabble_tube_stream_class_init (GabbleTubeStreamClass *gabble_tube_stream_class)
gabble_marshal_VOID__VOID,
G_TYPE_NONE, 0);
+ signals[OFFERED] =
+ g_signal_new ("tube-offered",
+ G_OBJECT_CLASS_TYPE (gabble_tube_stream_class),
+ G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED,
+ 0,
+ NULL, NULL,
+ gabble_marshal_VOID__VOID,
+ G_TYPE_NONE, 0);
+
gabble_tube_stream_class->dbus_props_class.interfaces = prop_interfaces;
tp_dbus_properties_mixin_class_init (object_class,
G_STRUCT_OFFSET (GabbleTubeStreamClass, dbus_props_class));
@@ -1989,6 +1999,8 @@ gabble_tube_stream_offer_stream_tube (GabbleSvcChannelTypeStreamTube *iface,
g_signal_connect (self, "tube-new-connection",
G_CALLBACK (stream_unix_tube_new_connection_cb), self);
+ g_signal_emit (G_OBJECT (self), signals[OFFERED], 0);
+
gabble_svc_channel_type_stream_tube_return_from_offer_stream_tube (context);
}
--
1.5.6.5
More information about the Telepathy-commits
mailing list