src/mime.h
changeset 59 88429085f8da
parent 54 8f6b3a6b77a8
child 87 060a95de62a8
     1.1 --- a/src/mime.h	Sun Feb 08 15:56:04 2015 -0500
     1.2 +++ b/src/mime.h	Mon Feb 09 09:49:26 2015 -0500
     1.3 @@ -1,6 +1,6 @@
     1.4  #pragma once
     1.5  
     1.6 -#include "pEpEngine.h"
     1.7 +#include "transport.h"
     1.8  
     1.9  #ifdef __cplusplus
    1.10  extern "C" {
    1.11 @@ -13,6 +13,7 @@
    1.12  //      plaintext (in)          plaintext of message as UTF-8 string
    1.13  //      htmltext (in)           optional HTML version of message as UTF-8
    1.14  //                              string or NULL if it does not apply
    1.15 +//      attachments (in)        attatchments or NULL if there are none
    1.16  //      resulttext (out)        the resulting encoded text or NULL on any error
    1.17  //
    1.18  //  return value:
    1.19 @@ -25,12 +26,13 @@
    1.20  //      PEP_OUT_OF_MEMORY       if not enough memory could be allocated
    1.21  //
    1.22  //  caveat:
    1.23 -//      the resulttext will go to the ownership of the caller; plaintext
    1.24 -//      and htmltext will remain in the ownership of the caller
    1.25 +//      the resulttext will go to the ownership of the caller; plaintext,
    1.26 +//      htmltext and attachments will remain in the ownership of the caller
    1.27  
    1.28  DYNAMIC_API PEP_STATUS mime_encode_text(
    1.29          const char *plaintext,
    1.30          const char *htmltext,
    1.31 +        bloblist_t *attachments,
    1.32          char **resulttext
    1.33      );
    1.34