diff options
author | Alexander Larsson <alexl@redhat.com> | 2007-10-08 14:48:28 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2007-10-08 14:48:28 +0000 |
commit | 6f6ab7302de0257589be2e6c3c9b93a581694a88 (patch) | |
tree | a864f6d0d5cd2ca0ea8e01d2cea87b4995fb2ea6 /client/gvfsdaemondbus.c | |
parent | 52e63ca2a3371cbaf24d8189ec80abd24dc0fd99 (diff) | |
download | gvfs-6f6ab7302de0257589be2e6c3c9b93a581694a88.tar.gz |
Add defines for monitoring
2007-10-08 Alexander Larsson <alexl@redhat.com>
* common/gvfsdaemonprotocol.h:
Add defines for monitoring
* client/Makefile.am:
* client/gdaemondirectorymonitor.[ch]:
* client/gdaemonfilemonitor.[ch]:
* client/gdaemonfile.c:
Add daemon directory monitor and initial work on file monitor
* client/gdaemonfileenumerator.c:
Make path_counter private
Return DBUS_HANDLER_RESULT_HANDLED when handling messages.
* client/gdaemonvfs.[ch]:
Make _g_mount_ref_ref "public"
* client/gvfsdaemondbus.c:
Handle NULL callbacks for async calls
* daemon/Makefile.am:
* daemon/gvfsbackend.[ch]:
* daemon/gvfsjobcreatemonitor.[ch]:
Add create_dir_monitor and create_file_monitor.
Add g_vfs_backend_get_daemon
* daemon/gvfsmonitor.[ch]:
Helper code for monitors
* daemon/gvfsbackendtrash.c:
Implement directory monitor for trash dirs
svn path=/trunk/; revision=971
Diffstat (limited to 'client/gvfsdaemondbus.c')
-rw-r--r-- | client/gvfsdaemondbus.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/client/gvfsdaemondbus.c b/client/gvfsdaemondbus.c index 943ee67b..fa9e88e1 100644 --- a/client/gvfsdaemondbus.c +++ b/client/gvfsdaemondbus.c @@ -366,9 +366,10 @@ static void async_call_finish (AsyncDBusCall *async_call, DBusMessage *reply) { - async_call->callback (reply, async_call->connection, - async_call->io_error, - async_call->callback_data); + if (async_call->callback) + async_call->callback (reply, async_call->connection, + async_call->io_error, + async_call->callback_data); if (async_call->connection) dbus_connection_unref (async_call->connection); |