Typedefs | |
| typedef void | inboxpost_complete_cb (sp_inbox *result, void *userdata) |
Functions | |
| sp_inbox * | sp_inbox_post_tracks (sp_session *session, const char *user, sp_track *const *tracks, int num_tracks, const char *message, inboxpost_complete_cb *callback, void *userdata) |
| sp_error | sp_inbox_error (sp_inbox *inbox) |
| sp_error | sp_inbox_add_ref (sp_inbox *inbox) |
| sp_error | sp_inbox_release (sp_inbox *inbox) |
| typedef void inboxpost_complete_cb(sp_inbox *result, void *userdata) |
The type of a callback used in sp_inbox_post()
When this callback is called, the sp_track_is_loaded(), sp_album_is_loaded(), and sp_artist_is_loaded() functions will return non-zero for the objects contained in the search result.
| [in] | result | The same pointer returned by sp_search_create() |
| [in] | userdata | The opaque pointer given to sp_search_create() |
Increase the reference count of a inbox result
| [in] | inbox | The inbox result object |
Check if inbox operation returned an error code.
| [in] | inbox | Inbox object |
| sp_inbox* sp_inbox_post_tracks | ( | sp_session * | session, | |
| const char * | user, | |||
| sp_track *const * | tracks, | |||
| int | num_tracks, | |||
| const char * | message, | |||
| inboxpost_complete_cb * | callback, | |||
| void * | userdata | |||
| ) |
Add to inbox
| [in] | session | Session object |
| [in] | user | Canonical username of recipient |
| [in] | tracks | Array of tracks to post |
| [in] | num_tracks | Number of tracks in tracks |
| [in] | message | Message to attach to tracks. UTF-8 |
| [in] | callback | Callback to be invoked when the request has completed |
| [in] | userdata | Userdata passed to callback |