* add some simply unit tests for mu-runtime, mu-store

This commit is contained in:
Dirk-Jan C. Binnema
2010-12-01 21:57:36 +02:00
parent 3560eecf3a
commit 94487cfe9a
4 changed files with 114 additions and 8 deletions

View File

@ -23,9 +23,9 @@
#include <glib.h>
#include <inttypes.h>
#include "mu-result.h"
#include "mu-msg.h"
#include "mu-error.h"
#include <mu-result.h>
#include <mu-msg.h>
#include <mu-error.h>
G_BEGIN_DECLS
@ -41,7 +41,9 @@ typedef struct _MuStore MuStore;
*
* @return a new MuStore object, or NULL in case of error
*/
MuStore* mu_store_new (const char* path, GError **err);
MuStore* mu_store_new (const char *path, GError **err)
G_GNUC_MALLOC G_GNUC_WARN_UNUSED_RESULT;
/**
* destroy the MuStore object and free resources
@ -136,8 +138,8 @@ gboolean mu_store_contains_message (MuStore *store,
* @param stamp a timestamp
*/
void mu_store_set_timestamp (MuStore *store,
const char* msgpath,
time_t stamp);
const char* msgpath,
time_t stamp);
/**
* get the timestamp for a directory
@ -148,7 +150,7 @@ void mu_store_set_timestamp (MuStore *store,
* @return the timestamp, or 0 in case of error
*/
time_t mu_store_get_timestamp (MuStore *store,
const char* msgpath);
const char* msgpath);
/**
* call a function for each document in the database