mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-25 20:16:14 -05:00
Add storage of inotify watch info
This commit is contained in:
21
src/db.h
21
src/db.h
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user