2009-03-01 15:38:58 +00:00
|
|
|
#ifndef DTR_WATCH_H
|
|
|
|
#define DTR_WATCH_H
|
|
|
|
|
|
|
|
/*
|
2010-01-04 21:00:47 +00:00
|
|
|
* This file Copyright (C) 2009-2010 Mnemosyne LLC
|
2009-03-01 15:38:58 +00:00
|
|
|
*
|
2010-12-27 19:18:17 +00:00
|
|
|
* This file is licensed by the GPL version 2. Works owned by the
|
2009-03-01 15:38:58 +00:00
|
|
|
* Transmission project are granted a special exemption to clause 2(b)
|
|
|
|
* so that the bulk of its code can remain under the MIT license.
|
|
|
|
* This exemption does not extend to derived works not owned by
|
|
|
|
* the Transmission project.
|
|
|
|
*
|
2009-06-05 17:52:02 +00:00
|
|
|
* $Id$
|
2009-03-01 15:38:58 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
typedef struct dtr_watchdir dtr_watchdir;
|
|
|
|
|
|
|
|
typedef void( dtr_watchdir_callback )( tr_session * session, const char * dir, const char * file );
|
|
|
|
|
|
|
|
dtr_watchdir* dtr_watchdir_new( tr_session * session, const char * dir, dtr_watchdir_callback cb );
|
|
|
|
|
|
|
|
void dtr_watchdir_update( dtr_watchdir * w );
|
|
|
|
|
|
|
|
void dtr_watchdir_free( dtr_watchdir * w );
|
|
|
|
|
|
|
|
#endif
|