[tracker/media-art-enhancements: 13/16] libtracker-miner: Rename media art update functions
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/media-art-enhancements: 13/16] libtracker-miner: Rename media art update functions
- Date: Wed, 14 Dec 2011 16:32:41 +0000 (UTC)
commit 70bbb325f93023d467aa129e2d1043a130272766
Author: Sam Thursfield <sam thursfield codethink co uk>
Date: Mon Oct 24 18:00:23 2011 +0100
libtracker-miner: Rename media art update functions
tracker_media_art_remove_add() => tracker_media_art_queue_removal()
tracker_media_art_check_clean() => tracker_media_art_execute_queue()
src/libtracker-miner/tracker-media-art.c | 12 ++++++------
src/libtracker-miner/tracker-media-art.h | 5 +++--
src/libtracker-miner/tracker-miner-fs.c | 4 ++--
3 files changed, 11 insertions(+), 10 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-media-art.c b/src/libtracker-miner/tracker-media-art.c
index 04ce1ae..9d6c30b 100644
--- a/src/libtracker-miner/tracker-media-art.c
+++ b/src/libtracker-miner/tracker-media-art.c
@@ -146,20 +146,20 @@ on_error:
}
}
/**
- * tracker_media_art_remove_add:
+ * tracker_media_art_queue_removal:
* @uri: URI of the file
* @mime_type: mime-type of the file
*
* Adds a new request to tell the media art subsystem that @uri was removed.
- * Stored requests can be processed with tracker_media_art_check_cleanup().
+ * Stored requests can be processed with tracker_media_art_execute_queue().
*
* Returns: #TRUE if successfully stored to be reported, #FALSE otherwise.
*
* Since: 0.10.4
*/
gboolean
-tracker_media_art_remove_add (const gchar *uri,
- const gchar *mime_type)
+tracker_media_art_queue_removal (const gchar *uri,
+ const gchar *mime_type)
{
/* mime_type can be NULL */
@@ -200,14 +200,14 @@ on_timer_destroy (gpointer data)
}
/**
- * tracker_media_art_check_cleanup:
+ * tracker_media_art_queue_execute:
*
* Process all stored media art requests.
*
* Since: 0.10.4
*/
void
-tracker_media_art_check_cleanup (TrackerSparqlConnection *connection)
+tracker_media_art_execute_queue (TrackerSparqlConnection *connection)
{
if (had_any && timer_id == 0) {
diff --git a/src/libtracker-miner/tracker-media-art.h b/src/libtracker-miner/tracker-media-art.h
index 794e8a0..4b26d7a 100644
--- a/src/libtracker-miner/tracker-media-art.h
+++ b/src/libtracker-miner/tracker-media-art.h
@@ -28,9 +28,10 @@
G_BEGIN_DECLS
-gboolean tracker_media_art_remove_add (const gchar *uri,
+gboolean tracker_media_art_queue_removal (const gchar *uri,
const gchar *mime_type);
-void tracker_media_art_check_cleanup (TrackerSparqlConnection *connection);
+void tracker_media_art_execute_queue (TrackerSparqlConnection *connection);
+
G_END_DECLS
#endif /* __LIBTRACKER_MINER_MEDIA_ART_H__ */
diff --git a/src/libtracker-miner/tracker-miner-fs.c b/src/libtracker-miner/tracker-miner-fs.c
index a46e5d3..a379770 100644
--- a/src/libtracker-miner/tracker-miner-fs.c
+++ b/src/libtracker-miner/tracker-miner-fs.c
@@ -1280,7 +1280,7 @@ item_remove (TrackerMinerFS *fs,
flags = TRACKER_BULK_MATCH_EQUALS;
} else {
tracker_thumbnailer_remove_add (uri, NULL);
- tracker_media_art_remove_add (uri, NULL);
+ tracker_media_art_queue_removal (uri, NULL);
}
/* FIRST:
@@ -2144,7 +2144,7 @@ item_queue_handlers_cb (gpointer user_data)
process_stop (fs);
tracker_thumbnailer_send ();
- tracker_media_art_check_cleanup (tracker_miner_get_connection (TRACKER_MINER (fs)));
+ tracker_media_art_execute_queue (tracker_miner_get_connection (TRACKER_MINER (fs)));
} else {
/* Flush any possible pending update here */
tracker_sparql_buffer_flush (fs->priv->sparql_buffer,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]