mirror of
https://github.com/owntone/owntone-server.git
synced 2025-02-09 12:48:09 -05:00
parent
182255cac8
commit
61bae6367d
@ -71,17 +71,6 @@ spotify_deinit(void)
|
|||||||
backend->deinit();
|
backend->deinit();
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
|
||||||
spotify_login(const char *username, const char *password, const char **errmsg)
|
|
||||||
{
|
|
||||||
struct spotify_backend *backend = backend_set();
|
|
||||||
|
|
||||||
if (!backend || !backend->login)
|
|
||||||
return -1;
|
|
||||||
|
|
||||||
return backend->login(username, password, errmsg);
|
|
||||||
}
|
|
||||||
|
|
||||||
int
|
int
|
||||||
spotify_login_token(const char *username, const char *token, const char **errmsg)
|
spotify_login_token(const char *username, const char *token, const char **errmsg)
|
||||||
{
|
{
|
||||||
|
@ -30,9 +30,6 @@ spotify_init(void);
|
|||||||
void
|
void
|
||||||
spotify_deinit(void);
|
spotify_deinit(void);
|
||||||
|
|
||||||
int
|
|
||||||
spotify_login(const char *username, const char *password, const char **errmsg);
|
|
||||||
|
|
||||||
int
|
int
|
||||||
spotify_login_token(const char *username, const char *token, const char **errmsg);
|
spotify_login_token(const char *username, const char *token, const char **errmsg);
|
||||||
|
|
||||||
|
@ -54,15 +54,16 @@ timespec_to_ntp(struct timespec *ts, struct ntp_timestamp *ns)
|
|||||||
ns->frac = (uint32_t)((double)ts->tv_nsec * 1e-9 * FRAC);
|
ns->frac = (uint32_t)((double)ts->tv_nsec * 1e-9 * FRAC);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
static inline void
|
static inline void
|
||||||
ntp_to_timespec(struct ntp_timestamp *ns, struct timespec *ts)
|
ntp_to_timespec(struct ntp_timestamp *ns, struct timespec *ts)
|
||||||
{
|
{
|
||||||
/* Seconds since Unix Epoch (1970-01-01) */
|
// Seconds since Unix Epoch (1970-01-01)
|
||||||
ts->tv_sec = ns->sec - NTP_EPOCH_DELTA;
|
ts->tv_sec = ns->sec - NTP_EPOCH_DELTA;
|
||||||
|
|
||||||
ts->tv_nsec = (long)((double)ns->frac / (1e-9 * FRAC));
|
ts->tv_nsec = (long)((double)ns->frac / (1e-9 * FRAC));
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
struct rtp_session *
|
struct rtp_session *
|
||||||
rtp_session_new(struct media_quality *quality, int pktbuf_size, int sync_each_nsamples)
|
rtp_session_new(struct media_quality *quality, int pktbuf_size, int sync_each_nsamples)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user