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) |
| const char * | sp_user_full_name (sp_user *user) |
| const char * | sp_user_picture (sp_user *user) |
| sp_relation_type | sp_user_relation_type (sp_session *session, sp_user *user) |
| void | sp_user_add_ref (sp_user *user) |
| void | sp_user_release (sp_user *user) |
| enum sp_relation_type |
| void sp_user_add_ref | ( | sp_user * | user | ) |
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 |
| const char* sp_user_full_name | ( | sp_user * | user | ) |
Get a pointer to a string representing the user's full name as returned from social networks.
| [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 |
| const char* sp_user_picture | ( | sp_user * | user | ) |
Get a pointer to an URL for an picture representing the user
| [in] | user | The Spotify user whose displayable username you would like a string representation of |
| sp_relation_type sp_user_relation_type | ( | sp_session * | session, | |
| sp_user * | user | |||
| ) |
Get relation type for a given user
| [in] | session | Session |
| [in] | user | The Spotify user you want to query relation type for |
| void sp_user_release | ( | sp_user * | user | ) |
Decrease the reference count of an user
| [in] | user | The user object |