source: trunk/daemon/watch.h @ 7979

Last change on this file since 7979 was 7979, checked in by charles, 13 years ago

(trunk daemon) #1882: take KyleK's suggestion of using inotify when possible. As he writes, "the opendir() approach will basically prevent my NAS drives to go to standby."

File size: 779 bytes
Line 
1#ifndef DTR_WATCH_H
2#define DTR_WATCH_H
3
4/*
5 * This file Copyright (C) 2009 Charles Kerr <charles@transmissionbt.com>
6 *
7 * This file is licensed by the GPL version 2.  Works owned by the
8 * Transmission project are granted a special exemption to clause 2(b)
9 * so that the bulk of its code can remain under the MIT license.
10 * This exemption does not extend to derived works not owned by
11 * the Transmission project.
12 *
13 * $Id:$
14 */
15
16typedef struct dtr_watchdir dtr_watchdir;
17
18typedef void( dtr_watchdir_callback )( tr_session * session, const char * dir, const char * file );
19
20dtr_watchdir* dtr_watchdir_new( tr_session * session, const char * dir, dtr_watchdir_callback cb );
21
22void dtr_watchdir_update( dtr_watchdir * w );
23
24void dtr_watchdir_free( dtr_watchdir * w );
25
26#endif
Note: See TracBrowser for help on using the repository browser.