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/automatic-proxy-factory.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/automatic-proxy-factory.c')
-rw-r--r-- | telepathy-glib/automatic-proxy-factory.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/telepathy-glib/automatic-proxy-factory.c b/telepathy-glib/automatic-proxy-factory.c index 32432ab36..634b1316b 100644 --- a/telepathy-glib/automatic-proxy-factory.c +++ b/telepathy-glib/automatic-proxy-factory.c @@ -256,14 +256,21 @@ client_proxy_factory_iface_init (gpointer g_iface, * Returns: a new #TpAutomaticProxyFactory * * Since: 0.13.2 + * Deprecated: New code should use #TpAutomaticClientFactory instead */ -TpAutomaticProxyFactory * -tp_automatic_proxy_factory_new (void) +static TpAutomaticProxyFactory * +_tp_automatic_proxy_factory_new (void) { return g_object_new (TP_TYPE_AUTOMATIC_PROXY_FACTORY, NULL); } +TpAutomaticProxyFactory * +tp_automatic_proxy_factory_new (void) +{ + return _tp_automatic_proxy_factory_new (); +} + /** * tp_automatic_proxy_factory_dup: * @@ -274,6 +281,7 @@ tp_automatic_proxy_factory_new (void) * Returns: (transfer full): a #TpAutomaticProxyFactory * * Since: 0.13.2 + * Deprecated: New code should use #TpAutomaticClientFactory instead */ TpAutomaticProxyFactory * tp_automatic_proxy_factory_dup (void) @@ -283,7 +291,7 @@ tp_automatic_proxy_factory_dup (void) if (singleton != NULL) return g_object_ref (singleton); - singleton = tp_automatic_proxy_factory_new (); + singleton = _tp_automatic_proxy_factory_new (); g_object_add_weak_pointer (G_OBJECT (singleton), (gpointer) &singleton); |