* cosmetics

This commit is contained in:
Dirk-Jan C. Binnema 2011-04-30 13:52:17 +03:00
parent cec2a53265
commit a633475e1b
3 changed files with 14 additions and 2 deletions

View File

@ -19,7 +19,6 @@
#include "mu-msg-data-cache.h"
/* we cannot use GPtrArray, because we require the index to be stable... */
struct _MuMsgDataCache {
MuMsgData **_data;

View File

@ -20,6 +20,10 @@
#ifndef __MU_MSG_DATA_CACHE_H__
#define __MU_MSG_DATA_CACHE_H__
/* MuMsgDataCache stores MuMsgData objects which are basically
* serialized MuMsgIters; putting them in a datastructure allows us to
* work on them, e.g., for message threading */
#include <mu-msg-data.h>
G_BEGIN_DECLS
@ -27,6 +31,13 @@ G_BEGIN_DECLS
struct _MuMsgDataCache;
typedef struct _MuMsgDataCache MuMsgDataCache;
/**
* create a new MuMsgDataCache instance
*
* @param max_size maximum size of the cache
*
* @return
*/
MuMsgDataCache *mu_msg_data_cache_new (guint32 max_size)
G_GNUC_MALLOC G_GNUC_WARN_UNUSED_RESULT;
void mu_msg_data_cache_destroy (MuMsgDataCache *self);

View File

@ -500,7 +500,8 @@ get_message_uid (const char* path)
buf[0]=pfx;
}
strcpy (buf + 1, path);
std::strcpy (buf + 1, path);
return buf;
}
@ -612,6 +613,7 @@ mu_store_get_timestamp (MuStore *store, const char* msgpath)
rv = (time_t) g_ascii_strtoull (stampstr, NULL, 10);
g_free (stampstr);
return rv;
}