[Telepathy-commits] [telepathy-gabble/master] bytestream-iface: define bytestream signals

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Mon Dec 15 09:43:21 PST 2008


---
 src/bytestream-iface.c |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/src/bytestream-iface.c b/src/bytestream-iface.c
index b589f4c..0577eab 100644
--- a/src/bytestream-iface.c
+++ b/src/bytestream-iface.c
@@ -19,6 +19,7 @@
 
 #include "config.h"
 #include "bytestream-iface.h"
+#include "gabble-signals-marshal.h"
 
 #include "connection.h"
 
@@ -132,6 +133,22 @@ gabble_bytestream_iface_base_init (gpointer klass)
           G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
       g_object_interface_install_property (klass, param_spec);
 
+      g_signal_new ("data-received",
+          G_TYPE_FROM_INTERFACE (klass),
+          G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED,
+          0,
+          NULL, NULL,
+          g_cclosure_marshal_VOID__UINT_POINTER,
+          G_TYPE_NONE, 2, G_TYPE_UINT, G_TYPE_POINTER);
+
+      g_signal_new ("state-changed",
+          G_TYPE_FROM_INTERFACE (klass),
+          G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED,
+          0,
+          NULL, NULL,
+          gabble_marshal_VOID__UINT,
+          G_TYPE_NONE, 1, G_TYPE_UINT);
+
       initialized = TRUE;
     }
 }
-- 
1.5.6.5




More information about the Telepathy-commits mailing list