src/libmockspotify.h in mockspotify-0.0.1 vs src/libmockspotify.h in mockspotify-0.1.0

- old
+ new

@@ -26,11 +26,11 @@ char name[1024]; sp_artist *artist; int year; byte cover[20]; int type; - int loaded; + bool loaded; bool available; }; struct sp_albumbrowse { sp_album *album; @@ -139,12 +139,12 @@ mocksp_playlist_event(event_type event, sp_playlist *p); /*** Mock object creation ***/ sp_album * -mocksp_album_create(char *name, sp_artist *artist, int year, byte *cover, - int type, int loaded, int available); +mocksp_album_create(const char *name, sp_artist *artist, int year, const byte *cover, + sp_albumtype type, bool loaded, bool available); sp_albumbrowse * mocksp_albumbrowse_create(sp_album *album, bool loaded); sp_artist * @@ -152,17 +152,17 @@ sp_artistbrowse * mocksp_artistbrowse_create(sp_artist *artist, bool loaded); sp_playlist * -mocksp_playlist_create(char *name); +mocksp_playlist_create(const char *name); sp_track * -mocksp_track_create(char *name, int num_artists, sp_artist ** artists, +mocksp_track_create(const char *name, int num_artists, sp_artist ** artists, sp_album * album, int duration, int popularity, - int disc, int index, sp_error error, int loaded); + int disc, int index, sp_error error, bool loaded); sp_user * -mocksp_user_create(char *canonical_name, char *display_name, char *full_name, - char *picture, sp_relation_type relation, bool loaded); +mocksp_user_create(const char *canonical_name, const char *display_name, const char *full_name, + const char *picture, sp_relation_type relation, bool loaded); #endif /* LIBMOCKSPOTIFY_API_H */