Sha256: b2473f9722629bea058bf6677ed319a1a38491f2ccba3ce70cbd0809e587b7fc
Contents?: true
Size: 1.06 KB
Versions: 1
Compression:
Stored size: 1.06 KB
Contents
#include <stdlib.h> #include <string.h> #include "libmockspotify.h" /*** MockSpotify API ***/ sp_album * mocksp_album_create(char *name, sp_artist *artist, int year, byte * cover, int type, int loaded, int available) { sp_album *a; a = malloc(sizeof(sp_album)); memset(a, 0, sizeof(sp_album)); strcpy(a->name, name); a->artist = artist; a->year = year; memcpy(a->cover, cover, 20); a->type = type; a->loaded = loaded; a->available = available; return a; } /*** Spotify API ***/ void sp_album_add_ref(sp_album *a) { } void sp_album_release(sp_album *a) { } bool sp_album_is_loaded(sp_album *a) { return a->loaded; } bool sp_album_is_available(sp_album *a) { return a->available; } sp_artist * sp_album_artist(sp_album *a) { return a->artist; } const byte * sp_album_cover(sp_album *a) { return a->cover; } const char * sp_album_name(sp_album *a) { return a->name; } int sp_album_year(sp_album *a) { return a->year; } sp_albumtype sp_album_type(sp_album *a) { return a->type; }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mockspotify-0.0.1 | src/album.c |