Tree @debian/0.17.4-1 (Download .tar.gz)
- ..
- versions
- abi.am
- account-channel-request-internal.h
- account-channel-request.c
- account-channel-request.h
- account-internal.h
- account-manager-internal.h
- account-manager.c
- account-manager.h
- account-manager.xml
- account.c
- account.h
- account.xml
- add-dispatch-operation-context-internal.h
- add-dispatch-operation-context.c
- add-dispatch-operation-context.h
- automatic-client-factory-internal.h
- automatic-client-factory.c
- automatic-client-factory.h
- automatic-proxy-factory.c
- automatic-proxy-factory.h
- base-channel.c
- base-channel.h
- base-client-internal.h
- base-client.c
- base-client.h
- base-connection-internal.h
- base-connection-manager.c
- base-connection-manager.h
- base-connection.c
- base-connection.h
- base-contact-list-internal.h
- base-contact-list.c
- base-contact-list.h
- base-password-channel.c
- base-password-channel.h
- base-protocol-internal.h
- base-protocol.c
- base-protocol.h
- base-room-config.c
- base-room-config.h
- basic-proxy-factory.c
- basic-proxy-factory.h
- capabilities-internal.h
- capabilities.c
- capabilities.h
- channel-contacts.c
- channel-dispatch-operation-internal.h
- channel-dispatch-operation.c
- channel-dispatch-operation.h
- channel-dispatch-operation.xml
- channel-dispatcher.c
- channel-dispatcher.h
- channel-dispatcher.xml
- channel-factory-iface.c
- channel-factory-iface.h
- channel-group.c
- channel-iface.c
- channel-iface.h
- channel-internal.h
- channel-manager.c
- channel-manager.h
- channel-request.c
- channel-request.h
- channel-request.xml
- channel.c
- channel.h
- channel.xml
- client-channel-factory.c
- client-channel-factory.h
- client-message-internal.h
- client-message.c
- client-message.h
- client.c
- client.h
- client.xml
- cm-message-internal.h
- cm-message.c
- cm-message.h
- codegen.am
- connection-aliasing.c
- connection-avatars.c
- connection-contact-info.c
- connection-contact-list.c
- connection-contact-list.h
- connection-handles.c
- connection-internal.h
- connection-manager.c
- connection-manager.h
- connection-manager.xml
- connection.c
- connection.h
- connection.xml
- contact-internal.h
- contact-list-channel-internal.h
- contact-list-channel.c
- contact-operations.c
- contact-operations.h
- contact-search-internal.h
- contact-search-result.c
- contact-search-result.h
- contact-search.c
- contact-search.h
- contact.c
- contact.h
- contacts-mixin.c
- contacts-mixin.h
- dbus-daemon.c
- dbus-daemon.h
- dbus-daemon.xml
- dbus-internal.h
- dbus-introspectable.xml
- dbus-peer.xml
- dbus-properties-mixin.c
- dbus-properties-mixin.h
- dbus-properties.xml
- dbus-tube-channel.c
- dbus-tube-channel.h
- dbus.c
- dbus.h
- debug-ansi.h
- debug-internal.h
- debug-sender.c
- debug-sender.h
- debug.c
- debug.h
- debug.xml
- defs.h
- deprecated-internal.h
- dtmf.c
- dtmf.h
- enums.h
- errors.c
- errors.h
- exportable-channel.c
- exportable-channel.h
- extra-gtkdoc.h
- file-transfer-channel.c
- file-transfer-channel.h
- generic.xml
- genums.c.template
- genums.h.template
- gnio-util.c
- gnio-util.h
- group-mixin.c
- group-mixin.h
- gtypes.c
- gtypes.h
- handle-channels-context-internal.h
- handle-channels-context.c
- handle-channels-context.h
- handle-repo-dynamic.c
- handle-repo-dynamic.h
- handle-repo-internal.h
- handle-repo-static.c
- handle-repo-static.h
- handle-repo.c
- handle-repo.h
- handle-set.c
- handle.c
- handle.h
- heap.c
- heap.h
- interfaces.c
- interfaces.h
- introspection.am
- intset.c
- intset.h
- Makefile.am
- Makefile.in
- media-interfaces.c
- media-interfaces.h
- media-session-handler.xml
- media-stream-handler.xml
- message-internal.h
- message-mixin.c
- message-mixin.h
- message.c
- message.h
- observe-channels-context-internal.h
- observe-channels-context.c
- observe-channels-context.h
- presence-mixin.c
- presence-mixin.h
- properties-mixin.c
- properties-mixin.h
- protocol-internal.h
- protocol.c
- protocol.h
- protocol.xml
- proxy-internal.h
- proxy-methods.c
- proxy-signals.c
- proxy-subclass.h
- proxy.c
- proxy.h
- run.c
- run.h
- signalled-message-internal.h
- signalled-message.c
- signalled-message.h
- signals-marshal.list
- simple-approver.c
- simple-approver.h
- simple-client-factory-internal.h
- simple-client-factory.c
- simple-client-factory.h
- simple-handler.c
- simple-handler.h
- simple-observer.c
- simple-observer.h
- simple-password-manager.c
- simple-password-manager.h
- stable-interfaces.xml
- stream-tube-channel.c
- stream-tube-channel.h
- stream-tube-connection-internal.h
- stream-tube-connection.c
- stream-tube-connection.h
- svc-account-manager.h
- svc-account.h
- svc-channel-dispatch-operation.h
- svc-channel-dispatcher.h
- svc-channel-request.h
- svc-channel.h
- svc-client.h
- svc-connection-manager.h
- svc-connection.h
- svc-debug.h
- svc-generic.h
- svc-media-interfaces.h
- svc-properties-interface.h
- svc-protocol.h
- svc-tls.h
- telepathy-glib-uninstalled.pc.in
- telepathy-glib.h
- telepathy-glib.pc.in
- TelepathyGLib-0.12.gir
- TelepathyGLib-0.12.metadata
- text-channel.c
- text-channel.h
- text-mixin.c
- text-mixin.h
- tls-cert.xml
- util-internal.h
- util.c
- util.h
- verify.h
basic-proxy-factory.c @debian/0.17.4-1 — raw · history · blame
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 | /* * Simple client channel factory creating TpChannel * * Copyright © 2010 Collabora Ltd. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ /** * SECTION:basic-proxy-factory * @title: TpBasicProxyFactory * @short_description: channel factory creating TpChannel objects * @see_also: #TpAutomaticProxyFactory * * This factory implements the #TpClientChannelFactory interface to create * plain #TpChannel objects. Unlike #TpAutomaticProxyFactory, it will * not create higher-level subclasses like #TpStreamTubeChannel. * The only feature this factory asks to prepare is #TP_CHANNEL_FEATURE_CORE. * * TpProxy subclasses other than TpChannel are not currently supported. * * Since: 0.13.2 */ /** * TpBasicProxyFactory: * * Data structure representing a #TpBasicProxyFactory * * Since: 0.13.2 */ /** * TpBasicProxyFactoryClass: * @parent_class: the parent class * * The class of a #TpBasicProxyFactory. * * Since: 0.13.2 */ #include "telepathy-glib/basic-proxy-factory.h" #include <telepathy-glib/client-channel-factory.h> #define DEBUG_FLAG TP_DEBUG_CLIENT #include "telepathy-glib/debug-internal.h" /* We rely on the default (lack of) implementation of everything */ G_DEFINE_TYPE_WITH_CODE(TpBasicProxyFactory, tp_basic_proxy_factory, G_TYPE_OBJECT, G_IMPLEMENT_INTERFACE (TP_TYPE_CLIENT_CHANNEL_FACTORY, NULL)) static void tp_basic_proxy_factory_init (TpBasicProxyFactory *self) { } static void tp_basic_proxy_factory_class_init (TpBasicProxyFactoryClass *cls) { } /** * tp_basic_proxy_factory_new: * * Convenient function to create a new #TpBasicProxyFactory instance. * * Returns: a new #TpBasicProxyFactory * * Since: 0.13.2 * Deprecated: New code should use #TpSimpleClientFactory instead */ static TpBasicProxyFactory * _tp_basic_proxy_factory_new (void) { return g_object_new (TP_TYPE_BASIC_PROXY_FACTORY, NULL); } TpBasicProxyFactory * tp_basic_proxy_factory_new (void) { return _tp_basic_proxy_factory_new (); } /** * tp_basic_proxy_factory_dup: * * Returns a cached #TpBasicProxyFactory; the same #TpBasicProxyFactory object * will be returned by this function repeatedly, as long as at least one * reference exists. * * Returns: (transfer full): a #TpBasicProxyFactory * * Since: 0.13.2 * Deprecated: New code should use #TpSimpleClientFactory instead */ TpBasicProxyFactory * tp_basic_proxy_factory_dup (void) { static TpBasicProxyFactory *singleton = NULL; if (singleton != NULL) return g_object_ref (singleton); singleton = _tp_basic_proxy_factory_new (); g_object_add_weak_pointer (G_OBJECT (singleton), (gpointer) &singleton); return singleton; } |