[tracker/gdbus-porting-rebased: 50/65] miner-fs: Cleaning up some code, adding comments
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/gdbus-porting-rebased: 50/65] miner-fs: Cleaning up some code, adding comments
- Date: Wed, 12 Jan 2011 11:19:59 +0000 (UTC)
commit 20ea5bec3709f65e8f2aad1f2973e988ebec291c
Author: Philip Van Hoof <philip codeminded be>
Date: Thu Jan 6 13:20:32 2011 +0100
miner-fs: Cleaning up some code, adding comments
src/miners/fs/tracker-miner-files.c | 14 +++++++++++---
1 files changed, 11 insertions(+), 3 deletions(-)
---
diff --git a/src/miners/fs/tracker-miner-files.c b/src/miners/fs/tracker-miner-files.c
index 61f04df..7b6e791 100644
--- a/src/miners/fs/tracker-miner-files.c
+++ b/src/miners/fs/tracker-miner-files.c
@@ -1932,9 +1932,13 @@ extractor_get_embedded_metadata_cancel (GCancellable *cancellable,
{
GError *error;
- /* Cancel extractor call */
+ /* TODO: Cancel extractor call
+ * Isn't this as simple as g_cancellable_cancel (cancellable) now after the
+ * GDBus port? The original dbus-glib code didn't have this so I have not
+ * yet implemented it as part of the GDBus port. */
- error = g_error_new_literal (miner_files_error_quark, 0, "Embedded metadata extraction was cancelled");
+ error = g_error_new_literal (miner_files_error_quark, 0,
+ "Embedded metadata extraction was cancelled");
tracker_miner_fs_file_notify (TRACKER_MINER_FS (data->miner), data->file, error);
process_file_data_free (data);
@@ -1982,7 +1986,7 @@ get_metadata_fast_cb (void *buffer,
}
} else {
if (buffer_size) {
- /* sparql is stored just after preupdate in the original buffer */
+ /* sparql is stored just after preupdate in the original buffer */
sparql = preupdate + strlen (preupdate) + 1;
}
@@ -2031,6 +2035,10 @@ get_metadata_fast_async (GDBusConnection *connection,
NULL)));
g_dbus_message_set_unix_fd_list (message, fd_list);
+ /* Note from Philip to reviewer:
+ * I'm not sure if we have to close pipefd[1] here, or if the unref of
+ * fd_list will do it. */
+
close (pipefd[1]);
g_object_unref (fd_list);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]