mirror of https://github.com/djcb/mu.git
* cosmetics
This commit is contained in:
parent
cec2a53265
commit
a633475e1b
|
@ -19,7 +19,6 @@
|
||||||
|
|
||||||
#include "mu-msg-data-cache.h"
|
#include "mu-msg-data-cache.h"
|
||||||
|
|
||||||
|
|
||||||
/* we cannot use GPtrArray, because we require the index to be stable... */
|
/* we cannot use GPtrArray, because we require the index to be stable... */
|
||||||
struct _MuMsgDataCache {
|
struct _MuMsgDataCache {
|
||||||
MuMsgData **_data;
|
MuMsgData **_data;
|
||||||
|
|
|
@ -20,6 +20,10 @@
|
||||||
#ifndef __MU_MSG_DATA_CACHE_H__
|
#ifndef __MU_MSG_DATA_CACHE_H__
|
||||||
#define __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>
|
#include <mu-msg-data.h>
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
@ -27,6 +31,13 @@ G_BEGIN_DECLS
|
||||||
struct _MuMsgDataCache;
|
struct _MuMsgDataCache;
|
||||||
typedef struct _MuMsgDataCache 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)
|
MuMsgDataCache *mu_msg_data_cache_new (guint32 max_size)
|
||||||
G_GNUC_MALLOC G_GNUC_WARN_UNUSED_RESULT;
|
G_GNUC_MALLOC G_GNUC_WARN_UNUSED_RESULT;
|
||||||
void mu_msg_data_cache_destroy (MuMsgDataCache *self);
|
void mu_msg_data_cache_destroy (MuMsgDataCache *self);
|
||||||
|
|
|
@ -500,7 +500,8 @@ get_message_uid (const char* path)
|
||||||
buf[0]=pfx;
|
buf[0]=pfx;
|
||||||
}
|
}
|
||||||
|
|
||||||
strcpy (buf + 1, path);
|
std::strcpy (buf + 1, path);
|
||||||
|
|
||||||
return buf;
|
return buf;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -612,6 +613,7 @@ mu_store_get_timestamp (MuStore *store, const char* msgpath)
|
||||||
|
|
||||||
rv = (time_t) g_ascii_strtoull (stampstr, NULL, 10);
|
rv = (time_t) g_ascii_strtoull (stampstr, NULL, 10);
|
||||||
g_free (stampstr);
|
g_free (stampstr);
|
||||||
|
|
||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue