aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/backend/ebook/e-book-util.h
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook/backend/ebook/e-book-util.h')
-rw-r--r--addressbook/backend/ebook/e-book-util.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/addressbook/backend/ebook/e-book-util.h b/addressbook/backend/ebook/e-book-util.h
index cf0103bfea..0988887324 100644
--- a/addressbook/backend/ebook/e-book-util.h
+++ b/addressbook/backend/ebook/e-book-util.h
@@ -34,12 +34,16 @@
BEGIN_GNOME_DECLS
/* Callbacks for asynchronous functions. */
+typedef void (*EBookCommonCallback) (EBook *book, gpointer closure);
typedef void (*EBookSimpleQueryCallback) (EBook *book, EBookSimpleQueryStatus status, const GList *cards, gpointer closure);
+typedef void (*EBookHaveAddressCallback) (EBook *book, const gchar *addr, ECard *card, gpointer closure);
gboolean e_book_load_local_address_book (EBook *book,
EBookCallback open_response,
gpointer closure);
+void e_book_use_local_address_book (EBookCommonCallback cb, gpointer closure);
+
/* Simple Query Interface. */
guint e_book_simple_query (EBook *book,
@@ -57,6 +61,12 @@ guint e_book_name_and_email_query (EBook *book,
EBookSimpleQueryCallback cb,
gpointer closure);
+/* Returns the ECard associated to email in the callback,
+ or NULL if no match is found in the local address book. */
+void e_book_query_address_locally (const gchar *email,
+ EBookHaveAddressCallback cb,
+ gpointer closure);
+
END_GNOME_DECLS