diff options
author | Xavier Claessens <xclaesse@gmail.com> | 2011-07-15 16:30:59 +0200 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2011-07-20 15:00:23 +0200 |
commit | ebe0c53202e216cd049e4b59e4d49d5b5e7f67db (patch) | |
tree | 1f80465a66b006f42366ab7dc66deb78c3f8444e /telepathy-glib/channel-dispatch-operation.c | |
parent | f35ecbc1b9dcc50f79c895e806854938244a37f7 (diff) | |
download | telepathy-glib-ebe0c53202e216cd049e4b59e4d49d5b5e7f67db.tar.gz |
Add TpSimpleClientFactory
This is a new object replacing TpBasicProxyFactory but can construct
any known TpProxy subclasses, guarantee their uniqueness per object-path
and keep a user-defined set of features to prepare on them.
Diffstat (limited to 'telepathy-glib/channel-dispatch-operation.c')
-rw-r--r-- | telepathy-glib/channel-dispatch-operation.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/telepathy-glib/channel-dispatch-operation.c b/telepathy-glib/channel-dispatch-operation.c index 8ccb65260..1c560a5e0 100644 --- a/telepathy-glib/channel-dispatch-operation.c +++ b/telepathy-glib/channel-dispatch-operation.c @@ -36,6 +36,7 @@ #define DEBUG_FLAG TP_DEBUG_DISPATCHER #include "telepathy-glib/dbus-internal.h" #include "telepathy-glib/debug-internal.h" +#include "telepathy-glib/simple-client-factory-internal.h" #include "telepathy-glib/_gen/signals-marshal.h" #include "telepathy-glib/_gen/tp-cli-channel-dispatch-operation-body.h" @@ -912,6 +913,17 @@ tp_channel_dispatch_operation_new (TpDBusDaemon *bus_daemon, GHashTable *immutable_properties, GError **error) { + return _tp_channel_dispatch_operation_new_with_factory (NULL, bus_daemon, + object_path, immutable_properties, error); +} + +TpChannelDispatchOperation * +_tp_channel_dispatch_operation_new_with_factory (TpSimpleClientFactory *factory, + TpDBusDaemon *bus_daemon, + const gchar *object_path, + GHashTable *immutable_properties, + GError **error) +{ TpChannelDispatchOperation *self; gchar *unique_name; @@ -932,6 +944,7 @@ tp_channel_dispatch_operation_new (TpDBusDaemon *bus_daemon, "bus-name", unique_name, "object-path", object_path, "cdo-properties", immutable_properties, + "factory", factory, NULL)); g_free (unique_name); |