preparing for a real artist's work

MIME-6
Volker Birk 2019-04-05 17:34:18 +02:00
parent d73d0b1382
commit bdb216c95f
1 changed files with 17 additions and 11 deletions

View File

@ -1,28 +1,26 @@
#include <assert.h>
#include <pEp/message.h>
// function interface for pEp engine
// link this to use pEp MIME with C code
extern "C" {
DYNAMIC_API PEP_STATUS mime_encode_message(
const message * msg,
bool omit_fields,
char **mimetext
)
{
PEP_STATUS status = PEP_STATUS_OK;
return status;
}
DYNAMIC_API PEP_STATUS mime_decode_message(
const char *mimetext,
size_t size,
message **msg
)
{
assert(msg);
assert(mimetext);
if (!(msg && mimetext))
return PEP_ILLEGAL_VALUE;
PEP_STATUS status = PEP_STATUS_OK;
// FIXME: working part
return status;
}
@ -33,8 +31,16 @@ extern "C" {
bool transport_encode
)
{
assert(msg);
assert(mimetext);
if (!(msg && mimetext))
return PEP_ILLEGAL_VALUE;
PEP_STATUS status = PEP_STATUS_OK;
// FIXME: working part
return status;
}
}