Move event support in the inotify backend

This adds support for G_FILE_MONITOR_SEND_MOVED events when requested by
the user to the inotify backend. Last part to fix bug #547890.
Based heavily on a patch by Martyn Russel <martyn@lanedo.com>.
This commit is contained in:
Christian Kellner
2010-02-18 15:49:58 +01:00
parent 239af97712
commit 48f74cab39
8 changed files with 86 additions and 18 deletions

View File

@@ -30,9 +30,10 @@ typedef struct
gchar* filename;
gboolean cancelled;
gpointer user_data;
gboolean pair_moves;
} inotify_sub;
inotify_sub* _ih_sub_new (const gchar* dirname, const gchar* filename, gpointer user_data);
inotify_sub* _ih_sub_new (const gchar* dirname, const gchar* filename, gboolean pair_moves, gpointer user_data);
void _ih_sub_free (inotify_sub* sub);
#endif /* __INOTIFY_SUB_H */