mu-scm: add full-message support (body/header)

Implement support for "header" and "body" procedures, with require loading the
message file from disk, and create a foreign object for the message.

We keep those alive in a vector, and hook up a finalizer.

Update docs & tests as well.
This commit is contained in:
Dirk-Jan C. Binnema
2025-06-21 11:53:18 +03:00
parent 812d78be49
commit ca46c09ccb
11 changed files with 303 additions and 124 deletions

View File

@ -25,8 +25,7 @@
#include "mu-utils.hh"
#include "config.h"
#include "mu-scm-contact.hh"
#include "mu-scm-store.hh"
#include "mu-scm-types.hh"
using namespace Mu;
using namespace Mu::Scm;
@ -62,6 +61,7 @@ init_module_mu(void* _data)
{
init_options(config->options);
init_store(config->store);
init_message();
}
static const Result<std::string>