GType factory functions

GType factory functions — Macros using caching factory functions to get dbus-glib specialized GTypes

Synopsis


#include <telepathy-glib/gtypes.h>



GValue*             tp_dbus_specialized_value_slice_new (GType type);
#define             TP_HASH_TYPE_STRING_STRING_MAP
#define             TP_HASH_TYPE_STRING_VARIANT_MAP

#define             TP_STRUCT_TYPE_PARAM_SPEC
#define             TP_ARRAY_TYPE_PARAM_SPEC_LIST

#define             TP_STRUCT_TYPE_CHANNEL_INFO
#define             TP_ARRAY_TYPE_CHANNEL_INFO_LIST

#define             TP_HASH_TYPE_ALIAS_MAP
#define             TP_STRUCT_TYPE_ALIAS_PAIR
#define             TP_ARRAY_TYPE_ALIAS_PAIR_LIST

#define             TP_HASH_TYPE_AVATAR_TOKEN_MAP

#define             TP_STRUCT_TYPE_CAPABILITY_CHANGE
#define             TP_ARRAY_TYPE_CAPABILITY_CHANGE_LIST
#define             TP_STRUCT_TYPE_CAPABILITY_PAIR
#define             TP_ARRAY_TYPE_CAPABILITY_PAIR_LIST
#define             TP_STRUCT_TYPE_CONTACT_CAPABILITY
#define             TP_ARRAY_TYPE_CONTACT_CAPABILITY_LIST

#define             TP_HASH_TYPE_CONTACT_PRESENCES
#define             TP_HASH_TYPE_MULTIPLE_STATUS_MAP
#define             TP_HASH_TYPE_STATUS_SPEC_MAP
#define             TP_STRUCT_TYPE_LAST_ACTIVITY_AND_STATUSES
#define             TP_STRUCT_TYPE_STATUS_SPEC

#define             TP_STRUCT_TYPE_LOCAL_PENDING_INFO
#define             TP_ARRAY_TYPE_LOCAL_PENDING_INFO_LIST

#define             TP_STRUCT_TYPE_PENDING_TEXT_MESSAGE
#define             TP_ARRAY_TYPE_PENDING_TEXT_MESSAGE_LIST

#define             TP_STRUCT_TYPE_SOCKET_ADDRESS_IPV4
#define             TP_STRUCT_TYPE_SOCKET_ADDRESS_IPV6
#define             TP_STRUCT_TYPE_SOCKET_NETMASK_IPV4
#define             TP_STRUCT_TYPE_SOCKET_NETMASK_IPV6
#define             TP_HASH_TYPE_SUPPORTED_SOCKET_MAP
#define             TP_STRUCT_TYPE_TUBE_INFO
#define             TP_ARRAY_TYPE_TUBE_INFO_LIST
#define             TP_STRUCT_TYPE_DBUS_TUBE_MEMBER
#define             TP_ARRAY_TYPE_DBUS_TUBE_MEMBER_LIST

#define             TP_STRUCT_TYPE_PROPERTY_SPEC
#define             TP_ARRAY_TYPE_PROPERTY_SPEC_LIST
#define             TP_STRUCT_TYPE_PROPERTY_FLAGS_CHANGE
#define             TP_ARRAY_TYPE_PROPERTY_FLAGS_CHANGE_LIST
#define             TP_STRUCT_TYPE_PROPERTY_VALUE
#define             TP_ARRAY_TYPE_PROPERTY_VALUE_LIST

#define             TP_ARRAY_TYPE_MEDIA_STREAM_HANDLER_CANDIDATE_LIST
#define             TP_ARRAY_TYPE_MEDIA_STREAM_HANDLER_CODEC_LIST
#define             TP_ARRAY_TYPE_MEDIA_STREAM_HANDLER_TRANSPORT_LIST
#define             TP_STRUCT_TYPE_MEDIA_STREAM_HANDLER_CANDIDATE
#define             TP_STRUCT_TYPE_MEDIA_STREAM_HANDLER_CODEC
#define             TP_STRUCT_TYPE_MEDIA_STREAM_HANDLER_TRANSPORT
#define             TP_STRUCT_TYPE_MEDIA_STREAM_INFO
#define             TP_ARRAY_TYPE_MEDIA_STREAM_INFO_LIST

#define             TP_ARRAY_TYPE_ROOM_INFO_LIST
#define             TP_STRUCT_TYPE_ROOM_INFO

Description

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.

Details

tp_dbus_specialized_value_slice_new ()

GValue*             tp_dbus_specialized_value_slice_new (GType type);

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.

TP_HASH_TYPE_STRING_STRING_MAP

#define             TP_HASH_TYPE_STRING_STRING_MAP

A mapping from strings to strings representing extra key-value pairs. This macro expands to a call to a function that returns a GType.


