summaryrefslogtreecommitdiff
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* contact-list: don't crash if 'd' is NULLGuillaume Desmottes2014-05-261-2/+6
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=79006
* examples: explicitly ask for TelepathyGLib-0.12Simon McVittie2014-01-0711-0/+28
| | | | | | | TelepathyGLib-1 isn't going to be fully compatible. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=49737 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
* Stop calling g_type_init()Simon McVittie2014-01-0716-23/+0
| | | | | | | | It was deprecated in GLib 2.36, and we already have a hard dependency on that version. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=71048 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
* TpProtocol: add high-level API for the Addressing interfaceSimon McVittie2013-11-111-0/+68
| | | | | Bug: https://bugs.freedesktop.org/show_bug.cgi?id=71048 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
* tp_protocol_identify_account_async: add and testSimon McVittie2013-11-111-1/+1
| | | | | | | | To make the test a little more interesting and a little more realistic, we normalize the 'account' parameter to lower-case. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=71048 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
* inspect-cm.py: on errors, exit rather than blocking foreverSimon McVittie2013-11-111-10/+13
| | | | | Bug: https://bugs.freedesktop.org/show_bug.cgi?id=71048 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
* Use tp_value_array_free instead of g_value_array_freeSimon McVittie2013-09-261-1/+1
| | | | | Bug: https://bugs.freedesktop.org/show_bug.cgi?id=69849 Reviewed-by: Xavier Claessens <xavier.claessens@collabora.co.uk>
* Make more use of tp_value_array_unpack, tp_value_array_buildSimon McVittie2013-09-263-40/+27
| | | | | | | | | | | 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>
* Revert "Copy contact-list.c into the ${builddir} so the XInclude in the docs ↵Simon McVittie2013-09-241-21/+0
| | | | | | | works" This reverts commit ff26814b44720336cdcb298ddf45aea2edcfae0a. It has a race condition which *sometimes* breaks distcheck :-(
* Copy contact-list.c into the ${builddir} so the XInclude in the docs worksSimon McVittie2013-09-241-0/+21
| | | | | | | | This fixes the long-standing bug that if telepathy-glib was built out-of-tree, the documentation had "FIXME: MISSING XINCLUDE CONTENT" instead of the example. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=69753
* inspect-cm example: allow inspecting all CMsSimon McVittie2013-09-241-78/+186
| | | | | | | | Also print a bit more information about protocols, and allow requesting timestamps in debug output. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=68390 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
* Revert "Copy contact-list.c into the ${builddir} so the XInclude in the docs ↵Guillaume Desmottes2013-09-241-16/+0
| | | | | | works" This reverts commit ca33bfa878946a1ad904e0dcd88455e989223707.
* Copy contact-list.c into the ${builddir} so the XInclude in the docs worksSimon McVittie2013-09-241-0/+16
| | | | | | | | | This fixes the long-standing bug that if telepathy-glib was built out-of-tree, the documentation had "FIXME: MISSING XINCLUDE CONTENT" instead of the example. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=69753 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
* C text handler: comment why the subclass / feature-prep worksSimon McVittie2013-09-061-3/+3
| | | | | Bug: https://bugs.freedesktop.org/show_bug.cgi?id=54061 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
* Python text handler: ensure that we get a Tp.AutomaticClientFactorySimon McVittie2013-09-061-2/+2
| | | | | | | | | | We want a Tp.TextChannel, not just a Tp.Channel, and the easiest way to do that is to use Tp.AccountManager.dup() (which provides a Tp.AutomaticClientFactory). Tp.SimpleHandler.new() is deprecated, for approximately this reason. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=54061 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
* extended-client: comment that we're going behind MC's backSimon McVittie2013-09-061-1/+4
| | | | | Bug: https://bugs.freedesktop.org/show_bug.cgi?id=54061 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
* tube examples: use g_message(), not g_debug()Simon McVittie2013-09-064-42/+42
| | | | | | | | g_debug() is invisible unless you set G_MESSAGES_DEBUG, which is unhelpful when smoke-testing example code. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=54061 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
* tube offering examples: don't dump core on invalid argumentsSimon McVittie2013-09-062-2/+9
| | | | | Bug: https://bugs.freedesktop.org/show_bug.cgi?id=54061 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
* tube offerers: use an automatic client factorySimon McVittie2013-09-062-2/+2
| | | | | | | | The TpSimpleClientFactory base class doesn't use channel-type-specific subclasses, which these examples rely on. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=54061 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
* Use AC_PROG_MKDIR_P instead of deprecated AM_PROG_MKDIR_PSimon McVittie2013-06-117-8/+8
| | | | | | | | | | This means we define MKDIR_P instead of mkdir_p - adjust. Strictly speaking this requires Autoconf 2.59d, but 2.60 is hardly a new innovation (it was released in 2006). Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Reviewed-by: Xavier Claessens <xavier.claessens@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=65517
* Add a simple JavaScript debug-client which collects debug logsSimon McVittie2013-06-102-1/+241
| | | | | Bug: https://bugs.freedesktop.org/show_bug.cgi?id=65518 Acked-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
* Merge branch 'telepathy-glib-0.20'Simon McVittie2013-04-021-1/+1
|\
| * contact list C-example: fix iteratingMaksim Melnikau2013-04-021-1/+1
| | | | | | | | | | | | Signed-off-by: Maksim Melnikau <maxposedon@gmail.com> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=62968 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
* | add missing config.h includesGuillaume Desmottes2013-01-085-0/+10
| | | | | | | | | | g_type_init() has been deprecated in GLib master. By including config.h we avoid the deprecation warning as it contains GLib's versions macros.
* | del unused magic import in ft-handler.py exampleMaksim Melnikau2013-01-071-2/+0
|/ | | | | | | | | 1) it isn't used now 2) it is prevents run example on machines, which hasn't magic 3) magic(libmagic) isn't popular in various linux distributions Signed-off-by: Maksim Melnikau <maxposedon@gmail.com> Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
* TpTextChannel: Deprecate _get_ functions returning a GList and replace them ↵Xavier Claessens2012-09-051-2/+2
| | | | | | | | by _dup_ New transfer and naming policy has been discussed in https://bugs.freedesktop.org/show_bug.cgi?id=39189 and is documented there: http://telepathy.freedesktop.org/wiki/Style/TelepathyGLib
* TpAccountManager: Deprecate _get_ functions returning a GList and replace ↵Xavier Claessens2012-09-051-4/+5
| | | | | | | | them by _dup_ New transfer and naming policy has been discussed in https://bugs.freedesktop.org/show_bug.cgi?id=39189 and is documented there: http://telepathy.freedesktop.org/wiki/Style/TelepathyGLib
* TpDispatchOperation: Deprecate _borrow_ functions and replace them by _get_Xavier Claessens2012-09-051-1/+1
| | | | | | | | | | New transfer and naming policy has been discussed in https://bugs.freedesktop.org/show_bug.cgi?id=39189 and is documented there: http://telepathy.freedesktop.org/wiki/Style/TelepathyGLib There is intentionally no tp_dispatch_operation_get_immutable_properties() since those are internal implementation detail. Individual property getters should be enough.
* TpChannel: Deprecate _borrow_ functions and replace them by _get_Xavier Claessens2012-09-051-13/+2
| | | | | | | | | | | New transfer and naming policy has been discussed in https://bugs.freedesktop.org/show_bug.cgi?id=39189 and is documented there: http://telepathy.freedesktop.org/wiki/Style/TelepathyGLib _tp_channel_get_immutable_properties() is kept internal because we don't want to expose more dbus-glib structures. tp_channel_dup_immutable_properties() is added, it returns a GVariant and should be needed only to TpChannel subclasses.
* example protocols: update to use get_interfaces_array vfuncJonny Lamb2012-07-055-37/+12
| | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
* example & test connections: update to use new get_interfaces… vfuncJonny Lamb2012-07-055-5/+81
| | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
* Examples: stop using tp_account/connection/channel_new()Xavier Claessens2012-07-036-92/+39
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=49372
* Remove useless TP_SEAL_ENABLEXavier Claessens2012-06-0510-10/+0
|
* Examples: disable single includeXavier Claessens2012-06-0510-0/+10
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=49384
* Example extensions: include global headerXavier Claessens2012-06-051-1/+1
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=49384
* Examples: do no use message-internal.hXavier Claessens2012-06-051-7/+9
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=49384
* Examples: Stop using tp_connection_manager_protocol_*Xavier Claessens2012-06-041-25/+18
| | | | They are soon to be deprecated
* Examples: Stop using tp_list_connection_managers()Xavier Claessens2012-06-041-18/+15
| | | | It is soon to be deprecated
* Fix regression in unit testsXavier Claessens2012-06-041-1/+2
| | | | The bug was introduced in commit 97755a8cef146519f688054d1bafe22f40bc17ff
* Compile all examples with TP_SEAL_ENABLESimon McVittie2012-06-0411-2/+20
| | | | The only changes needed were in extended-client.c.
* Use accessors rather than accessing TpBaseConnection fields directlySimon McVittie2012-06-0410-38/+55
|
* Deprecate tp_handle(s)_ref/unref, tp_handle(s)_client_hold/release and ↵Xavier Claessens2012-05-102-22/+1
| | | | | | tp_connection_unref_handles() They are no-op now, so we can safely remove them all
* Implement ChatState in test echo channelXavier Claessens2012-05-091-0/+15
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=49215
* Examples: do not use soon to be deprecated APIsXavier Claessens2012-05-092-85/+54
|
* All examples: follow the meta-header policySimon McVittie2012-05-0744-82/+42
| | | | | Reviewed-by: Xavier Claessens <xavier.claessens@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=49384
* Stop using TP_ERRORSSimon McVittie2012-05-0213-28/+28
| | | | We deprecated this in 0.11.
* TpConnection: Deprecate _get_self_handle()Xavier Claessens2012-05-021-18/+10
| | | | New code should be using _get_self_contact()
* TpChannel: Deprecate all TpHandle APIs that have TpContact variantXavier Claessens2012-04-271-7/+9
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=49213
* Install remaining Python examplesSimon McVittie2012-04-123-2/+4
| | | | | Bug: https://bugs.freedesktop.org/show_bug.cgi?id=48504 Reviewed-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
* Optionally install most of the Python examplesSimon McVittie2012-04-121-0/+20
| | | | | | | We already optionally install many of the C examples. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=48504 Reviewed-by: Jonny Lamb <jonny.lamb@collabora.co.uk>