diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-10-29 01:02:02 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-10-29 01:40:02 -0600 |
commit | 7ff738390e55d57a0f513c467a9da3b08c6902ab (patch) | |
tree | 384bd03462a9790c9c747b895cf5de0677659db7 /libhw/host_include | |
parent | affe77a2b068a9de236f0d7703092dbfafacff5e (diff) |
Add a way to make private object members
Diffstat (limited to 'libhw/host_include')
-rw-r--r-- | libhw/host_include/libhw/host_net.h | 8 |
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); |