[Telepathy-commits] merge: telepathy-glib

Merge Monkey monkey at collabora.co.uk
Mon Jan 14 03:34:01 PST 2008


Merge to:

  telepathy-glib

From:

  /home/smcv/public_html/darcs/tp-glib-smcv

Changes:

  Simon McVittie <simon.mcvittie at collabora.co.uk>
    TpProxy: don't forcibly fail method calls because of application-specific invalidation; also defer callback due to DBusGProxy destruction until main loop is re-entered.

This changes the behaviour of a closed channel or disconnected connection,
for instance. Previously, we'd force the method call to fail when we got the
Closed or StatusChanged signal, then ignore the real reply when it came in.

We now allow the reply to method calls that were made before invalidation
to be processed as usual, although method calls made after invalidation will
fail immediately.

When a DBusGProxy is destroyed (when name ownership is lost) we still force the
method call to fail (on the basis that the service has fallen off the bus, so
can't possibly send us a reply any more), but we now defer calling the callback
until an idle handler, for the usual reentrancy reasons.

  Simon McVittie <simon.mcvittie at collabora.co.uk>
    handle-repo-dynamic: if the TpDBusDaemon ever goes to 0 refs, null out the pointer

  Simon McVittie <simon.mcvittie at collabora.co.uk>
    Don't invalidate TpConnection if introspection fails, only if it becomes disconnected

  Simon McVittie <simon.mcvittie at collabora.co.uk>
    TpDynamicHandleRepo: use TpDBusDaemon to track handle-holder life cycle

  Simon McVittie <simon.mcvittie at collabora.co.uk>
    API change: rename tp_proxy_invalidated to _invalidate, rename TpProxy::destroyed to ::invalidated, change arguments of that signal from (GError as POINTER) to (domain as UINT, code as INT, message as STRING) for general sanity

  Simon McVittie <simon.mcvittie at collabora.co.uk>
    Don't invalidate TpChannel just because introspection fails - if we do that, then the library user can't even call Disconnect()

  Simon McVittie <simon.mcvittie at collabora.co.uk>
    glib-client-gen: cope correctly with GValueArray being NULL if there were no 'out' arguments

  Simon McVittie <simon.mcvittie at collabora.co.uk>
    Use the improved MYASSERT macro in tests, to provide extra diagnostics in some cases

  Simon McVittie <simon.mcvittie at collabora.co.uk>
    Correct signature of signal handlers in examples, rename from _died to _invalidated to keep terminology consistent

  Simon McVittie <simon.mcvittie at collabora.co.uk>
    TpProxySignalConnection: refcount, rather than doing pseudo-refcounting based on whether connected in dbus-glib + number of invocations queued.
We need to be referenced once per invocation on the stack, too.

  Simon McVittie <simon.mcvittie at collabora.co.uk>
    Add an improved MYASSERT() macro to tests/

  Simon McVittie <simon.mcvittie at collabora.co.uk>
    Pass the DBusGProxy to tp_proxy_pending_call_v0_new


More information about the Telepathy-commits mailing list