From 95673ec7d74e1dcc16d4f68ca49f94bf538acfbd Mon Sep 17 00:00:00 2001 From: Sankarasivasubramanian Pasupathilingam Date: Tue, 6 May 2008 11:13:30 +0000 Subject: [PATCH] Changed the Macro name. svn path=/trunk/; revision=8747 --- camel/camel-db.h | 3 ++- camel/camel-store.c | 11 +++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/camel/camel-db.h b/camel/camel-db.h index 1781e50..a812789 100644 --- a/camel/camel-db.h +++ b/camel/camel-db.h @@ -6,7 +6,8 @@ #include #include -#define CAMEL_DB_FILE "folders.db" +#define CAMEL_SUMMARY_EXTENSION ".ev-summary" +#define CAMEL_STORE_SUMMARY_FILE_NAME "folders.ev-summary" struct _CamelDB { sqlite3 *db; diff --git a/camel/camel-store.c b/camel/camel-store.c index 1734ca5..9b0daaf 100644 --- a/camel/camel-store.c +++ b/camel/camel-store.c @@ -220,22 +220,25 @@ construct (CamelService *service, CamelSession *session, service_path = camel_service_get_path (service); summary_path = g_strsplit (service_path, "/", 2); - path = g_strdup_printf ("%s/%s", summary_path[1], CAMEL_DB_FILE); + path = g_strdup_printf ("/%s/%s", summary_path[1], CAMEL_STORE_SUMMARY_FILE_NAME); - d(printf ("\n\aDatabase path to be opened is : [%s] \n\a", path)); + d(printf ("Database path to be opened is : [%s] \n", path)); store->cdb = camel_db_open (path); if (store->cdb) { d(printf ("Store's database opened \n")); - /* If the tables aren't already there create atleast the store's table*/ + /* If the tables aren't already there, create atleast the store's table*/ if (!camel_db_command (store->cdb, "select folder from folders")) { if (!camel_db_command (store->cdb, CREATE_STORE_TABLE_QRY)) g_warning ("Unable to create store structing db"); - else + else { + printf ("README: All these changes needs to be logged \n"); d(printf ("folders table created in the store's database.\n")); + } } } else { d(printf ("Store's database cannot be opened \n")); + printf ("FIXME: This has to be passed via a CamelException \n"); } g_free (service_path); g_free (path); -- 2.7.4