diff options
author | Xavier Claessens <xclaesse@gmail.com> | 2011-07-25 11:23:25 +0200 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2011-07-26 15:05:21 +0200 |
commit | 1fd9b082ee7d7e96aea2905e0749482a49e5c345 (patch) | |
tree | 69159d484f7a023573eea7e41786df621e6c47dc /telepathy-glib/channel-request.c | |
parent | d69d8d8e20dd2061e1bb892534ab338c608eb47a (diff) | |
download | telepathy-glib-1fd9b082ee7d7e96aea2905e0749482a49e5c345.tar.gz |
Deprecate Tp{Basic,Automatic}ProxyFactory in favor of Tp{Simple,Automatic}ClientFactory
Add internal wrappers for deprecated functions so we can still use them for compatibility
Diffstat (limited to 'telepathy-glib/channel-request.c')
-rw-r--r-- | telepathy-glib/channel-request.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/telepathy-glib/channel-request.c b/telepathy-glib/channel-request.c index fc302afb4..ec0c2b24a 100644 --- a/telepathy-glib/channel-request.c +++ b/telepathy-glib/channel-request.c @@ -35,9 +35,9 @@ #define DEBUG_FLAG TP_DEBUG_DISPATCHER #include "telepathy-glib/dbus-internal.h" #include "telepathy-glib/debug-internal.h" +#include "telepathy-glib/deprecated-internal.h" #include "telepathy-glib/proxy-internal.h" #include "telepathy-glib/simple-client-factory-internal.h" - #include "telepathy-glib/_gen/tp-cli-channel-request-body.h" #include "_gen/signals-marshal.h" @@ -374,6 +374,7 @@ tp_channel_request_class_init (TpChannelRequestClass *klass) * If no channel factory is specified then #TpAutomaticProxyFactory is used. * * Since: 0.13.14 + * Deprecated: since 0.UNRELEASED. Use #TpProxy:factory instead. */ param_spec = g_param_spec_object ("channel-factory", "Channel factory", "Object implementing TpClientChannelFactoryInterface", @@ -621,11 +622,19 @@ _tp_channel_request_new_with_factory (TpSimpleClientFactory *factory, * Change the value of the #TpChannelRequest:channel-factory property. * * Since: 0.13.14 + * Deprecated: since 0.UNRELEASED. Use #TpProxy:factory instead. */ void tp_channel_request_set_channel_factory (TpChannelRequest *self, TpClientChannelFactory *factory) { + _tp_channel_request_set_channel_factory (self, factory); +} + +void +_tp_channel_request_set_channel_factory (TpChannelRequest *self, + TpClientChannelFactory *factory) +{ tp_clear_object (&self->priv->channel_factory); if (factory != NULL) |