summaryrefslogtreecommitdiff
path: root/libmediaart/cache.h
diff options
context:
space:
mode:
authorMartyn Russell <martyn@lanedo.com>2014-09-10 11:26:11 +0100
committerMartyn Russell <martyn@lanedo.com>2014-10-17 11:23:44 +0100
commitcdc1168b4fadeb2f8bb37c34c2b533eb2837934c (patch)
tree4f0922f9b0ff3c812e5807264c936a934e166873 /libmediaart/cache.h
parent969517fa94c76e300b4cbaeb8d03e23204907917 (diff)
downloadlibmediaart-cdc1168b4fadeb2f8bb37c34c2b533eb2837934c.tar.gz
cache: Added media_art_remove_async() and _finish()
Part of this API changes makes the media_art_get_{path|file}() APIs not do i/o operations like creating the cache directory. This is now done in media_art_process_new(). https://bugzilla.gnome.org/show_bug.cgi?id=724879
Diffstat (limited to 'libmediaart/cache.h')
-rw-r--r--libmediaart/cache.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/libmediaart/cache.h b/libmediaart/cache.h
index e5bf6b8..be18e04 100644
--- a/libmediaart/cache.h
+++ b/libmediaart/cache.h
@@ -37,7 +37,6 @@ gboolean media_art_get_path (const gchar *artist,
const gchar *uri,
gchar **cache_path,
gchar **local_uri);
-
gboolean media_art_get_file (const gchar *artist,
const gchar *title,
const gchar *prefix,
@@ -46,7 +45,19 @@ gboolean media_art_get_file (const gchar *artist,
GFile **local_file);
gboolean media_art_remove (const gchar *artist,
- const gchar *album);
+ const gchar *album,
+ GCancellable *cancellable,
+ GError **error);
+void media_art_remove_async (const gchar *artist,
+ const gchar *album,
+ gint io_priority,
+ GObject *source_object,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+gboolean media_art_remove_finish (GObject *source_object,
+ GAsyncResult *result,
+ GError **error);
G_END_DECLS