2009-03-01 15:38:58 +00:00
|
|
|
/*
|
2014-01-19 01:09:44 +00:00
|
|
|
* This file Copyright (C) 2009-2014 Mnemosyne LLC
|
2009-03-01 15:38:58 +00:00
|
|
|
*
|
2014-01-21 03:10:30 +00:00
|
|
|
* It may be used under the GNU GPL versions 2 or 3
|
2014-01-19 01:09:44 +00:00
|
|
|
* or any future license endorsed by Mnemosyne LLC.
|
2009-03-01 15:38:58 +00:00
|
|
|
*
|
2009-06-05 17:52:02 +00:00
|
|
|
* $Id$
|
2009-03-01 15:38:58 +00:00
|
|
|
*/
|
|
|
|
|
2014-01-19 01:09:44 +00:00
|
|
|
#ifndef DTR_WATCH_H
|
|
|
|
#define DTR_WATCH_H
|
|
|
|
|
2009-03-01 15:38:58 +00:00
|
|
|
typedef struct dtr_watchdir dtr_watchdir;
|
|
|
|
|
2012-12-05 17:29:46 +00:00
|
|
|
typedef void (dtr_watchdir_callback)(tr_session * session, const char * dir, const char * file);
|
2009-03-01 15:38:58 +00:00
|
|
|
|
2012-12-05 17:29:46 +00:00
|
|
|
dtr_watchdir* dtr_watchdir_new (tr_session * session, const char * dir, dtr_watchdir_callback cb);
|
2009-03-01 15:38:58 +00:00
|
|
|
|
2012-12-05 17:29:46 +00:00
|
|
|
void dtr_watchdir_update (dtr_watchdir * w);
|
2009-03-01 15:38:58 +00:00
|
|
|
|
2012-12-05 17:29:46 +00:00
|
|
|
void dtr_watchdir_free (dtr_watchdir * w);
|
2009-03-01 15:38:58 +00:00
|
|
|
|
|
|
|
#endif
|