owntone-server/src/spotify.h

47 lines
683 B
C
Raw Normal View History

#ifndef __SPOTIFY_H__
#define __SPOTIFY_H__
#include "db.h"
#ifdef HAVE_LIBEVENT2
# include <event2/event.h>
# include <event2/buffer.h>
#else
# include <event.h>
#endif
int
spotify_playback_play(struct media_file_info *mfi);
void
spotify_playback_pause_nonblock(void);
int
spotify_playback_resume(void);
int
spotify_playback_stop(void);
void
spotify_playback_stop_nonblock(void);
int
spotify_playback_seek(int ms);
int
spotify_audio_get(struct evbuffer *evbuf, int wanted);
2014-04-04 17:14:43 -04:00
int
spotify_artwork_get(struct evbuffer *evbuf, char *path, int max_w, int max_h);
void
spotify_login(char *path);
int
spotify_init(void);
void
spotify_deinit(void);
#endif /* !__SPOTIFY_H__ */