src/message_api.h
changeset 44 4013b57a6a69
parent 39 66b5cc6cb987
child 48 9ff5d2dfa75a
     1.1 --- a/src/message_api.h	Wed Dec 31 00:19:21 2014 +0100
     1.2 +++ b/src/message_api.h	Sat Jan 03 16:37:53 2015 +0100
     1.3 @@ -7,6 +7,34 @@
     1.4  #include "transport.h"
     1.5  
     1.6  
     1.7 +// mime_encode_parts() - encode message with MIME
     1.8 +//  parameters:
     1.9 +//      src                 message to encode
    1.10 +//      dst                 encoded message or NULL on error
    1.11 +//
    1.12 +//  return value:
    1.13 +//      error status or PEP_STATUS_OK on success
    1.14 +//
    1.15 +//  caveat:
    1.16 +//      message must be unencrypted
    1.17 +
    1.18 +DYNAMIC_API PEP_STATUS mime_encode_parts(const message *src, message **dst);
    1.19 +
    1.20 +
    1.21 +// mime_decode_parts() - decode MIME message
    1.22 +//  parameters:
    1.23 +//      src                 message to decode
    1.24 +//      dst                 decoded message or NULL on error
    1.25 +//
    1.26 +//  return value:
    1.27 +//      error status or PEP_STATUS_OK on success
    1.28 +//
    1.29 +//  caveat:
    1.30 +//      message must be unencrypted
    1.31 +
    1.32 +DYNAMIC_API PEP_STATUS mime_decode_parts(const message *src, message **dst);
    1.33 +
    1.34 +
    1.35  // encrypt_message() - encrypt message in memory
    1.36  //
    1.37  //  parameters:
    1.38 @@ -21,7 +49,7 @@
    1.39  //      or more keys couldn't be found, but the message could be encrypted
    1.40  //      with other keys
    1.41  
    1.42 -PEP_STATUS encrypt_message(
    1.43 +DYNAMIC_API PEP_STATUS encrypt_message(
    1.44          PEP_SESSION session,
    1.45          const message *src,
    1.46          stringlist_t *extra,
    1.47 @@ -40,7 +68,7 @@
    1.48  //  return value:
    1.49  //      error status or PEP_STATUS_OK on success
    1.50  
    1.51 -PEP_STATUS decrypt_message(
    1.52 +DYNAMIC_API PEP_STATUS decrypt_message(
    1.53          PEP_SESSION session,
    1.54          const message *src,
    1.55          message **dst