GDBusProxy: factor out async_init_data_set_name_owner
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Mon, 8 Aug 2011 17:29:20 +0000 (18:29 +0100)
committerDavid Zeuthen <davidz@redhat.com>
Mon, 15 Aug 2011 16:50:01 +0000 (12:50 -0400)
commit5909cb10315ca0f331ccb97225f008c11ca0d9d7
tree3b7e7d3afedb235a3cd8d7d4bf9397f18e60c303
parent03ae974f7cc992450907401f45e7de645caff141
GDBusProxy: factor out async_init_data_set_name_owner

This removes the need for async_init_get_name_owner_cb to cope with being
called without a real GAsyncResult, and will simplify the addition of
correct thread-locking.

In async_init_data_set_name_owner, use the name_owner parameter instead
of the corresponding member of GDBusProxyPrivate, partly to reduce
pointer-chasing but mainly to avoid needing to hold the lock.

Signed-off-by: David Zeuthen <davidz@redhat.com>
gio/gdbusproxy.c