summaryrefslogtreecommitdiff
path: root/libhw/host_include
diff options
context:
space:
mode:
Diffstat (limited to 'libhw/host_include')
-rw-r--r--libhw/host_include/libhw/host_net.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libhw/host_include/libhw/host_net.h b/libhw/host_include/libhw/host_net.h
index 1b1ba7a..bfef5c9 100644
--- a/libhw/host_include/libhw/host_net.h
+++ b/libhw/host_include/libhw/host_net.h
@@ -9,20 +9,26 @@
#include <stdint.h> /* for uint16_6 */
+#include <libmisc/private.h>
+
#include <libhw/generic/net.h>
struct _hostnet_tcp_conn {
implements_net_stream_conn;
+ BEGIN_PRIVATE(LIBHW_HOST_NET_H)
int fd;
uint64_t read_deadline_ns;
+ END_PRIVATE(LIBHW_HOST_NET_H)
};
struct hostnet_tcp_listener {
implements_net_stream_listener;
+ BEGIN_PRIVATE(LIBHW_HOST_NET_H)
int fd;
struct _hostnet_tcp_conn active_conn;
+ END_PRIVATE(LIBHW_HOST_NET_H)
};
void hostnet_tcp_listener_init(struct hostnet_tcp_listener *self, uint16_t port);
@@ -30,8 +36,10 @@ void hostnet_tcp_listener_init(struct hostnet_tcp_listener *self, uint16_t port)
struct hostnet_udp_conn {
implements_net_packet_conn;
+ BEGIN_PRIVATE(LIBHW_HOST_NET_H)
int fd;
uint64_t read_deadline_ns;
+ END_PRIVATE(LIBHW_HOST_NET_H)
};
void hostnet_udp_conn_init(struct hostnet_udp_conn *self, uint16_t port);