mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-25 12:06:12 -05:00
Add Remote pairing info storage facility
This brings schema_version to 6.
This commit is contained in:
16
src/db.h
16
src/db.h
@@ -47,6 +47,12 @@ struct query_params {
|
||||
char buf[32];
|
||||
};
|
||||
|
||||
struct pairing_info {
|
||||
char *remote_id;
|
||||
char *name;
|
||||
char *guid;
|
||||
};
|
||||
|
||||
struct media_file_info {
|
||||
char *path;
|
||||
uint32_t index;
|
||||
@@ -245,6 +251,9 @@ struct watch_enum {
|
||||
char *
|
||||
db_escape_string(const char *str);
|
||||
|
||||
void
|
||||
free_pi(struct pairing_info *pi, int content_only);
|
||||
|
||||
void
|
||||
free_mfi(struct media_file_info *mfi, int content_only);
|
||||
|
||||
@@ -359,6 +368,13 @@ db_pl_disable_bymatch(char *path, char *strip, uint32_t cookie);
|
||||
int
|
||||
db_pl_enable_bycookie(uint32_t cookie, char *path);
|
||||
|
||||
/* Remotes */
|
||||
int
|
||||
db_pairing_add(struct pairing_info *pi);
|
||||
|
||||
int
|
||||
db_pairing_fetch_byguid(struct pairing_info *pi);
|
||||
|
||||
/* Inotify */
|
||||
int
|
||||
db_watch_clear(void);
|
||||
|
||||
Reference in New Issue
Block a user