summaryrefslogtreecommitdiff
path: root/telepathy-glib/proxy.c
Commit message (Collapse)AuthorAgeFilesLines
* TpProxy: finish_all_requests: don't leak copied GQueueSimon McVittie2014-03-131-1/+1
| | | | | Bug: https://bugs.freedesktop.org/show_bug.cgi?id=76000 Reviewed-by: Guillaume Desmottes
* prepare 0.19.9 releasetelepathy-glib-0.19.9Xavier Claessens2012-09-111-2/+2
|
* TpProxy: Deprecate _borrow_ functions and replace them by _get_Xavier Claessens2012-09-051-4/+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
* Release 0.19.0telepathy-glib-0.19.0Xavier Claessens2012-05-091-1/+1
|
* Add comment explaining what it means if feature->prepare_async is NULLXavier Claessens2012-05-091-0/+3
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=49215
* Merge branch 'telepathy-glib-0.18'Guillaume Desmottes2012-04-271-11/+45
|\
| * Retry to prepare features which failed because of a missing conn ifaceGuillaume Desmottes2012-04-271-11/+45
| | | | | | | | | | | | | | | | | | If we try to prepare a connection feature before the connection is connected, the preparation may fall if a required interface hasn't been announced yet by the CM. So, we give those features a second chance to be prepared when the connection has been connected. https://bugs.freedesktop.org/show_bug.cgi?id=42981
* | TP_NUM_DBUS_ERRORS, TP_NUM_CONTACT_FEATURES: addSimon McVittie2012-04-121-1/+10
|/ | | | | | NUM_TP_CONTACT_FEATURES and NUM_TP_DBUS_ERRORS aren't introspectable. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=46470
* proxy: sprinkle some checked casts around.Will Thompson2012-03-301-5/+5
| | | | | | | | | | It's really tempting fate to just blindly cast objects to their expected type, particularly objects as fundamental as TpProxy, and particularly from callbacks. In this case, my incorrect refcounting was causing me to steal a reference; causing a perplexing crash in tp_proxy_poll_features() when tp_proxy_emit_invalidated() got called from an idle after I'd stolen its reference. Putting the checked cast in at the beginning made it much easier to spot the nature of the bug.
* Use GLib's default marshaller everywhereSimon McVittie2012-03-011-6/+2
| | | | | | | | In contrast to the previous commit, I'm just using NULL here - telepathy-glib has an explicit dependency on GLib 2.30. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=46523 Reviewed-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
* Consistently use G_PARAM_STATIC_STRINGS for propertiesSimon McVittie2012-02-091-12/+6
| | | | | | | | 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>
* Add config.h include in all source filesXavier Claessens2012-02-061-0/+2
|
* Simplify _finish() functions using _tp_implement_finish_*Xavier Claessens2011-12-141-13/+1
|
* Use _unref instead of _free _destroy when possible.Xavier Claessens2011-11-161-2/+2
| | | | | | | | | | | 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/
* Document the meaning of TpProxy::invalidatedDanielle Madeley2011-10-311-0/+8
| | | | | It turns out that when we talked about invalidation, people didn't actually know what this meant.
* Version 0.15.5telepathy-glib-0.15.5Will Thompson2011-08-171-1/+1
|
* Add skip annotation for NUM_FOOXavier Claessens2011-08-171-1/+1
| | | | g-i now understands it (GNOME bug #652712)
* *ClientFactory, Proxy: Documentation nits.Will Thompson2011-07-201-2/+2
|
* Add _tp_proxy_ensure_factoryXavier Claessens2011-07-201-1/+26
|
* Add TpSimpleClientFactoryXavier Claessens2011-07-201-0/+45
| | | | | | This is a new object replacing TpBasicProxyFactory but can construct any known TpProxy subclasses, guarantee their uniqueness per object-path and keep a user-defined set of features to prepare on them.
* Make DEBUG a no-op static inline with --disable-debug.Will Thompson2011-07-071-4/+0
|
* Fix set-but-not-used warnings with --disable-debugWill Thompson2011-06-231-0/+4
| | | | Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
* Move TpProxyFeature as public API (#31583)Guillaume Desmottes2011-05-121-3/+29
|
* rename check_feature_validity to assert_feature_validityGuillaume Desmottes2011-05-121-2/+2
|
* improve commentGuillaume Desmottes2011-05-121-1/+3
|
* use a GQueue to store prepare_requestsGuillaume Desmottes2011-05-121-18/+23
|
* factor out finish_all_requestsGuillaume Desmottes2011-05-121-7/+15
|
* fix some phrasingGuillaume Desmottes2011-05-121-5/+6
|
* coding style fixGuillaume Desmottes2011-05-121-1/+3
|
* Add TpProxyFeature.prepare_before_signalling_connected_asyncGuillaume Desmottes2011-05-121-0/+98
| | | | | It allows a prepared feature to be notified to update itself before announcing that the connection is now CONNECTED.
* core features can't have explicit dependsGuillaume Desmottes2011-05-121-0/+13
| | | | This avoid cyclic references and weird corner cases.
* retry preparing failed dep, if possibleGuillaume Desmottes2011-05-121-8/+29
|
* add TpProxyFeature.can_retryGuillaume Desmottes2011-05-121-1/+4
|
* prepare core features of subclass before core of super classesGuillaume Desmottes2011-05-121-1/+1
|
* split prepare_core into one TpProxyPrepareRequest per subclassGuillaume Desmottes2011-05-121-35/+44
| | | | | We'll need this to guarantee that super class core features are prepared before subclass ones.
* Actually fall through when the core features are unwantedGuillaume Desmottes2011-05-121-1/+0
| | | | We want starting preparing those as they block every other features.
* Wait that core has been prepared before checking requested interfacesGuillaume Desmottes2011-05-121-8/+9
| | | | If core is not prepared, tp_proxy_has_interface_by_id() will also fail.
* remove TpProxyFeature.start_preparing()Guillaume Desmottes2011-05-121-46/+5
|
* add depends support to featureGuillaume Desmottes2011-05-121-14/+120
|
* factor out request_is_complete()Guillaume Desmottes2011-05-121-46/+56
|
* TpProxyFeature: add interfaces_neededGuillaume Desmottes2011-05-121-2/+41
|
* Add an async variant of start_preparingGuillaume Desmottes2011-05-121-2/+38
|
* start preparing features in tp_proxy_poll_features()Guillaume Desmottes2011-05-121-30/+91
| | | | | | | We don't want to start prepare features right away but when all the requierements are done. This include core features, so now we don't call prepare functions until core features have been prepared.
* tp_proxy_poll_features: move checking for invalidation inside the loopSimon McVittie2011-05-121-18/+24
| | | | | | | We call out to user code from the loop, which could conceivably invalidate us. Also hold a ref for the duration of the loop, for the same reason.
* Split FEATURE_STATE_WANTED from FEATURE_STATE_TRYINGSimon McVittie2011-05-121-4/+8
| | | | For now, we go straight to calling the callback, i.e. TRYING.
* FeatureState: comment the valuesSimon McVittie2011-05-121-0/+5
|
* tp_proxy_prepare_async: don't start anything if we were already invalidatedSimon McVittie2011-05-121-5/+8
|
* TpProxyFeature: use a proper private structGuillaume Desmottes2011-05-121-0/+5
|
* version 0.14.4telepathy-glib-0.14.4Olli Salli2011-04-151-1/+1
|
* tp_proxy_add_interfaces: interfaces is a 'const gchar * const *'Guillaume Desmottes2011-04-121-2/+2
|