[tracker] Propagating error at delete_resource_description
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker] Propagating error at delete_resource_description
- Date: Thu, 29 Oct 2009 09:37:11 +0000 (UTC)
commit 7962d3489e74f99e332921c27ab30b05893a0353
Author: Philip Van Hoof <philip codeminded be>
Date: Thu Oct 29 10:31:50 2009 +0100
Propagating error at delete_resource_description
src/libtracker-data/libtracker-data.vapi | 2 +-
src/libtracker-data/tracker-data-update.c | 6 +++---
src/libtracker-data/tracker-data-update.h | 3 ++-
3 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/src/libtracker-data/libtracker-data.vapi b/src/libtracker-data/libtracker-data.vapi
index c04d30b..b8e1a81 100644
--- a/src/libtracker-data/libtracker-data.vapi
+++ b/src/libtracker-data/libtracker-data.vapi
@@ -34,7 +34,7 @@ namespace Tracker {
public void insert_statement (string subject, string predicate, string object) throws DataError;
public void insert_statement_with_uri (string subject, string predicate, string object) throws DataError;
public void insert_statement_with_string (string subject, string predicate, string object) throws DataError;
- public void delete_resource_description (string uri);
+ public void delete_resource_description (string uri) throws DataError;
public void update_buffer_flush ();
}
}
diff --git a/src/libtracker-data/tracker-data-update.c b/src/libtracker-data/tracker-data-update.c
index 8dc2497..eb41b82 100644
--- a/src/libtracker-data/tracker-data-update.c
+++ b/src/libtracker-data/tracker-data-update.c
@@ -971,7 +971,7 @@ delete_metadata_decomposed (TrackerProperty *property,
/* read existing property values */
old_values = get_old_property_values (property, error);
- if (*error) {
+ if (error && *error) {
g_free (table_name);
return;
}
@@ -1669,7 +1669,7 @@ format_sql_value_as_string (GString *sql,
* annotations (non-embedded/user metadata) stored about the resource.
*/
void
-tracker_data_delete_resource_description (const gchar *uri)
+tracker_data_delete_resource_description (const gchar *uri, GError **error)
{
TrackerDBInterface *iface;
TrackerDBStatement *stmt;
@@ -1761,7 +1761,7 @@ tracker_data_delete_resource_description (const gchar *uri)
tracker_data_delete_statement (uri,
tracker_property_get_uri (*property),
value,
- NULL);
+ error);
}
} else {
diff --git a/src/libtracker-data/tracker-data-update.h b/src/libtracker-data/tracker-data-update.h
index adfd7e6..d373709 100644
--- a/src/libtracker-data/tracker-data-update.h
+++ b/src/libtracker-data/tracker-data-update.h
@@ -53,7 +53,8 @@ typedef void (*TrackerCommitCallback) (gpointer user_data);
GQuark tracker_data_error_quark (void);
/* Metadata */
-void tracker_data_delete_resource_description (const gchar *uri);
+void tracker_data_delete_resource_description (const gchar *uri,
+ GError **error);
void tracker_data_delete_statement (const gchar *subject,
const gchar *predicate,
const gchar *object,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]