Re: [Rhythmbox-devel] Watched Directories
- From: Ernst Persson <ernstp gmail com>
- To: rhythmbox-devel gnome org
- Subject: Re: [Rhythmbox-devel] Watched Directories
- Date: Thu, 20 Oct 2005 11:25:01 +0200
2005/10/20, James Livingston <jrl ids org au>:
> AFAIK there is no way to find out when a file is closed, but we can wait
> until it has stopped changing to do the load. I've made it queue the
> file loads for later, and they won't occur until the file hasn't been
> changed for 5-10 seconds.
I don't know about the fam api, but inotify sure knows about this!
#define IN_CLOSE_WRITE 0x00000008 /* Writtable file was closed */
#define IN_CLOSE_NOWRITE 0x00000010 /* Unwrittable file closed */
/* helper events */
#define IN_CLOSE (IN_CLOSE_WRITE | IN_CLOSE_NOWRITE) /* close */
Hope that helps,
//ernst
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]