mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-30 09:03:23 -05:00
283df8aa72
- also remove requirement to enter device name in .remote file
49 lines
780 B
C
49 lines
780 B
C
|
|
#ifndef __SPOTIFY_H__
|
|
#define __SPOTIFY_H__
|
|
|
|
#include <event2/event.h>
|
|
#include <event2/buffer.h>
|
|
#include <event2/http.h>
|
|
|
|
int
|
|
spotify_playback_setup(const char *path);
|
|
|
|
int
|
|
spotify_playback_play();
|
|
|
|
int
|
|
spotify_playback_pause();
|
|
|
|
void
|
|
spotify_playback_pause_nonblock(void);
|
|
|
|
int
|
|
spotify_playback_stop(void);
|
|
|
|
void
|
|
spotify_playback_stop_nonblock(void);
|
|
|
|
int
|
|
spotify_playback_seek(int ms);
|
|
|
|
int
|
|
spotify_artwork_get(struct evbuffer *evbuf, char *path, int max_w, int max_h);
|
|
|
|
void
|
|
spotify_oauth_interface(struct evbuffer *evbuf, const char *redirect_uri);
|
|
|
|
void
|
|
spotify_oauth_callback(struct evbuffer *evbuf, struct evkeyvalq *param, const char *redirect_uri);
|
|
|
|
void
|
|
spotify_login(char **arglist);
|
|
|
|
int
|
|
spotify_init(void);
|
|
|
|
void
|
|
spotify_deinit(void);
|
|
|
|
#endif /* !__SPOTIFY_H__ */
|