gvfs/daemon/trashlib/trashdir.h

37 lines
1.2 KiB
C

/*
* 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_ */