summaryrefslogtreecommitdiff
path: root/daemon/trashlib/trashdir.h
diff options
context:
space:
mode:
authorRyan Lortie <desrt@desrt.ca>2008-12-12 05:33:16 +0000
committerRyan Lortie <ryanl@src.gnome.org>2008-12-12 05:33:16 +0000
commit1394c3a853596f9a08275e49f8b70f2a4174738f (patch)
tree85518fe7303fa98704b7ce38b32ac77b0d68ba6d /daemon/trashlib/trashdir.h
parent297cefc8d3215f6400f260ff6ba54a6925bdb471 (diff)
downloadgvfs-1394c3a853596f9a08275e49f8b70f2a4174738f.tar.gz
New trash:/ backend.
2008-12-11 Ryan Lortie <desrt@desrt.ca> New trash:/ backend. * daemon/trashlib: implementation of the reader side of the fd.o trash specification * daemon/gvfsbackendtrash.[ch]: rewrite based on trashlib * configure.ac: add daemon/trashlib/Makefile to output * daemon/Makefile.am: add trashlib/ subdir and include in trash backend libraries svn path=/trunk/; revision=2132
Diffstat (limited to 'daemon/trashlib/trashdir.h')
-rw-r--r--daemon/trashlib/trashdir.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/daemon/trashlib/trashdir.h b/daemon/trashlib/trashdir.h
new file mode 100644
index 00000000..5612f9ba
--- /dev/null
+++ b/daemon/trashlib/trashdir.h
@@ -0,0 +1,36 @@
+/*
+ * Copyright © 2008 Ryan Lortie
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of version 3 of the GNU General Public License as
+ * published by the Free Software Foundation.
+ */
+
+#ifndef _trashdir_h_
+#define _trashdir_h_
+
+#include <gio/gio.h>
+
+#include "trashitem.h"
+
+typedef struct OPAQUE_TYPE__TrashDir TrashDir;
+
+typedef void (*trash_dir_ui_hook) (TrashDir *dir,
+ GFile *directory);
+
+TrashDir *trash_dir_new (TrashRoot *root,
+ gboolean watching,
+ gboolean is_homedir,
+ const char *mount_point,
+ const char *format,
+ ...);
+
+void trash_dir_free (TrashDir *dir);
+
+void trash_dir_watch (TrashDir *dir);
+void trash_dir_unwatch (TrashDir *dir);
+void trash_dir_rescan (TrashDir *dir);
+
+void trash_dir_set_ui_hook (trash_dir_ui_hook ui_hook);
+
+#endif /* _trashdir_h_ */