lib: Update for new querying machinery

Port to c++ and use new APIs.
This commit is contained in:
Dirk-Jan C. Binnema
2020-11-28 10:15:49 +02:00
parent 95dffb98a6
commit e282d80bc0
24 changed files with 433 additions and 513 deletions

View File

@ -20,7 +20,7 @@
#ifndef __MU_STORE_HH__
#define __MU_STORE_HH__
#include <mu-msg.h>
#include <mu-msg.hh>
#ifdef __cplusplus
@ -52,7 +52,6 @@ public:
*/
Store (const std::string& path, bool readonly=true);
struct Config {
size_t max_message_size{};
/**< maximum size (in bytes) for a message, or 0 for default */
@ -121,8 +120,8 @@ public:
/**
* Get the Indexer associated with this store. It is an error
* to call this on a read-only store.
* Get the Indexer associated with this store. It is an error to call
* this on a read-only store.
*
* @return the indexer.
*/
@ -143,7 +142,7 @@ public:
* @param msg a message
* @param id the id for this message
*
* @return false in case of failure; true ottherwise.
* @return false in case of failure; true otherwise.
*/
bool update_message (MuMsg *msg, Id id);