Browse Source

preparing for a real artist's work

MIME-4
Volker Birk 3 years ago
parent
commit
bdb216c95f
1 changed files with 17 additions and 11 deletions
  1. +17
    -11
      src/pEpEngine_mime.cc

+ 17
- 11
src/pEpEngine_mime.cc 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;
}
}


Loading…
Cancel
Save