[evolution-data-server] e-book-backend-db-cache.h: Avoid DB typedef.



commit 5e6aadd88030702c002d8f1c32806f2eccbefb60
Author: Matthew Barnes <mbarnes redhat com>
Date:   Fri Aug 10 08:31:01 2012 -0400

    e-book-backend-db-cache.h: Avoid DB typedef.
    
    Some distros use compiler settings that choke on duplicate typedefs.
    Gentoo seems to be one of them.
    
    Replace the DB typedef with a forward declaration of "struct __db"
    and fix up all the function arguments that take a DB pointer.

 .../libedata-book/e-book-backend-db-cache.h        |   26 ++++++++++----------
 1 files changed, 13 insertions(+), 13 deletions(-)
---
diff --git a/addressbook/libedata-book/e-book-backend-db-cache.h b/addressbook/libedata-book/e-book-backend-db-cache.h
index b0742ca..4b17bbd 100644
--- a/addressbook/libedata-book/e-book-backend-db-cache.h
+++ b/addressbook/libedata-book/e-book-backend-db-cache.h
@@ -31,23 +31,23 @@
 G_BEGIN_DECLS
 
 /* Avoid including <db.h> in a public header file. */
-typedef struct __db DB;
+struct __db;
 
-EContact * e_book_backend_db_cache_get_contact (DB *db, const gchar *uid);
-gchar *e_book_backend_db_cache_get_filename (DB *db);
-void e_book_backend_db_cache_set_filename (DB *db, const gchar *filename);
-gboolean e_book_backend_db_cache_add_contact (DB *db,
+EContact * e_book_backend_db_cache_get_contact (struct __db *db, const gchar *uid);
+gchar *e_book_backend_db_cache_get_filename (struct __db *db);
+void e_book_backend_db_cache_set_filename (struct __db *db, const gchar *filename);
+gboolean e_book_backend_db_cache_add_contact (struct __db *db,
 					   EContact *contact);
-gboolean e_book_backend_db_cache_remove_contact (DB *db,
+gboolean e_book_backend_db_cache_remove_contact (struct __db *db,
 					      const gchar *uid);
-gboolean e_book_backend_db_cache_check_contact (DB *db, const gchar *uid);
-GList *   e_book_backend_db_cache_get_contacts (DB *db, const gchar *query);
+gboolean e_book_backend_db_cache_check_contact (struct __db *db, const gchar *uid);
+GList *   e_book_backend_db_cache_get_contacts (struct __db *db, const gchar *query);
 gboolean e_book_backend_db_cache_exists (const gchar *uri);
-void     e_book_backend_db_cache_set_populated (DB *db);
-gboolean e_book_backend_db_cache_is_populated (DB *db);
-GPtrArray * e_book_backend_db_cache_search (DB *db, const gchar *query);
-void e_book_backend_db_cache_set_time (DB *db, const gchar *t);
-gchar * e_book_backend_db_cache_get_time (DB *db);
+void     e_book_backend_db_cache_set_populated (struct __db *db);
+gboolean e_book_backend_db_cache_is_populated (struct __db *db);
+GPtrArray * e_book_backend_db_cache_search (struct __db *db, const gchar *query);
+void e_book_backend_db_cache_set_time (struct __db *db, const gchar *t);
+gchar * e_book_backend_db_cache_get_time (struct __db *db);
 
 G_END_DECLS
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]