Go to the source code of this file.
Function Documentation
Return the current despotify session.
If the session isn't initialized, this function will initialize it and connect to Spotify.
- Returns:
- a pointer to the despotify session, or NULL if it can't be initialized (e.g., if the configuration isn't supplied)
Register a despotify callback.
Despotify calls this e.g., when a track ends.
- Parameters:
-
| cb | the callback |
| cb_data | the data to pass to the callback |
- Returns:
- true if the callback could be registered
Create a MPD tags structure from a spotify track.
- Parameters:
-
| track | the track to convert |
- Returns:
- a pointer to the filled in tags structure
Unregister a despotify callback.
- Parameters:
-
| cb | the callback to unregister. |