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/gdaemonfilemonitor.h | |
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/gdaemonfilemonitor.h')
-rw-r--r-- | client/gdaemonfilemonitor.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/client/gdaemonfilemonitor.h b/client/gdaemonfilemonitor.h new file mode 100644 index 00000000..cb607513 --- /dev/null +++ b/client/gdaemonfilemonitor.h @@ -0,0 +1,29 @@ +#ifndef __G_DAEMON_FILE_MONITOR_H__ +#define __G_DAEMON_FILE_MONITOR_H__ + +#include <glib-object.h> +#include <gio/gfilemonitor.h> + +G_BEGIN_DECLS + +#define G_TYPE_DAEMON_FILE_MONITOR (g_daemon_file_monitor_get_type ()) +#define G_DAEMON_FILE_MONITOR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_DAEMON_FILE_MONITOR, GDaemonFileMonitor)) +#define G_DAEMON_FILE_MONITOR_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), G_TYPE_DAEMON_FILE_MONITOR, GDaemonFileMonitorClass)) +#define G_IS_DAEMON_FILE_MONITOR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_DAEMON_FILE_MONITOR)) +#define G_IS_DAEMON_FILE_MONITOR_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_DAEMON_FILE_MONITOR)) + +typedef struct _GDaemonFileMonitor GDaemonFileMonitor; +typedef struct _GDaemonFileMonitorClass GDaemonFileMonitorClass; + +struct _GDaemonFileMonitorClass { + GFileMonitorClass parent_class; +}; + +GType g_daemon_file_monitor_get_type (void) G_GNUC_CONST; + +GFileMonitor* g_daemon_file_monitor_new (void); +char * g_daemon_directory_monitor_get_object_path (GDaemonDirectoryMonitor *monitor); + +G_END_DECLS + +#endif /* __G_DAEMON_FILE_MONITOR_H__ */ |