diff options
Diffstat (limited to 'src/lyrics.h')
-rw-r--r-- | src/lyrics.h | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/src/lyrics.h b/src/lyrics.h index 34380c344..613ccb338 100644 --- a/src/lyrics.h +++ b/src/lyrics.h @@ -21,11 +21,7 @@ #include <glib.h> -enum lyrics_loader_result { - LYRICS_SUCCESS, - LYRICS_BUSY, - LYRICS_FAILED -}; +typedef void (*lyrics_callback_t)(const GString *result, void *data); struct lyrics_loader; @@ -34,15 +30,10 @@ void lyrics_init(void); void lyrics_deinit(void); struct lyrics_loader * -lyrics_load(const char *artist, const char *title); +lyrics_load(const char *artist, const char *title, + lyrics_callback_t callback, void *callback_data); void lyrics_free(struct lyrics_loader *loader); -enum lyrics_loader_result -lyrics_result(struct lyrics_loader *loader); - -const GString * -lyrics_get(struct lyrics_loader *loader); - #endif |