rtk/oshw.c
Go to the documentation of this file.
1 /*
2  * Licensed under the GNU General Public License version 2 with exceptions. See
3  * LICENSE file in the project root for full license information
4  */
5 
6 #include "oshw.h"
7 #include <stdlib.h>
8 #include <lwip/inet.h>
9 
17 {
18  uint16 network = htons (host);
19  return network;
20 }
21 
28 uint16 oshw_ntohs(const uint16 network)
29 {
30  uint16 host = ntohs (network);
31  return host;
32 }
33 
34 /* Create list over available network adapters.
35  * @return First element in linked list of adapters
36  */
38 {
39  ec_adaptert * ret_adapter = NULL;
40 
41  /* TODO if needed */
42 
43  return ret_adapter;
44 }
45 
51 {
52  /* TODO if needed */
53 }
void oshw_free_adapters(ec_adaptert *adapter)
Definition: rtk/oshw.c:50
uint16 oshw_htons(const uint16 host)
Definition: rtk/oshw.c:16
uint16_t uint16
Definition: osal.h:29
Headerfile for oshw.c.
uint16 oshw_ntohs(const uint16 network)
Definition: rtk/oshw.c:28
ec_adaptert * oshw_find_adapters(void)
Definition: rtk/oshw.c:37


soem
Author(s): Arthur Ketels and M.J.G. van den Molengraft
autogenerated on Sat Jun 27 2020 03:48:21