Browse Source

...

doc_update_sequoia
vb 8 years ago
parent
commit
b0ef8cd8bd
6 changed files with 46 additions and 0 deletions
  1. +14
    -0
      src/email.c
  2. +6
    -0
      src/email.h
  3. +13
    -0
      src/trans_auto.c
  4. +6
    -0
      src/trans_auto.h
  5. +5
    -0
      src/transport.c
  6. +2
    -0
      src/transport.h

+ 14
- 0
src/email.c View File

@ -0,0 +1,14 @@
#include "email.h"
PEP_STATUS email_sendto(PEP_SESSION session, const message *msg)
{
return PEP_STATUS_OK;
}
PEP_STATUS email_readnext(PEP_SESSION session, message **msg, PEP_transport_t **via)
{
return PEP_STATUS_OK;
}

+ 6
- 0
src/email.h View File

@ -0,0 +1,6 @@
#pragma once
#include "transport.h"
PEP_STATUS email_sendto(PEP_SESSION session, const message *msg);
PEP_STATUS email_readnext(PEP_SESSION session, message **msg, PEP_transport_t **via);

+ 13
- 0
src/trans_auto.c View File

@ -0,0 +1,13 @@
#include "trans_auto.h"
PEP_STATUS auto_sendto(PEP_SESSION session, const message *msg)
{
return PEP_STATUS_OK;
}
PEP_STATUS auto_readnext(PEP_SESSION session, message **msg, PEP_transport_t **via)
{
return PEP_STATUS_OK;
}

+ 6
- 0
src/trans_auto.h View File

@ -0,0 +1,6 @@
#pragma once
#include "transport.h"
PEP_STATUS auto_sendto(PEP_SESSION session, const message *msg);
PEP_STATUS auto_readnext(PEP_SESSION session, message **msg, PEP_transport_t **via);

+ 5
- 0
src/transport.c View File

@ -5,6 +5,8 @@
PEP_STATUS init_transport_system(PEP_SESSION session)
{
assert(session);
pEpSession *_session = (pEpSession *) session;
PEP_transport_t* transports = _session->transports;
@ -18,11 +20,14 @@ PEP_STATUS init_transport_system(PEP_SESSION session)
void release_transport_system(PEP_SESSION session)
{
assert(session);
// nothing yet
}
pEp_identity *identity_dup(const pEp_identity *src)
{
assert(src);
pEp_identity *dup = new_identity(src->address, src->fpr, src->user_id, src->username);
assert(dup);
if (dup == NULL)


+ 2
- 0
src/transport.h View File

@ -90,6 +90,8 @@ struct _PEP_transport_t {
uint8_t id;
sendto_t sendto;
readnext_t readnext;
bool long_message_supported;
msg_format native_format;
};
typedef uint64_t transports_mask;


Loading…
Cancel
Save