aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ephy-file-helpers.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ephy-file-helpers.h')
-rw-r--r--lib/ephy-file-helpers.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/ephy-file-helpers.h b/lib/ephy-file-helpers.h
index 2e5b7f111..709ff77b0 100644
--- a/lib/ephy-file-helpers.h
+++ b/lib/ephy-file-helpers.h
@@ -25,6 +25,7 @@
#include <glib.h>
#include <libgnomevfs/gnome-vfs-mime-handlers.h>
+#include <libgnomevfs/gnome-vfs-ops.h>
G_BEGIN_DECLS
@@ -35,6 +36,10 @@ typedef enum
EPHY_MIME_PERMISSION_UNKNOWN = 3
} EphyMimePermission;
+typedef struct _EphyFileMonitor EphyFileMonitor;
+typedef void (* EphyFileMonitorFunc) (EphyFileMonitor*, const char*, gpointer);
+typedef gboolean (* EphyFileMonitorDelayFunc) (EphyFileMonitor*, gpointer);
+
const char *ephy_file (const char *filename);
const char *ephy_dot_dir (void);
@@ -78,6 +83,15 @@ gboolean ephy_file_launch_handler (const char *mime_type,
const char *address,
guint32 user_time);
+EphyFileMonitor *ephy_file_monitor_add (const char *uri,
+ GnomeVFSMonitorType monitor_type,
+ guint delay,
+ EphyFileMonitorFunc callback,
+ EphyFileMonitorDelayFunc delay_func,
+ gpointer user_data);
+
+void ephy_file_monitor_cancel (EphyFileMonitor *monitor);
+
G_END_DECLS
#endif /* EPHY_FILE_HELPERS_H */