You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.1 KiB

8 years ago
7 years ago
7 years ago
8 years ago
8 years ago
7 years ago
8 years ago
7 years ago
8 years ago
  1. /** @file */
  2. /** @brief File description for doxygen missing. FIXME */
  3. // This file is under GNU General Public License 3.0
  4. // see LICENSE.txt
  5. #include "pEp_internal.h"
  6. #include "trans_auto.h"
  7. #include <memory.h>
  8. #include <assert.h>
  9. PEP_transport_t transports[PEP_trans__count];
  10. PEP_STATUS init_transport_system(PEP_SESSION session, bool in_first)
  11. {
  12. assert(session);
  13. session->transports = transports;
  14. if (in_first) {
  15. assert(PEP_trans__count == 1);
  16. memset(transports, 0, sizeof(PEP_transport_t) * PEP_trans__count);
  17. transports[PEP_trans_auto].id = PEP_trans_auto;
  18. transports[PEP_trans_auto].uri_scheme = "";
  19. transports[PEP_trans_auto].startup = auto_startup;
  20. transports[PEP_trans_auto].shutdown = auto_shutdown;
  21. transports[PEP_trans_auto].sendto = auto_sendto;
  22. transports[PEP_trans_auto].recvnext = auto_recvnext;
  23. transports[PEP_trans_auto].notify = auto_notify;
  24. }
  25. return PEP_STATUS_OK;
  26. }
  27. void release_transport_system(PEP_SESSION session, bool out_last)
  28. {
  29. assert(session);
  30. // nothing yet
  31. }