/** @file */
|
|
/** @brief File description for doxygen missing. FIXME */
|
|
|
|
// This file is under GNU General Public License 3.0
|
|
// see LICENSE.txt
|
|
|
|
#include "pEp_internal.h"
|
|
#include "trans_auto.h"
|
|
|
|
#include <memory.h>
|
|
#include <assert.h>
|
|
|
|
PEP_transport_t transports[PEP_trans__count];
|
|
|
|
PEP_STATUS init_transport_system(PEP_SESSION session, bool in_first)
|
|
{
|
|
assert(session);
|
|
session->transports = transports;
|
|
|
|
if (in_first) {
|
|
assert(PEP_trans__count == 1);
|
|
memset(transports, 0, sizeof(PEP_transport_t) * PEP_trans__count);
|
|
|
|
transports[PEP_trans_auto].id = PEP_trans_auto;
|
|
|
|
transports[PEP_trans_auto].init = auto_init;
|
|
transports[PEP_trans_auto].sendto = auto_sendto;
|
|
transports[PEP_trans_auto].readnext = auto_readnext;
|
|
|
|
transports[PEP_trans_auto].signal_statuschange = auto_signal_statuschange;
|
|
}
|
|
|
|
return PEP_STATUS_OK;
|
|
}
|
|
|
|
void release_transport_system(PEP_SESSION session, bool out_last)
|
|
{
|
|
assert(session);
|
|
// nothing yet
|
|
}
|
|
|