summaryrefslogtreecommitdiff
path: root/telepathy-glib
Commit message (Collapse)AuthorAgeFilesLines
...
* | TpHandleRepo: Deprecate tp_handle_set/get_qdata()Xavier Claessens2012-09-112-0/+9
| | | | | | | | https://bugs.freedesktop.org/show_bug.cgi?id=50886
* | Deprecate tp_channel_request_new() and tp_channel_dispatch_operation_new()Xavier Claessens2012-09-114-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Those constructors are useless because TpChannelRequest and TpChannelDispatchOperation objects are created internally by TpBaseClient and friends. Applications using the high-level API should never need them. Those constructors are harmful because they do not take a factory and they need a factory internally. This means that creating our own TpChannelRequest/TpChannelDispatchOperation will create our own account/connection/channel/whatever objects instead of sharing them. Internally we already have _new_with_factory() variant. https://bugs.freedesktop.org/show_bug.cgi?id=49372
* | Do not include single headers in codegenXavier Claessens2012-09-101-0/+1
| | | | | | | | | | | | | | Headers to use is caller's choice, like that tp-glib internal can use single headers while extensions can use global header. This also move command line headers to generated .h instead of .c
* | properties-mixin.h: This header should be include separatelyXavier Claessens2012-09-101-0/+2
| |
* | Introspect util.[ch]Simon McVittie2012-09-073-41/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Most of it is useless in non-C languages, so we (skip) it. However, tp_simple_async_report_success_in_idle(), tp_utf8_make_valid(), tp_escape_as_identifier() and the user-action-time functions all seem like useful things to have. The tp_g_value_slice_new() family confuses g-ir-scanner (which goes looking for a TpGValueSlice type), but they're all (skip)'d anyway, so #ifdef them out. 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=54543
* | TpContact: Deprecate _get_ functions returning a GList and replace them by _dup_Xavier Claessens2012-09-052-0/+31
| | | | | | | | | | | | 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
* | TpTextChannel: Deprecate _get_ functions returning a GList and replace them ↵Xavier Claessens2012-09-052-4/+36
| | | | | | | | | | | | | | | | 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
* | TpBaseClient: Deprecate _get_ functions returning a GList and replace them ↵Xavier Claessens2012-09-052-4/+64
| | | | | | | | | | | | | | | | 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-052-2/+46
| | | | | | | | | | | | | | | | 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
* | TpContactSearchResult: Deprecate _get_ functions returning a GList and ↵Xavier Claessens2012-09-052-0/+30
| | | | | | | | | | | | | | | | replace 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
* | TpConnection: Deprecate _get_ functions returning a GList and replace them ↵Xavier Claessens2012-09-052-1/+35
| | | | | | | | | | | | | | | | 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
* | TpProtocol: Deprecate _borrow_ functionsXavier Claessens2012-09-052-8/+9
| | | | | | | | | | | | | | | | | | | | | | 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_protocol_get_params() because it is internally an unintrospectable C-array, so a proper container needs to be created. In next branch they are internally in a GPtrArray so a _get_ function could be added.
* | TpDispatchOperation: Deprecate _borrow_ functions and replace them by _get_Xavier Claessens2012-09-052-0/+115
| | | | | | | | | | | | | | | | | | | | 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-0510-19/+94
| | | | | | | | | | | | | | | | | | | | | | 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.
* | TpProxy: Deprecate _borrow_ functions and replace them by _get_Xavier Claessens2012-09-053-5/+39
| | | | | | | | | | | | 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
* | Modernise GList usageXavier Claessens2012-09-055-33/+10
| | | | | | | | We can use g_list_free_full and (_tp_)g_list_copy_deep in more places
* | Util: Add _tp_g_list_copy_deep()Xavier Claessens2012-09-052-0/+24
| | | | | | | | | | | | This implementation is less optimized than g_list_copy_deep() because it iterates the list twice. But it will be removed once we depend on glib 2.34
* | Fix retrieving the remove contact from a MediaDescription hashSjoerd Simons2012-09-031-7/+8
| | | | | | | | | | | | | | | | Correctly get the remote contact handle out of the MediaDescription hash, it's an a{sv} not string => uint32. Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=54425
* | Fix incorrect error on UpdateLocalMediaDescriptionSjoerd Simons2012-09-031-8/+0
| | | | | | | | | | | | | | Remove the code that errors out a local description update if there is *any* outstanding offer. A bit later in the same function a proper check is done to see if there is a offer for the update contact, which is correct.
* | Prepare 0.19.8 releasetelepathy-glib-0.19.8Xavier Claessens2012-08-314-1/+8
| |
* | Set the ChannelRequests immutable properties when observer channelsSjoerd Simons2012-08-301-1/+8
| | | | | | | | | | | | | | When ObserveChannels comes in we are given all the immutable properties for the statisfied requests straight away, so lets use them as well. This prevents poor application authors from being confused about their hints not coming through in their observer.
* | Set the ChannelRequests immutable properties when handling channelsSjoerd Simons2012-08-301-1/+10
| | | | | | | | | | | | | | When HandleChannels comes in we are given all the immutable properties for the statisfied requests straight away, so lets use them as well. This prevents poor application authors from being confused about their hints not coming through in their handler.
* | Add tp_account_channel_request_set_hint APISjoerd Simons2012-08-302-0/+40
| | | | | | | | | | And an easy and bindable API to add a single hint to the hints dictionary
* | version 0.19.7telepathy-glib-0.19.7Jonny Lamb2012-08-274-6/+14
| | | | | | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
* | Merge branch 'base-channel-disappear'Jonny Lamb2012-08-272-5/+168
|\ \
| * | base-channel: add support for 'disappearing' channelsJonny Lamb2012-06-052-5/+168
| | | | | | | | | | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
* | | Don't have a second copy of the TpBaseConnection typedefSimon McVittie2012-08-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | N1570 (C11 final draft) §6.7.3 says this usage is valid[1] so modern gcc doesn't have an option to even warn about it, but this is a recent change to the C standard, and older compilers like the one in the Android NDK treat it as a fatal error. [1] "a typedef name may be redefined to denote the same type as it currently does, provided that type is not a variably modified type" Bug: https://bugs.freedesktop.org/show_bug.cgi?id=53100 Reviewed-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
* | | tp_account_dup_storage_identifier_variant: deal with storage_identifier ↵Guillaume Desmottes2012-08-071-0/+3
| | | | | | | | | | | | | | | | | | being NULL https://bugs.freedesktop.org/show_bug.cgi?id=53201
* | | prepare 0.19.6telepathy-glib-0.19.6Guillaume Desmottes2012-08-064-2/+8
| | |
* | | add tp_account_manager_can_set_default()Guillaume Desmottes2012-08-022-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | When creating/editing an account, the Ubuntu Online Accounts panel loads the relevant plugin dynamically. In order to work properly, this plugin has to define the default AM with some features. But tp_account_manager_set_default() can only be called once, later calls resulting in critical warnings. By using tp_account_manager_can_set_default() the plugin can check if the default AM has already be defined or not.
* | | BaseChannel: assert that the subclass sets TargetHandleTypeWill Thompson2012-07-311-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | If the subclass sets the channel's target handle, then it had better set the target handle type in the klass. I got this wrong when porting Idle to TpBaseChannel. Fist-bumped-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
* | | Fix a race in _gen/reentrant-methods.listRoss Burton2012-07-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Very occasionally, a parallel build will fail like this: | Making all in telepathy-glib | make[2]: Entering directory `/buildarea1/yocto-autobuilder/yocto-slave/nightly-x86/build/build/tmp/work/i586-poky-linux/telepathy-glib-0.19.2-r0/telepathy-glib-0.19.2/telepathy-glib' | /bin/mkdir -p _gen | ( cd . && cat versions/0.7.0.abi [...] versions/0.19.2.abi ) | \ | /bin/grep '^tp_cli_.*_run_.*' > _gen/reentrant-methods.list.tmp | /bin/sh: line 1: _gen/reentrant-methods.list.tmp: No such file or directory | make[2]: *** [_gen/reentrant-methods.list] Error 1 It's doing the mkdir and the subshell in parallel, when the mkdir should be done first. Add an explicit dependency on spec-stamp to reentrant-methods.list to ensure the ordering. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=52480 Reviwewed-by: Jonny Lamb <jonny.lamb@collabora.co.uk> Reviwewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
* | | Merge branch 'telepathy-glib-0.18'Xavier Claessens2012-07-241-3/+5
|\ \ \ | | |/ | |/|
| * | tp_connection_upgrade_contacts(): Use special trick of ready_enough_for_contactsXavier Claessens2012-07-241-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | TpConnection itself wants to prepare TpContacts before being officially CONNECTED. This was already the case for self contact. Use the same trick for blocked contacts. https://bugs.freedesktop.org/show_bug.cgi?id=52441
* | | TpAccountManager: set the requested presence on newly created accountsXavier Claessens2012-07-241-0/+10
| | |
* | | set UNRELEASED versionstelepathy-glib-0.19.4Guillaume Desmottes2012-07-195-7/+7
| | |
* | | prepare 0.19.4Guillaume Desmottes2012-07-192-0/+6
| | |
* | | add tp_account_request_set_storage_provider()Guillaume Desmottes2012-07-172-0/+50
| | |
* | | account-request: add missing 'service' getterGuillaume Desmottes2012-07-171-0/+4
| | |
* | | base-connection: return from RequestHandles if called with no namesJonny Lamb2012-07-101-0/+8
| | | | | | | | | | | | | | | | | | | | | Since we added async handle normalization functions, RequestHandles(1, []) would just not return at all. Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
* | | Fix some gtk-doc errorsXavier Claessens2012-07-102-8/+3
| | |
* | | base-{connection,protocol}: be sure to add new class members to the end of ↵Jonny Lamb2012-07-092-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the struct I already removed the padding (in c14d25b4bf4 and 436219789348) so just re-arrange the struct. D'oh. Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
* | | Merge branch '51441-get-interfaces'Jonny Lamb2012-07-068-88/+257
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: telepathy-glib/base-connection-manager.c Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
| * | | base-protocol: add get_interfaces_array vfunc to class structJonny Lamb2012-07-052-8/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a lot like 74bd945252, but we're having to deal with another older get_interfaces vfunc, which is slightly annoying. Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
| * | | fixup! bcde9c87323454f946be989825b2dc74f61d16f7Jonny Lamb2012-07-051-1/+0
| | | | | | | | | | | | | | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
| * | | base-connection: simplify add_interfacesJonny Lamb2012-07-051-16/+2
| | | | | | | | | | | | | | | | | | | | | | | | Calling set_size on the GArray is a little overkill. Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
| * | | base-connection{,-manager}: seal old interfaces membersJonny Lamb2012-07-054-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | gtk-doc gets confused, so they've been removed from the docs. See also: e8f9a27a388e21 Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
| * | | base-connection: add get_interfaces… vfunc to class structJonny Lamb2012-07-053-60/+103
| | | | | | | | | | | | | | | | | | | | | | | | This is a lot like 74bd945252. Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
| * | | base-room-config: fix old comment referring to TpBaseChannelClass.interfacesJonny Lamb2012-07-051-2/+2
| | | | | | | | | | | | | | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
| * | | base-connection-manager: add get_interfaces vfunc to class structJonny Lamb2012-07-042-5/+71
| | | | | | | | | | | | | | | | | | | | | | | | This is a lot like 74bd945252. Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>