diff options
author | Alexander Larsson <alexl@redhat.com> | 2008-01-10 14:04:49 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2008-01-10 14:04:49 +0000 |
commit | 289e4ac8ee5c3e3c9bd8c1bbf1c0d8ff9b72c836 (patch) | |
tree | df331cab7d8c7dfe0aeb4d8b9017aef12cd863a6 /daemon/gvfsjobcreatemonitor.h | |
parent | fd7a19aeea4f0c9482a06d83eedf88a5f706861f (diff) | |
download | gvfs-289e4ac8ee5c3e3c9bd8c1bbf1c0d8ff9b72c836.tar.gz |
Remove freeing of initial ref after delay.
2008-01-10 Alexander Larsson <alexl@redhat.com>
* daemon/gvfsmonitor.c:
Remove freeing of initial ref after delay.
* daemon/gvfsjobcreatemonitor.[ch]:
Set the monitor as result here, not only the obj path.
Nicer and allows better lifetime handling.
If returning a obj ref, keep the monitor alive for
some time to allow a subscribe request.
* daemon/gvfsbackendcomputer.c:
* daemon/gvfsbackendtrash.c:
Update to the new APIs
svn path=/trunk/; revision=1090
Diffstat (limited to 'daemon/gvfsjobcreatemonitor.h')
-rw-r--r-- | daemon/gvfsjobcreatemonitor.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/daemon/gvfsjobcreatemonitor.h b/daemon/gvfsjobcreatemonitor.h index fd5d4a66..f3277d34 100644 --- a/daemon/gvfsjobcreatemonitor.h +++ b/daemon/gvfsjobcreatemonitor.h @@ -27,6 +27,7 @@ #include <gvfsjob.h> #include <gvfsjobdbus.h> #include <gvfsbackend.h> +#include <gvfsmonitor.h> G_BEGIN_DECLS @@ -47,8 +48,8 @@ struct _GVfsJobCreateMonitor GVfsBackend *backend; char *filename; GFileMonitorFlags flags; - - char *object_path; + + GVfsMonitor *monitor; }; struct _GVfsJobCreateMonitorClass @@ -58,12 +59,12 @@ struct _GVfsJobCreateMonitorClass GType g_vfs_job_create_monitor_get_type (void) G_GNUC_CONST; -GVfsJob *g_vfs_job_create_monitor_new (DBusConnection *connection, - DBusMessage *message, - GVfsBackend *backend, - gboolean is_directory); -void g_vfs_job_create_monitor_set_obj_path (GVfsJobCreateMonitor *job, - const char *object_path); +GVfsJob *g_vfs_job_create_monitor_new (DBusConnection *connection, + DBusMessage *message, + GVfsBackend *backend, + gboolean is_directory); +void g_vfs_job_create_monitor_set_monitor (GVfsJobCreateMonitor *job, + GVfsMonitor *monitor); G_END_DECLS |