summaryrefslogtreecommitdiff
path: root/telepathy-glib/channel-manager.h
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2010-07-16 14:05:51 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2010-07-16 16:07:28 +0100
commit78ec5ee421bf5fa7bb49b7982639430053008e16 (patch)
tree680160ce2f5ea8f6641bb2b54f323facc82f5fb6 /telepathy-glib/channel-manager.h
parentb3240716ffe94460d15057ad899445eabb58d3fd (diff)
downloadtelepathy-glib-78ec5ee421bf5fa7bb49b7982639430053008e16.tar.gz
TpChannelManager: add type_foreach_channel_class()
Protocol objects want to iterate over all possible channel classes before a channel manager has been instantiated.
Diffstat (limited to 'telepathy-glib/channel-manager.h')
-rw-r--r--telepathy-glib/channel-manager.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/telepathy-glib/channel-manager.h b/telepathy-glib/channel-manager.h
index 77bcd2930..777a2ea23 100644
--- a/telepathy-glib/channel-manager.h
+++ b/telepathy-glib/channel-manager.h
@@ -71,6 +71,18 @@ void tp_channel_manager_foreach_channel_class (
TpChannelManager *manager,
TpChannelManagerChannelClassFunc func, gpointer user_data);
+typedef void (*TpChannelManagerTypeChannelClassFunc) (GType type,
+ GHashTable *fixed_properties,
+ const gchar * const *allowed_properties,
+ gpointer user_data);
+
+typedef void (*TpChannelManagerTypeForeachChannelClassFunc) (
+ GType type, TpChannelManagerTypeChannelClassFunc func,
+ gpointer user_data);
+
+void tp_channel_manager_type_foreach_channel_class (GType type,
+ TpChannelManagerTypeChannelClassFunc func, gpointer user_data);
+
typedef gboolean (*TpChannelManagerRequestFunc) (
TpChannelManager *manager, gpointer request_token,
@@ -97,6 +109,8 @@ struct _TpChannelManagerIface {
TpChannelManagerRequestFunc request_channel;
TpChannelManagerRequestFunc ensure_channel;
+ TpChannelManagerTypeForeachChannelClassFunc type_foreach_channel_class;
+
/*<private>*/
/* We know that these two methods will be added in the near future, so
* reserve extra space for them.
@@ -104,7 +118,7 @@ struct _TpChannelManagerIface {
GCallback _reserved_for_foreach_contact_channel_class;
GCallback _reserved_for_add_cap;
- GCallback _future[8];
+ GCallback _future[7];
};