summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzmike <michael.blumenkrantz@gmail.com>2014-02-05 21:56:14 -0500
committerzmike <michael.blumenkrantz@gmail.com>2014-02-05 21:56:14 -0500
commitf13b29d02f43f53055a8783d7ffc6da6a832c272 (patch)
tree0b78609e09f26344e34d940b495ad7c0dc61eb6a
parentc87900a9c1271d450afd6d6ff4b405fd7f1ccb5a (diff)
add data_get
-rw-r--r--excetra.c7
-rw-r--r--excetra.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/excetra.c b/excetra.c
index 07a2cf7..238ace7 100644
--- a/excetra.c
+++ b/excetra.c
@@ -168,6 +168,13 @@ lyricwiki_request_cancel(Excetra_Req *req)
168 if (req) excetra_req_free(req); 168 if (req) excetra_req_free(req);
169} 169}
170 170
171void *
172lyricwiki_request_data_get(const Excetra_Req *req)
173{
174 EINA_SAFETY_ON_NULL_RETURN_VAL(req, NULL);
175 return req->data;
176}
177
171Excetra_Req * 178Excetra_Req *
172lyricwiki_request(const char *artist, const char *song, Excetra_Result_Cb cb, const void *data) 179lyricwiki_request(const char *artist, const char *song, Excetra_Result_Cb cb, const void *data)
173{ 180{
diff --git a/excetra.h b/excetra.h
index fff83ea..279ef2a 100644
--- a/excetra.h
+++ b/excetra.h
@@ -8,3 +8,4 @@ EAPI int excetra_init(void);
8EAPI void excetra_shutdown(void); 8EAPI void excetra_shutdown(void);
9EAPI Excetra_Req *lyricwiki_request(const char *artist, const char *song, Excetra_Result_Cb cb, const void *data); 9EAPI Excetra_Req *lyricwiki_request(const char *artist, const char *song, Excetra_Result_Cb cb, const void *data);
10EAPI void lyricwiki_request_cancel(Excetra_Req *req); 10EAPI void lyricwiki_request_cancel(Excetra_Req *req);
11EAPI void *lyricwiki_request_data_get(const Excetra_Req *req);