summaryrefslogtreecommitdiff
path: root/daemon/trashlib/dirwatch.h
blob: 58bb7b051a02f1de64631934143a65ceacbf2b52 (plain)
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
/*
 * 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 _dirwatch_h_
#define _dirwatch_h_

#include <gio/gio.h>

typedef void          (*DirWatchFunc)           (gpointer       user_data);
typedef struct          OPAQUE_TYPE__DirWatch    DirWatch;

DirWatch               *dir_watch_new           (GFile         *directory,
                                                 GFile         *topdir,
                                                 DirWatchFunc   create,
                                                 DirWatchFunc   check,
                                                 DirWatchFunc   destroy,
                                                 gpointer       user_data);

void                    dir_watch_check         (DirWatch      *watch);

void                    dir_watch_free          (DirWatch      *watch);

#endif /* _dirwatch_h_ */