Add Remote pairing info storage facility

This brings schema_version to 6.
This commit is contained in:
Julien BLACHE
2010-01-30 17:01:27 +01:00
parent 07a71b4e94
commit 762d80e0bb
2 changed files with 171 additions and 2 deletions

View File

@@ -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);