Tree @debian/0.11.16-1 (Download .tar.gz)
- ..
- versions
- abi.am
- 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
- base-channel.c
- base-channel.h
- base-client-internal.h
- base-client.c
- base-client.h
- base-connection-manager.c
- base-connection-manager.h
- base-connection.c
- base-connection.h
- base-protocol-internal.h
- base-protocol.c
- base-protocol.h
- capabilities-internal.h
- capabilities.c
- capabilities.h
- 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.c
- client.h
- client.xml
- codegen.am
- connection-avatars.c
- connection-contact-info.c
- connection-handles.c
- connection-internal.h
- connection-manager.c
- connection-manager.h
- connection-manager.xml
- connection.c
- connection.h
- connection.xml
- 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.c
- dbus.h
- debug-ansi.h
- debug-internal.h
- debug-sender.c
- debug-sender.h
- debug.c
- debug.h
- debug.xml
- defs.h
- enums.h
- errors.c
- errors.h
- exportable-channel.c
- exportable-channel.h
- extra-gtkdoc.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
- kludge.xsl
- Makefile.am
- Makefile.in
- media-interfaces.c
- media-interfaces.h
- media-session-handler.xml
- media-stream-handler.xml
- message-mixin.c
- message-mixin.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
- signals-marshal.list
- simple-approver.c
- simple-approver.h
- simple-handler.c
- simple-handler.h
- simple-observer.c
- simple-observer.h
- stable-interfaces.xml
- 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
- text-mixin.c
- text-mixin.h
- tls-cert.xml
- util-internal.h
- util.c
- util.h
- verify.h
gtypes.c @debian/0.11.16-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 124 125 126 127 128 129 130 131 | /* * gtypes.c - Specialized GTypes representing D-Bus structs etc. * Copyright (C) 2007 Collabora Ltd. <http://www.collabora.co.uk/> * Copyright (C) 2007 Nokia Corporation * * 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 */ #include <telepathy-glib/gtypes.h> #include <telepathy-glib/util.h> /** * SECTION:gtypes * @title: GType factory functions * @short_description: Macros using caching factory functions to get * dbus-glib specialized GTypes * * dbus-glib's built-in factory functions for specialized GTypes need to do * a fair amount of parsing on their arguments, so these macros are provided * to avoid that. Each macro expands to a call to a function which caches * the GType, so it only ever has to call into dbus-glib once. * * tp_dbus_specialized_value_slice_new() is also provided. * * Since: 0.7.0 */ /** * TP_ARRAY_TYPE_OBJECT_PATH_LIST: * * Expands to a call to a function * that returns the #GType of a #GPtrArray * of DBUS_TYPE_G_OBJECT_PATH. * * Since: 0.7.34 */ GType tp_type_dbus_array_of_o (void) { static GType t = 0; if (G_UNLIKELY (t == 0)) t = dbus_g_type_get_collection ("GPtrArray", DBUS_TYPE_G_OBJECT_PATH); return t; } /** * tp_dbus_specialized_value_slice_new: * @type: A D-Bus specialized type (i.e. probably a specialized GValueArray * representing a D-Bus struct) * * <!-- --> * * Returns: a slice-allocated GValue containing an empty value of the * given type. */ GValue * tp_dbus_specialized_value_slice_new (GType type) { GValue *value = tp_g_value_slice_new (type); g_value_take_boxed (value, dbus_g_type_specialized_construct (type)); return value; } /** * TP_TYPE_UCHAR_ARRAY: * * Expands to a call to a function * that returns the #GType of a #GArray * of %G_TYPE_UCHAR, i.e. the same thing as %DBUS_TYPE_G_UCHAR_ARRAY * * This is the type used in dbus-glib to represent a byte array, signature * 'ay'. (Note that the #GByteArray type is not used with dbus-glib.) * * Since: 0.11.1 */ GType tp_type_dbus_array_of_y (void) { static GType t = 0; if (G_UNLIKELY (t == 0)) t = DBUS_TYPE_G_UCHAR_ARRAY; return t; } /** * TP_ARRAY_TYPE_UCHAR_ARRAY_LIST: * * Expands to a call to a function * that returns the #GType of a #GPtrArray of %TP_TYPE_UCHAR_ARRAY, i.e. * a #GPtrArray of #GArray of #guchar. * * This is the type used in dbus-glib to represent an array of byte arrays, * signature 'aay'. (Note that the #GByteArray type is not used with * dbus-glib.) * * Since: 0.11.14 */ GType tp_type_dbus_array_of_ay (void) { static GType t = 0; if (G_UNLIKELY (t == 0)) t = dbus_g_type_get_collection ("GPtrArray", TP_TYPE_UCHAR_ARRAY); return t; } /* auto-generated implementation stubs */ #include "_gen/gtypes-body.h" |