TP_HASH_TYPE_STRING_VARIANT_MAP

#define             TP_HASH_TYPE_STRING_VARIANT_MAP

A mapping from strings to variants representing extra key-value pairs. This macro expands to a call to a function that returns a GType.


TP_STRUCT_TYPE_PARAM_SPEC

#define             TP_STRUCT_TYPE_PARAM_SPEC

A struct representing an allowed parameter, as returned by GetParameters on the ConnectionManager interface. This macro expands to a call to a function that returns a GType.


TP_ARRAY_TYPE_PARAM_SPEC_LIST

#define             TP_ARRAY_TYPE_PARAM_SPEC_LIST

An array of TP_STRUCT_TYPE_PARAM_SPEC. This macro expands to a call to a function that returns a GType.


TP_STRUCT_TYPE_CHANNEL_INFO

#define             TP_STRUCT_TYPE_CHANNEL_INFO

A struct representing a channel, as returned by ListChannels on the Connection interface. This macro expands to a call to a function that returns a GType.


TP_ARRAY_TYPE_CHANNEL_INFO_LIST

#define             TP_ARRAY_TYPE_CHANNEL_INFO_LIST

An array of TP_STRUCT_TYPE_CHANNEL_INFO. This macro expands to a call to a function that returns a GType.


TP_HASH_TYPE_ALIAS_MAP

#define             TP_HASH_TYPE_ALIAS_MAP

A dictionary whose keys are contact handles and whose values are aliases. This macro expands to a call to a function that returns a GType.


TP_STRUCT_TYPE_ALIAS_PAIR

#define             TP_STRUCT_TYPE_ALIAS_PAIR

A pair (contact handle, alias) as seen in the AliasesChanged signal. This macro expands to a call to a function that returns a GType.


TP_ARRAY_TYPE_ALIAS_PAIR_LIST

#define             TP_ARRAY_TYPE_ALIAS_PAIR_LIST

An array of TP_STRUCT_TYPE_ALIAS_PAIR. This macro expands to a call to a function that returns a GType.


TP_HASH_TYPE_AVATAR_TOKEN_MAP

#define             TP_HASH_TYPE_AVATAR_TOKEN_MAP

A dictionary whose keys are contact handles and whose values are avatar tokens. This macro expands to a call to a function that returns a GType.


TP_STRUCT_TYPE_CAPABILITY_CHANGE

#define             TP_STRUCT_TYPE_CAPABILITY_CHANGE

A struct (contact handle, channel type, old generic flags, new generic flags, old type-specific flags, new type-specific flags) representing a change to one of a contact's capabilities, as seen in the CapabilitiesChanged signal on the Capabilities interface. This macro expands to a call to a function that returns a GType.


TP_ARRAY_TYPE_CAPABILITY_CHANGE_LIST

#define             TP_ARRAY_TYPE_CAPABILITY_CHANGE_LIST

An array of TP_STRUCT_TYPE_CAPABILITY_CHANGE. This macro expands to a call to a function that returns a GType.


TP_STRUCT_TYPE_CAPABILITY_PAIR

#define             TP_STRUCT_TYPE_CAPABILITY_PAIR

A pair (channel type, type-specific flags) as passed to AdvertiseCapabilities on the Capabilities interface. This macro expands to a call to a function that returns a GType.


TP_ARRAY_TYPE_CAPABILITY_PAIR_LIST

#define             TP_ARRAY_TYPE_CAPABILITY_PAIR_LIST

An array of TP_STRUCT_TYPE_CAPABILITY_PAIR. This macro expands to a call to a function that returns a GType.


TP_STRUCT_TYPE_CONTACT_CAPABILITY

#define             TP_STRUCT_TYPE_CONTACT_CAPABILITY

A struct (contact handle, channel type, generic flags, type-specific flags) representing a capability posessed by a contact, as returned by GetCapabilities on the Capabilities interface. This macro expands to a call to a function that returns a GType.


TP_ARRAY_TYPE_CONTACT_CAPABILITY_LIST

#define             TP_ARRAY_TYPE_CONTACT_CAPABILITY_LIST

An array of TP_STRUCT_TYPE_CONTACT_CAPABILITY. This macro expands to a call to a function that returns a GType.


TP_HASH_TYPE_CONTACT_PRESENCES

#define             TP_HASH_TYPE_CONTACT_PRESENCES

Mapping returned by GetPresence and signalled by PresenceUpdate, where the keys are contacts and the values represent their presences. This macro expands to a call to a function that returns a GType.


TP_HASH_TYPE_MULTIPLE_STATUS_MAP

#define             TP_HASH_TYPE_MULTIPLE_STATUS_MAP

