summaryrefslogtreecommitdiff
path: root/examples/cm/extended/conn.c
AgeCommit message (Collapse)AuthorFilesLines
2014-04-11TpBaseConnection: be a GDBusObjectSkeletonSimon McVittie1-14/+15
2014-03-26Replace trivial uses of DBusGMethodInvocation with GDBusMethodInvocationSimon McVittie1-3/+3
Mostly done with perl/sed one-liners.
2014-02-13TpHandleType has been renmed to TpEntityTypeGuillaume Desmottes1-5/+5
2014-01-13Assume that Conn.I.Requests is supported, and don't put it in InterfacesSimon McVittie1-1/+0
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=50093 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
2014-01-13Adjust telepathy-glib code for removal of Contacts interfaceSimon McVittie1-1/+0
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=50093 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
2014-01-13TpBaseConnection: absorb the functionality of the TpContactsMixinSimon McVittie1-22/+0
It's a somewhat different "shape" - using a fill_contacts_attribute() virtual method - so that it's (hopefully) introspectable. This is a step towards folding Contacts into Connection. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=50093 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
2013-09-26Merge branch 'master' into nextSimon McVittie1-26/+16
Conflicts: NEWS configure.ac docs/reference/telepathy-glib-sections.txt examples/cm/contactlist/conn.c telepathy-glib/account.c telepathy-glib/base-connection-manager.c telepathy-glib/base-connection.c telepathy-glib/group-mixin.c telepathy-glib/message-mixin.c telepathy-glib/presence-mixin.c telepathy-glib/text-mixin.c tests/dbus/channel-dispatch-operation.c tests/dbus/client-channel-factory.c tests/dbus/contacts-slow-path.c tests/dbus/contacts.c tests/dbus/dbus-uninstalled/services/spurious.service tests/dbus/params-cm.c tests/lib/broken-client-types-conn.c tests/lib/contacts-conn.c tools/glib-client-gen.py
2013-09-26Make more use of tp_value_array_unpack, tp_value_array_buildSimon McVittie1-26/+16
As well as being less code, they're not flagged as deprecated. This requires a bit of extra copying, because there's no tp_value_array_unpack_dup() or tp_value_array_build_take(), but it seems worth it. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=69849 Reviewed-by: Xavier Claessens <xavier.claessens@collabora.co.uk>
2012-07-10Merge branch 'master' into nextXavier Claessens1-1/+16
Conflicts: configure.ac telepathy-glib/abi.am telepathy-glib/account.h telepathy-glib/automatic-proxy-factory.c telepathy-glib/base-channel.h telepathy-glib/base-client.c telepathy-glib/base-connection-manager.c telepathy-glib/base-connection-manager.h telepathy-glib/base-connection.c telepathy-glib/client-channel-factory.c telepathy-glib/connection.h tests/dbus/connection-balance.c tests/dbus/protocol-objects.c tests/lib/bug16307-conn.c tests/lib/contacts-conn.c tests/lib/echo-cm.c tests/lib/echo-conn.c
2012-07-05example & test connections: update to use new get_interfaces… vfuncJonny Lamb1-1/+16
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
2012-06-05Merge branch 'master' into nextXavier Claessens1-4/+8
Conflicts: examples/cm/call/conn.c examples/cm/channelspecific/conn.c examples/cm/channelspecific/room.c examples/cm/contactlist/conn.c examples/cm/echo-message-parts/conn.c examples/cm/extended/conn.c telepathy-glib/base-connection.c telepathy-glib/base-connection.h telepathy-glib/base-contact-list.c telepathy-glib/contact-list-channel.c telepathy-glib/presence-mixin.c tests/dbus/channel-request.c tests/dbus/contacts-slow-path.c tests/lib/bug-19101-conn.c tests/lib/bug16307-conn.c tests/lib/echo-conn.c tests/lib/simple-channel-request.c tests/lib/simple-conn.c tests/lib/textchan-group.c
2012-06-04Use accessors rather than accessing TpBaseConnection fields directlySimon McVittie1-3/+7
2012-05-14Don't set TpBaseConnection:self_handle struct member directlyXavier Claessens1-2/+2
The setter does more things
2012-05-07Merge branch 'master' into nextSimon McVittie1-1/+0
Conflicts: docs/reference/telepathy-glib-sections.txt examples/client/approver.c examples/cm/call/call-manager.c examples/cm/call/conn.c examples/cm/channelspecific/conn.c examples/cm/channelspecific/room.c examples/cm/contactlist/conn.c examples/cm/echo-message-parts/chan.c examples/cm/echo-message-parts/conn.c examples/cm/extended/conn.c telepathy-glib/Makefile.am telepathy-glib/base-contact-list-internal.h telepathy-glib/contact.h telepathy-glib/dbus-properties-mixin-internal.h telepathy-glib/telepathy-glib-dbus.h telepathy-glib/telepathy-glib.h tools/glib-client-gen.py
2012-05-07All examples: follow the meta-header policySimon McVittie1-1/+0
Reviewed-by: Xavier Claessens <xavier.claessens@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=49384
2012-05-02Move -dbus library headers into a new telepathy-glib-dbus.h meta-headerSimon McVittie1-0/+1
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=49377 Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Reviewed-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
2012-04-12Merge branch 'master' into nextSimon McVittie1-1/+1
Conflicts: docs/reference/telepathy-glib-sections.txt examples/cm/channelspecific/room.c examples/cm/echo-message-parts/chan.c telepathy-glib/base-contact-list-internal.h telepathy-glib/base-contact-list.c telepathy-glib/connection-handles.c telepathy-glib/contact-list-channel.c telepathy-glib/message.c
2012-04-12Use TP_NUM_… instead of NUM_TP_…Simon McVittie1-1/+1
Based on a patch from Jonny Lamb, updated for current master. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=46470
2012-03-02Merge branch 'master' into next, and update to merged specSimon McVittie1-2/+1
Conflicts: configure.ac docs/reference/telepathy-glib-sections.txt examples/cm/Makefile.am examples/cm/call/example_call.manager examples/future/call-cm/call-channel.c examples/future/call-cm/call-content.c extensions/call-content.xml spec/Account_Manager.xml spec/Call_Content.xml spec/Call_Content_Interface_Audio_Control.xml spec/Call_Content_Interface_Media.xml spec/Call_Content_Interface_Video_Control.xml spec/Call_Content_Media_Description.xml spec/Call_Content_Media_Description_Interface_RTCP_Extended_Reports.xml spec/Call_Content_Media_Description_Interface_RTCP_Feedback.xml spec/Call_Content_Media_Description_Interface_RTP_Header_Extensions.xml spec/Call_Interface_Mute.xml spec/Call_Stream.xml spec/Call_Stream_Endpoint.xml spec/Call_Stream_Interface_Media.xml spec/Channel.xml spec/Channel_Interface_Addressing.xml spec/Channel_Interface_DTMF.xml spec/Channel_Type_Call.xml spec/Connection_Interface_Addressing.xml spec/Connection_Interface_Contact_List.xml spec/Connection_Manager.xml spec/Makefile.am spec/Protocol.xml spec/Protocol_Interface_Addressing.xml spec/all.xml telepathy-glib/abi.am telepathy-glib/channel-factory-iface.c telepathy-glib/channel-request.c telepathy-glib/channel.c telepathy-glib/channel.xml telepathy-glib/signals-marshal.list tests/dbus/Makefile.am tests/dbus/call-example.c tests/lib/bug16307-conn.c tests/lib/echo-channel-manager-conn.c tests/lib/echo-conn.c tests/lib/simple-conn.c Acked-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
2012-02-09Consistently use G_PARAM_STATIC_STRINGS for propertiesSimon McVittie1-2/+1
Many didn't use this shorthand, and some even didn't declare one of the three strings as static (causing GObject to copy it). Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Reviewed-by: Vivek Dasmohapatra <vivek@collabora.co.uk>
2012-02-09Merge branch 'master' into nextSimon McVittie1-0/+2
Conflicts: examples/cm/callable/conn.c examples/cm/callable/connection-manager.c examples/cm/callable/media-channel.c examples/cm/callable/media-manager.c examples/cm/callable/media-stream.c examples/cm/callable/protocol.c telepathy-glib/channel-factory-iface.c telepathy-glib/contact-list-channel.c telepathy-glib/media-interfaces.c telepathy-glib/properties-mixin.c telepathy-glib/text-mixin.c tests/dbus/callable-example.c tests/dbus/connection-getinterfaces-failure.c tests/dbus/connection-inject-bug16307.c tests/dbus/contacts-slow-path.c tests/dbus/text-mixin.c tests/lib/bug16307-conn.c tests/lib/echo-channel-manager-conn.c
2012-02-06Add config.h include in all source filesXavier Claessens1-0/+2
2012-01-31channel-factory-iface: removeJonny Lamb1-2/+2
\o/ Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
2011-11-16Use _unref instead of _free _destroy when possible.Xavier Claessens1-1/+1
Replace g_(ptr_)array_free (foo, TRUE) and g_hash_table_destroy with respectively g_(ptr_)array_unref (foo) and g_hash_table_unref. I used this command to generate this patch: for f in `find -name "*.c"`; do sed -i $f -re 's/g_ptr_array_free \(([^ ,]+), TRUE\)/g_ptr_array_unref \(\1\)/'; done See Danielle's blog for explanation of possible bug _free can do: http://blogs.gnome.org/danni/2011/11/16/mistakes-with-g_value_set_boxed/
2010-07-27fd.o #29174: Extended example CM: use a TpBaseProtocol subclassSimon McVittie1-13/+17
2010-07-27Extended example CM: implement the Contacts and Requests interfacesSimon McVittie1-2/+26
2009-11-23Port examples/ directory to include telepathy-glib.h insteadDanielle Madeley1-4/+1
Compile time increases from an average of 17.2s to 19.0s.
2009-01-16Examples: consistently raise InvalidHandle for invalid identifiersSimon McVittie1-1/+1
2009-01-07extended CM example: rename ExampleConnection to ExampleExtendedConnectionSimon McVittie1-16/+16
2008-10-13All test and example CMs: have RequestHandles raise NotAvailable for invalid ↵Simon McVittie1-1/+1
contact/room IDs The Telepathy spec says "NotAvailable: The given name is not a valid entity of the given type" and "InvalidArgument: The handle type is invalid", so we were wrong to raise InvalidArgument for malformed IDs.
2008-06-06Example CMs: consistently use static stringsSimon McVittie1-1/+1
20080606111507-53eee-51cc7a6721d068d5da4258073d8c63f42271d380.gz
2007-12-19In examples, generate extended interfaces in their own subdirectory (more ↵Simon McVittie1-1/+2
like what you'd do in practice), combining client and service code 20071219141037-53eee-18dfe05d6d64447a53831aa28ce585f447896039.gz
2007-12-17Add example connection manager with a third-party connection interface ↵Simon McVittie1-0/+311
("Connection.Interface.Hats") 20071217193347-53eee-a13a1b2f0992d9a8b635a3e4f63965ce138527f4.gz