[evolution-ews] EBookBackendSqliteDB: add e_book_backend_sqlitedb_remove_contact
- From: Chenthill Palanisamy <pchen src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-ews] EBookBackendSqliteDB: add e_book_backend_sqlitedb_remove_contact
- Date: Thu, 19 May 2011 10:34:51 +0000 (UTC)
commit 8759d2a564b98686444909946101c48d5216054e
Author: Sean Finney <seanius seanius net>
Date: Thu May 19 15:45:18 2011 +0530
EBookBackendSqliteDB: add e_book_backend_sqlitedb_remove_contact
src/addressbook/e-book-backend-sqlitedb.c | 13 +++++++++++++
src/addressbook/e-book-backend-sqlitedb.h | 4 ++++
2 files changed, 17 insertions(+), 0 deletions(-)
---
diff --git a/src/addressbook/e-book-backend-sqlitedb.c b/src/addressbook/e-book-backend-sqlitedb.c
index aa195fe..3a0a38f 100644
--- a/src/addressbook/e-book-backend-sqlitedb.c
+++ b/src/addressbook/e-book-backend-sqlitedb.c
@@ -613,6 +613,19 @@ e_book_backend_sqlitedb_add_contacts (EBookBackendSqliteDB *ebsdb,
}
gboolean
+e_book_backend_sqlitedb_remove_contact (EBookBackendSqliteDB *ebsdb,
+ const gchar *folderid,
+ const gchar *uid,
+ GError **error)
+{
+ GSList l;
+ l.data = (char*)uid; /* Won't modify it, I promise :) */
+ l.next = NULL;
+ return e_book_backend_sqlitedb_remove_contacts (ebsdb, folderid, &l,
+ error);
+}
+
+gboolean
e_book_backend_sqlitedb_remove_contacts (EBookBackendSqliteDB *ebsdb,
const gchar *folderid,
GSList *uids,
diff --git a/src/addressbook/e-book-backend-sqlitedb.h b/src/addressbook/e-book-backend-sqlitedb.h
index d4ef140..d179a70 100644
--- a/src/addressbook/e-book-backend-sqlitedb.h
+++ b/src/addressbook/e-book-backend-sqlitedb.h
@@ -82,6 +82,10 @@ gboolean e_book_backend_sqlitedb_add_contacts (EBookBackendSqliteDB *ebsdb,
GSList *contacts,
gboolean partial_content,
GError **error);
+gboolean e_book_backend_sqlitedb_remove_contact (EBookBackendSqliteDB *ebsdb,
+ const gchar *folderid,
+ const gchar *uid,
+ GError **error);
gboolean e_book_backend_sqlitedb_remove_contacts (EBookBackendSqliteDB *ebsdb,
const gchar *folderid,
GSList *uids,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]