summaryrefslogtreecommitdiff
path: root/src/tube-dbus.c
diff options
context:
space:
mode:
authorWill Thompson <will.thompson@collabora.co.uk>2009-01-18 03:14:50 +1100
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-02-03 10:07:17 +0000
commitd442ec3f86987afd1f2a601ef0ea1637aabb2762 (patch)
tree2f1210b258a0a1030320f867c782df17dd6c4751 /src/tube-dbus.c
parent5da1cd187c7cd9505685298df7e7b7c5f4384805 (diff)
Add a gabble_tube_dbus_offer stub
Diffstat (limited to 'src/tube-dbus.c')
-rw-r--r--src/tube-dbus.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/tube-dbus.c b/src/tube-dbus.c
index a4883ea47..99f88454b 100644
--- a/src/tube-dbus.c
+++ b/src/tube-dbus.c
@@ -1130,6 +1130,22 @@ gabble_tube_dbus_class_init (GabbleTubeDBusClass *gabble_tube_dbus_class)
tp_external_group_mixin_init_dbus_properties (object_class);
}
+gboolean
+gabble_tube_dbus_offer (GabbleTubeDBus *tube,
+ GError **error)
+{
+ if (tube->priv->offered)
+ {
+ g_set_error (error, TP_ERRORS, TP_ERROR_INVALID_ARGUMENT,
+ "Tube has already been offered");
+ return FALSE;
+ }
+
+ tube->priv->offered = TRUE;
+ g_signal_emit (G_OBJECT (tube), signals[OFFERED], 0);
+ return TRUE;
+}
+
static void
message_received (GabbleTubeDBus *tube,
TpHandle sender,