src/transport.c
author vb
Mon, 01 Sep 2014 20:56:05 +0200
changeset 28 7fc9fc3e680c
parent 23 dba569e54163
child 29 31881fe94d3c
permissions -rw-r--r--
...
vb@28
     1
#include "pEp_internal.h"
vb@23
     2
vb@23
     3
#include <stdlib.h>
vb@23
     4
#include <memory.h>
vb@23
     5
#include <assert.h>
vb@23
     6
vb@28
     7
PEP_STATUS init_transport_system(PEP_SESSION session)
vb@23
     8
{
vb@28
     9
    pEpSession *_session = (pEpSession *) session;
vb@28
    10
    PEP_transport_t* transports = _session->transports;
vb@28
    11
vb@23
    12
    assert(PEP_trans__count == 1);
vb@23
    13
    memset(transports, 0, sizeof(PEP_transport_t) * PEP_trans__count);
vb@23
    14
vb@23
    15
    transports[0].id = PEP_trans_auto;
vb@23
    16
vb@23
    17
    return PEP_STATUS_OK;
vb@23
    18
}
vb@28
    19
vb@28
    20
void release_transport_system(PEP_SESSION session)
vb@28
    21
{
vb@28
    22
    // nothing yet
vb@28
    23
}