...
authorvb
Wed, 10 Sep 2014 13:49:35 +0200
changeset 3049f7cbcb91df
parent 29 31881fe94d3c
child 31 132481aa7ed0
child 32 ac15f68d4fb0
...
src/email.c
src/email.h
src/trans_auto.c
src/trans_auto.h
src/transport.c
src/transport.h
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/email.c	Wed Sep 10 13:49:35 2014 +0200
     1.3 @@ -0,0 +1,14 @@
     1.4 +#include "email.h"
     1.5 +
     1.6 +PEP_STATUS email_sendto(PEP_SESSION session, const message *msg)
     1.7 +{
     1.8 +
     1.9 +    return PEP_STATUS_OK;
    1.10 +}
    1.11 +
    1.12 +PEP_STATUS email_readnext(PEP_SESSION session, message **msg, PEP_transport_t **via)
    1.13 +{
    1.14 +
    1.15 +    return PEP_STATUS_OK;
    1.16 +}
    1.17 +
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/src/email.h	Wed Sep 10 13:49:35 2014 +0200
     2.3 @@ -0,0 +1,6 @@
     2.4 +#pragma once
     2.5 +
     2.6 +#include "transport.h"
     2.7 +
     2.8 +PEP_STATUS email_sendto(PEP_SESSION session, const message *msg);
     2.9 +PEP_STATUS email_readnext(PEP_SESSION session, message **msg, PEP_transport_t **via);
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/src/trans_auto.c	Wed Sep 10 13:49:35 2014 +0200
     3.3 @@ -0,0 +1,13 @@
     3.4 +#include "trans_auto.h"
     3.5 +
     3.6 +PEP_STATUS auto_sendto(PEP_SESSION session, const message *msg)
     3.7 +{
     3.8 +
     3.9 +    return PEP_STATUS_OK;
    3.10 +}
    3.11 +
    3.12 +PEP_STATUS auto_readnext(PEP_SESSION session, message **msg, PEP_transport_t **via)
    3.13 +{
    3.14 +
    3.15 +    return PEP_STATUS_OK;
    3.16 +}
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/src/trans_auto.h	Wed Sep 10 13:49:35 2014 +0200
     4.3 @@ -0,0 +1,6 @@
     4.4 +#pragma once
     4.5 +
     4.6 +#include "transport.h"
     4.7 +
     4.8 +PEP_STATUS auto_sendto(PEP_SESSION session, const message *msg);
     4.9 +PEP_STATUS auto_readnext(PEP_SESSION session, message **msg, PEP_transport_t **via);
     5.1 --- a/src/transport.c	Tue Sep 09 13:00:10 2014 +0200
     5.2 +++ b/src/transport.c	Wed Sep 10 13:49:35 2014 +0200
     5.3 @@ -5,6 +5,8 @@
     5.4  
     5.5  PEP_STATUS init_transport_system(PEP_SESSION session)
     5.6  {
     5.7 +    assert(session);
     5.8 +
     5.9      pEpSession *_session = (pEpSession *) session;
    5.10      PEP_transport_t* transports = _session->transports;
    5.11  
    5.12 @@ -18,11 +20,14 @@
    5.13  
    5.14  void release_transport_system(PEP_SESSION session)
    5.15  {
    5.16 +    assert(session);
    5.17      // nothing yet
    5.18  }
    5.19  
    5.20  pEp_identity *identity_dup(const pEp_identity *src)
    5.21  {
    5.22 +    assert(src);
    5.23 +
    5.24      pEp_identity *dup = new_identity(src->address, src->fpr, src->user_id, src->username);
    5.25      assert(dup);
    5.26      if (dup == NULL)
     6.1 --- a/src/transport.h	Tue Sep 09 13:00:10 2014 +0200
     6.2 +++ b/src/transport.h	Wed Sep 10 13:49:35 2014 +0200
     6.3 @@ -90,6 +90,8 @@
     6.4      uint8_t id;
     6.5      sendto_t sendto;
     6.6      readnext_t readnext;
     6.7 +    bool long_message_supported;
     6.8 +    msg_format native_format;
     6.9  };
    6.10  
    6.11  typedef uint64_t transports_mask;