diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-12-27 07:32:36 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-12-27 07:32:36 +0000 |
commit | 9f4a64cce3f7515dd4522be55c80394eaa761938 (patch) | |
tree | 1fd2421bfffc692bf507af6d8c134fefab7fd640 /libsylph/procmsg.c | |
parent | c949a532de4138d9bd205f35cb16e0a309512f5d (diff) |
cache search result to speed up on and after the second search.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@869 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph/procmsg.c')
-rw-r--r-- | libsylph/procmsg.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/libsylph/procmsg.c b/libsylph/procmsg.c index c2dd50a0..0adb215b 100644 --- a/libsylph/procmsg.c +++ b/libsylph/procmsg.c @@ -41,11 +41,6 @@ static GHashTable *procmsg_read_mark_file (FolderItem *item); static void procmsg_write_mark_file (FolderItem *item, GHashTable *mark_table); -static FILE *procmsg_open_data_file (const gchar *file, - guint version, - DataOpenMode mode, - gchar *buf, - size_t buf_size); static FILE *procmsg_open_cache_file_with_buffer(FolderItem *item, DataOpenMode mode, gchar *buf, @@ -119,7 +114,7 @@ GHashTable *procmsg_to_folder_hash_table_create(GSList *mlist) return msg_table; } -static gint procmsg_read_cache_data_str(FILE *fp, gchar **str) +gint procmsg_read_cache_data_str(FILE *fp, gchar **str) { gchar buf[BUFFSIZE]; gint ret = 0; @@ -155,9 +150,6 @@ static gint procmsg_read_cache_data_str(FILE *fp, gchar **str) } else ret = -1; - if (ret < 0) - g_warning("Cache data is corrupted\n"); - return ret; } @@ -767,9 +759,8 @@ static void procmsg_write_mark_file(FolderItem *item, GHashTable *mark_table) fclose(fp); } -static FILE *procmsg_open_data_file(const gchar *file, guint version, - DataOpenMode mode, - gchar *buf, size_t buf_size) +FILE *procmsg_open_data_file(const gchar *file, guint version, + DataOpenMode mode, gchar *buf, size_t buf_size) { FILE *fp; guint32 data_ver; |