mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-25 03:56:21 -05:00
[raop] Add support for Apple TV device verification, required by tvOS 10.2 (fix for issue #377)
- also change how speakers are saved/retrieved from the db - add generic authorization methods in outputs.c and player.c - let filescanner read *.verification files (containing PIN) - configure options to enable and disable, since libsodium is required
This commit is contained in:
13
src/db.h
13
src/db.h
@@ -8,6 +8,7 @@
|
||||
|
||||
#include <sqlite3.h>
|
||||
|
||||
#include "outputs.h"
|
||||
|
||||
enum index_type {
|
||||
I_NONE,
|
||||
@@ -675,18 +676,12 @@ db_admin_get(const char *key);
|
||||
int
|
||||
db_admin_delete(const char *key);
|
||||
|
||||
/* Speakers */
|
||||
/* Speakers/outputs */
|
||||
int
|
||||
db_speaker_save(uint64_t id, int selected, int volume, const char *name);
|
||||
db_speaker_save(struct output_device *device);
|
||||
|
||||
int
|
||||
db_speaker_get(uint64_t id, int *selected, int *volume);
|
||||
|
||||
int
|
||||
db_speaker_auth_save(uint64_t id, const char *authkey);
|
||||
|
||||
char *
|
||||
db_speaker_auth_get(uint64_t id);
|
||||
db_speaker_get(struct output_device *device, uint64_t id);
|
||||
|
||||
void
|
||||
db_speaker_clear_all(void);
|
||||
|
||||
Reference in New Issue
Block a user