Mapping used in Last_Activity_And_Statuses and passed to SetStatus, representing a collection of statuses. Use of this mapping with more than one member is deprecated. This macro expands to a call to a function that returns a GType.


TP_HASH_TYPE_STATUS_SPEC_MAP

#define             TP_HASH_TYPE_STATUS_SPEC_MAP

[] This macro expands to a call to a function that returns a GType.


TP_STRUCT_TYPE_LAST_ACTIVITY_AND_STATUSES

#define             TP_STRUCT_TYPE_LAST_ACTIVITY_AND_STATUSES

Structure representing a contact's presence, containing a last-activity time (deprecated) and a Multiple_Status_Map. This macro expands to a call to a function that returns a GType.


TP_STRUCT_TYPE_STATUS_SPEC

#define             TP_STRUCT_TYPE_STATUS_SPEC

[] This macro expands to a call to a function that returns a GType.


TP_STRUCT_TYPE_LOCAL_PENDING_INFO

#define             TP_STRUCT_TYPE_LOCAL_PENDING_INFO

A struct (handle to be added, handle of contact requesting the change, reason code, optional message) representing a contact whose attempt to join a group is to be confirmed by the local user, as returned by GetLocalPendingMembersWithInfo on the Group interface. This macro expands to a call to a function that returns a GType.


TP_ARRAY_TYPE_LOCAL_PENDING_INFO_LIST

#define             TP_ARRAY_TYPE_LOCAL_PENDING_INFO_LIST

An array of TP_STRUCT_TYPE_LOCAL_PENDING_INFO. This macro expands to a call to a function that returns a GType.


TP_STRUCT_TYPE_PENDING_TEXT_MESSAGE

#define             TP_STRUCT_TYPE_PENDING_TEXT_MESSAGE

