Typedefs | |
typedef enum sp_relation_type | sp_relation_type |
Enumerations | |
enum | sp_relation_type { SP_RELATION_TYPE_UNKNOWN = 0, SP_RELATION_TYPE_NONE = 1, SP_RELATION_TYPE_UNIDIRECTIONAL = 2, SP_RELATION_TYPE_BIDIRECTIONAL = 3 } |
Functions | |
const char * | sp_user_canonical_name (sp_user *user) |
const char * | sp_user_display_name (sp_user *user) |
bool | sp_user_is_loaded (sp_user *user) |
sp_error | sp_user_add_ref (sp_user *user) |
sp_error | sp_user_release (sp_user *user) |
typedef enum sp_relation_type sp_relation_type |
User relation type
enum sp_relation_type |
Increase the reference count of an user
[in] | user | The user object |
const char* sp_user_canonical_name | ( | sp_user * | user | ) |
Get a pointer to a string representing the user's canonical username.
[in] | user | The Spotify user whose canonical username you would like a string representation of |
const char* sp_user_display_name | ( | sp_user * | user | ) |
Get a pointer to a string representing the user's displayable username. If there is no difference between the canonical username and the display name, or if the library does not know about the display name yet, the canonical username will be returned.
[in] | user | The Spotify user whose displayable username you would like a string representation of |
bool sp_user_is_loaded | ( | sp_user * | user | ) |
Get load status for a user object. Before it is loaded, only the user's canonical username is known.
[in] | user | Spotify user object |