2014-03-11 23:20:29 +01:00
|
|
|
|
|
|
|
#ifndef __SPOTIFY_H__
|
|
|
|
#define __SPOTIFY_H__
|
|
|
|
|
|
|
|
#include "db.h"
|
2015-10-19 21:15:29 +02:00
|
|
|
#include <event2/event.h>
|
|
|
|
#include <event2/buffer.h>
|
2014-03-11 23:20:29 +01:00
|
|
|
|
|
|
|
int
|
2015-09-12 07:45:31 +02:00
|
|
|
spotify_playback_setup(struct media_file_info *mfi);
|
|
|
|
|
|
|
|
int
|
|
|
|
spotify_playback_play();
|
|
|
|
|
|
|
|
int
|
|
|
|
spotify_playback_pause();
|
2014-03-11 23:20:29 +01:00
|
|
|
|
2014-03-23 21:45:06 +01:00
|
|
|
void
|
|
|
|
spotify_playback_pause_nonblock(void);
|
2014-03-11 23:20:29 +01:00
|
|
|
|
|
|
|
int
|
|
|
|
spotify_playback_stop(void);
|
|
|
|
|
2014-03-23 21:45:06 +01:00
|
|
|
void
|
|
|
|
spotify_playback_stop_nonblock(void);
|
|
|
|
|
2014-03-11 23:20:29 +01:00
|
|
|
int
|
|
|
|
spotify_playback_seek(int ms);
|
|
|
|
|
|
|
|
int
|
|
|
|
spotify_audio_get(struct evbuffer *evbuf, int wanted);
|
|
|
|
|
2014-04-04 23:14:43 +02:00
|
|
|
int
|
|
|
|
spotify_artwork_get(struct evbuffer *evbuf, char *path, int max_w, int max_h);
|
|
|
|
|
2014-03-11 23:20:29 +01:00
|
|
|
void
|
|
|
|
spotify_login(char *path);
|
|
|
|
|
|
|
|
int
|
|
|
|
spotify_init(void);
|
|
|
|
|
|
|
|
void
|
|
|
|
spotify_deinit(void);
|
|
|
|
|
|
|
|
#endif /* !__SPOTIFY_H__ */
|