[evolution-patches] e_book_async_get_contacts and its query argument
- From: Ross Burton <ross burtonini com>
- To: evolution-patches lists ximian com
- Subject: [evolution-patches] e_book_async_get_contacts and its query argument
- Date: Wed, 10 Dec 2003 10:39:40 +0000
Hi,
e_book_async_get_contacts() currently takes a char* query and generates
a EBookQuery from it, whereas e_book_get_contacts() takes a EBookQuery
directly. Attached is a small patch to change
e_book_async_get_contacts() so they match.
Ross
--
Ross Burton mail: ross burtonini com
jabber: ross burtonini com
www: http://www.burtonini.com./
PGP Fingerprint: 1A21 F5B0 D8D0 CFE3 81D4 E25A 2D09 E447 D0B4 33DF
Index: addressbook/libebook/e-book-async.c
===================================================================
RCS file: /cvs/gnome/evolution-data-server/addressbook/libebook/e-book-async.c,v
retrieving revision 1.3
diff -u -r1.3 e-book-async.c
--- addressbook/libebook/e-book-async.c 1 Dec 2003 06:49:54 -0000 1.3
+++ addressbook/libebook/e-book-async.c 10 Dec 2003 10:40:01 -0000
@@ -1129,7 +1129,7 @@
guint
e_book_async_get_contacts (EBook *book,
- const gchar *query,
+ EBookQuery *query,
EBookContactsCallback cb,
gpointer closure)
{
@@ -1141,7 +1141,8 @@
e_book_msg_init ((EBookMsg*)msg, _get_contacts_handler, _get_contacts_dtor);
msg->book = g_object_ref (book);
- msg->query = e_book_query_from_string (query);
+ e_book_query_ref (query);
+ msg->query = query;
msg->cb = cb;
msg->closure = closure;
Index: addressbook/libebook/e-book-async.h
===================================================================
RCS file: /cvs/gnome/evolution-data-server/addressbook/libebook/e-book-async.h,v
retrieving revision 1.2
diff -u -r1.2 e-book-async.h
--- addressbook/libebook/e-book-async.h 1 Dec 2003 06:49:54 -0000 1.2
+++ addressbook/libebook/e-book-async.h 10 Dec 2003 10:40:01 -0000
@@ -71,7 +71,7 @@
gpointer closure);
guint e_book_async_get_contacts (EBook *book,
- const char *query,
+ EBookQuery *query,
EBookContactsCallback cb,
gpointer closure);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]