contacts: rework: install in database

Rewrite the contacts-cache backend in c++

Store the contacts as metadata in the xapian database, rather than in a
separate file.

Update the Store to deal with this.
This commit is contained in:
djcb
2019-04-28 13:57:07 +03:00
parent 9a225365c1
commit 8193cc3e4c
9 changed files with 525 additions and 673 deletions

View File

@ -24,6 +24,7 @@
#include <inttypes.h>
#include <mu-msg.h>
#include <mu-util.h> /* for MuError, MuError */
#include <mu-contacts.h>
G_BEGIN_DECLS
@ -146,6 +147,16 @@ void mu_store_set_batch_size (MuStore *store, guint batchsize);
void mu_store_set_my_addresses (MuStore *store, const char **my_addresses);
/**
* Get the a MuContacts* ptr for this store.
*
* @param store a store
*
* @return the contacts ptr
*/
MuContacts* mu_store_contacts (MuStore *store);
/**
* get the numbers of documents in the database
*