A struct (message ID, timestamp in seconds since 1970-01-01 00:00 UTC, sender's handle, message type, flags, text) representing a pending text message, as returned by ListPendingMessages on the Text channel type. The arguments of the Received signal also match this struct's signature. This macro expands to a call to a function that returns a GType.


TP_ARRAY_TYPE_PENDING_TEXT_MESSAGE_LIST

#define             TP_ARRAY_TYPE_PENDING_TEXT_MESSAGE_LIST

An array of TP_STRUCT_TYPE_PENDING_TEXT_MESSAGE. This macro expands to a call to a function that returns a GType.


TP_STRUCT_TYPE_SOCKET_ADDRESS_IPV4

#define             TP_STRUCT_TYPE_SOCKET_ADDRESS_IPV4

An IPv4 address and port. This macro expands to a call to a function that returns a GType.


TP_STRUCT_TYPE_SOCKET_ADDRESS_IPV6

#define             TP_STRUCT_TYPE_SOCKET_ADDRESS_IPV6

An IPv6 address and port. This macro expands to a call to a function that returns a GType.


TP_STRUCT_TYPE_SOCKET_NETMASK_IPV4

#define             TP_STRUCT_TYPE_SOCKET_NETMASK_IPV4

An IPv4 network or subnet. This macro expands to a call to a function that returns a GType.


TP_STRUCT_TYPE_SOCKET_NETMASK_IPV6

#define             TP_STRUCT_TYPE_SOCKET_NETMASK_IPV6

An IPv6 network or subnet. This macro expands to a call to a function that returns a GType.


TP_HASH_TYPE_SUPPORTED_SOCKET_MAP

#define             TP_HASH_TYPE_SUPPORTED_SOCKET_MAP

The supported socket address and access-control types for tubes. See GetAvailableStreamTubeTypes. This macro expands to a call to a function that returns a GType.


TP_STRUCT_TYPE_TUBE_INFO

#define             TP_STRUCT_TYPE_TUBE_INFO

A struct (tube ID, initiator handle, tube type, service name, parameters, state) representing a tube, as returned by ListTubes on the Tubes channel type. This macro expands to a call to a function that returns a GType.


TP_ARRAY_TYPE_TUBE_INFO_LIST

#define             TP_ARRAY_TYPE_TUBE_INFO_LIST

An array of TP_STRUCT_TYPE_TUBE_INFO. This macro expands to a call to a function that returns a GType.


TP_STRUCT_TYPE_DBUS_TUBE_MEMBER

#define             TP_STRUCT_TYPE_DBUS_TUBE_MEMBER

A struct (handle, unique name) representing a participant in a D-Bus tube, as returned by GetDBusNames on the Tubes channel type, and as seen in the DBusNamesChanged signal. This macro expands to a call to a function that returns a GType.


TP_ARRAY_TYPE_DBUS_TUBE_MEMBER_LIST

#define             TP_ARRAY_TYPE_DBUS_TUBE_MEMBER_LIST

An array of TP_STRUCT_TYPE_DBUS_TUBE_MEMBER. This macro expands to a call to a function that returns a GType.


TP_STRUCT_TYPE_PROPERTY_SPEC

#define             TP_STRUCT_TYPE_PROPERTY_SPEC

A struct (property ID, property name, D-Bus signature, flags) representing a property, as returned by ListProperties on the Properties interface. This macro expands to a call to a function that returns a GType.


TP_ARRAY_TYPE_PROPERTY_SPEC_LIST

#define             TP_ARRAY_TYPE_PROPERTY_SPEC_LIST

An array of TP_STRUCT_TYPE_PROPERTY_SPEC. This macro expands to a call to a function that returns a GType.


TP_STRUCT_TYPE_PROPERTY_FLAGS_CHANGE

#define             TP_STRUCT_TYPE_PROPERTY_FLAGS_CHANGE

A struct (property ID, flags) representing a change to a property's flags, as seen in the PropertyFlagsChanged signal on the Properties interface. This macro expands to a call to a function that returns a GType.


TP_ARRAY_TYPE_PROPERTY_FLAGS_CHANGE_LIST

#define             TP_ARRAY_TYPE_PROPERTY_FLAGS_CHANGE_LIST

An array of TP_STRUCT_TYPE_PROPERTY_FLAGS_CHANGE. This macro expands to a call to a function that returns a GType.


TP_STRUCT_TYPE_PROPERTY_VALUE

#define             TP_STRUCT_TYPE_PROPERTY_VALUE

A struct (property ID, value) representing a property's value, as seen in the PropertiesChanged signal on the Properties interface, returned by the GetProperties method and passed to the SetProperties method. This macro expands to a call to a function that returns a GType.


TP_ARRAY_TYPE_PROPERTY_VALUE_LIST

#define             TP_ARRAY_TYPE_PROPERTY_VALUE_LIST

An array of TP_STRUCT_TYPE_PROPERTY_VALUE. This macro expands to a call to a function that returns a GType.


TP_ARRAY_TYPE_MEDIA_STREAM_HANDLER_CANDIDATE_LIST

#define             TP_ARRAY_TYPE_MEDIA_STREAM_HANDLER_CANDIDATE_LIST

An array of TP_STRUCT_TYPE_MEDIA_STREAM_HANDLER_CANDIDATE. This macro expands to a call to a function that returns a GType.


TP_ARRAY_TYPE_MEDIA_STREAM_HANDLER_CODEC_LIST

#define             TP_ARRAY_TYPE_MEDIA_STREAM_HANDLER_CODEC_LIST

An array of TP_STRUCT_TYPE_MEDIA_STREAM_HANDLER_CODEC. This macro expands to a call to a function that returns a GType.


TP_ARRAY_TYPE_MEDIA_STREAM_HANDLER_TRANSPORT_LIST

#define             TP_ARRAY_TYPE_MEDIA_STREAM_HANDLER_TRANSPORT_LIST

An array of TP_STRUCT_TYPE_MEDIA_STREAM_HANDLER_TRANSPORT. This macro expands to a call to a function that returns a GType.


TP_STRUCT_TYPE_MEDIA_STREAM_HANDLER_CANDIDATE

#define             TP_STRUCT_TYPE_MEDIA_STREAM_HANDLER_CANDIDATE

[] This macro expands to a call to a function that returns a GType.


TP_STRUCT_TYPE_MEDIA_STREAM_HANDLER_CODEC

#define             TP_STRUCT_TYPE_MEDIA_STREAM_HANDLER_CODEC

[] This macro expands to a call to a function that returns a GType.


TP_STRUCT_TYPE_MEDIA_STREAM_HANDLER_TRANSPORT

#define             TP_STRUCT_TYPE_MEDIA_STREAM_HANDLER_TRANSPORT

[] This macro expands to a call to a function that returns a GType.


TP_STRUCT_TYPE_MEDIA_STREAM_INFO

#define             TP_STRUCT_TYPE_MEDIA_STREAM_INFO

[] This macro expands to a call to a function that returns a GType.


TP_ARRAY_TYPE_MEDIA_STREAM_INFO_LIST

#define             TP_ARRAY_TYPE_MEDIA_STREAM_INFO_LIST

An array of TP_STRUCT_TYPE_MEDIA_STREAM_INFO. This macro expands to a call to a function that returns a GType.


TP_ARRAY_TYPE_ROOM_INFO_LIST

#define             TP_ARRAY_TYPE_ROOM_INFO_LIST

An array of TP_STRUCT_TYPE_ROOM_INFO. This macro expands to a call to a function that returns a GType.


TP_STRUCT_TYPE_ROOM_INFO

#define             TP_STRUCT_TYPE_ROOM_INFO

[] This macro expands to a call to a function that returns a GType.