File: trashdir.h

package info (click to toggle)
gvfs 1.30.4-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 22,580 kB
  • ctags: 12,211
  • sloc: ansic: 113,948; sh: 4,957; xml: 2,353; makefile: 1,601; python: 1,448; sed: 16
file content (36 lines) | stat: -rw-r--r-- 1,278 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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_ */