Add storage of inotify watch info

This commit is contained in:
Julien BLACHE
2009-06-10 18:11:11 +02:00
parent bfa2488343
commit a9697eccdf
2 changed files with 236 additions and 0 deletions

View File

@@ -175,6 +175,14 @@ struct db_media_file_info {
char *album_artist;
};
struct watch_info {
int wd;
char *path;
uint32_t cookie;
int toplevel;
int libidx;
};
char *
db_escape_string(const char *str);
@@ -254,6 +262,19 @@ db_pl_update_all(void);
void
db_pl_delete(int id);
/* Inotify */
int
db_watch_clear(void);
int
db_watch_add(struct watch_info *wi);
int
db_watch_delete_bywd(struct watch_info *wi);
int
db_watch_get_bywd(struct watch_info *wi);
int
db_perthread_init(void);