Sha256: 8ee35427d81c9d5a476bf6be0b8df2291054fa9447571ccb0fad0ad05a1d83ae

Contents?: true

Size: 499 Bytes

Versions: 11

Compression:

Stored size: 499 Bytes

Contents

#include "libmockspotify.h"

sp_user *
mocksp_user_create(const char *canonical_name, const char *display_name, bool is_loaded)
{
    sp_user *user = ALLOC(sp_user);

    user->canonical_name = strclone(canonical_name);
    user->display_name   = strclone(display_name);
    user->is_loaded      = is_loaded;

    return user;
}

DEFINE_REFCOUNTERS_FOR(user);

DEFINE_READER(user, canonical_name, const char *);
DEFINE_READER(user, display_name, const char *);
DEFINE_READER(user, is_loaded, bool);

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
hallon-0.18.0 spec/mockspotify/libmockspotify/src/user.c
hallon-0.17.0 spec/mockspotify/libmockspotify/src/user.c
hallon-0.16.0 spec/mockspotify/libmockspotify/src/user.c
hallon-0.15.0 spec/mockspotify/libmockspotify/src/user.c
hallon-0.14.0 spec/mockspotify/libmockspotify/src/user.c
hallon-0.13.0 spec/mockspotify/libmockspotify/src/user.c
hallon-0.12.0 spec/mockspotify/libmockspotify/src/user.c
hallon-0.11.0 spec/mockspotify/libmockspotify/src/user.c
hallon-0.10.1 spec/mockspotify/libmockspotify/src/user.c
hallon-0.9.1 spec/mockspotify/libmockspotify/src/user.c
hallon-0.9.0 spec/mockspotify/libmockspotify/src/user.c