[telepathy-salut/master] add salut_tube_dbus_channel_get_allowed_properties ()
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Fri Jun 26 07:28:06 PDT 2009
---
src/tube-dbus.c | 23 ++++++++++++++++++++++-
src/tube-dbus.h | 2 ++
2 files changed, 24 insertions(+), 1 deletions(-)
diff --git a/src/tube-dbus.c b/src/tube-dbus.c
index 8911385..db20cb3 100644
--- a/src/tube-dbus.c
+++ b/src/tube-dbus.c
@@ -29,7 +29,15 @@
#include <dbus/dbus-glib.h>
#include <dbus/dbus-glib-lowlevel.h>
-#include <telepathy-glib/util.h>
+
+#include <telepathy-glib/channel-iface.h>
+#include <telepathy-glib/dbus.h>
+#include <telepathy-glib/exportable-channel.h>
+#include <telepathy-glib/group-mixin.h>
+#include <telepathy-glib/gtypes.h>
+#include <telepathy-glib/interfaces.h>
+#include <telepathy-glib/svc-channel.h>
+#include <telepathy-glib/svc-generic.h>
#include <gibber/gibber-bytestream-ibb.h>
#include <gibber/gibber-bytestream-muc.h>
@@ -56,6 +64,13 @@ tube_iface_init (gpointer g_iface, gpointer iface_data);
G_DEFINE_TYPE_WITH_CODE (SalutTubeDBus, salut_tube_dbus, G_TYPE_OBJECT,
G_IMPLEMENT_INTERFACE (SALUT_TYPE_TUBE_IFACE, tube_iface_init));
+static const gchar * const salut_tube_dbus_channel_allowed_properties[] = {
+ TP_IFACE_CHANNEL ".TargetHandle",
+ TP_IFACE_CHANNEL ".TargetID",
+ TP_IFACE_CHANNEL_TYPE_DBUS_TUBE ".ServiceName",
+ NULL
+};
+
/* signals */
enum
{
@@ -1259,6 +1274,12 @@ salut_tube_dbus_handle_in_names (SalutTubeDBus *self,
!= NULL);
}
+const gchar * const *
+salut_tube_dbus_channel_get_allowed_properties (void)
+{
+ return salut_tube_dbus_channel_allowed_properties;
+}
+
static void
tube_iface_init (gpointer g_iface,
gpointer iface_data)
diff --git a/src/tube-dbus.h b/src/tube-dbus.h
index d8177d0..4d89609 100644
--- a/src/tube-dbus.h
+++ b/src/tube-dbus.h
@@ -74,6 +74,8 @@ gboolean salut_tube_dbus_remove_name (SalutTubeDBus *self, TpHandle handle);
gboolean salut_tube_dbus_handle_in_names (SalutTubeDBus *self,
TpHandle handle);
+const gchar * const * salut_tube_dbus_channel_get_allowed_properties (void);
+
G_END_DECLS
#endif /* #ifndef __SALUT_TUBE_DBUS_H__ */
--
1.5.6.5
More information about the telepathy-commits
mailing list