aboutsummaryrefslogtreecommitdiff
path: root/src/net/inc
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2022-09-23 04:27:58 +0200
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2022-09-23 04:38:33 +0200
commit8435b3f5fd32bc1b495288678f5a4cd2f2710867 (patch)
tree452500aef73a0a9d312dd75e35a55a0f6cae6308 /src/net/inc
parentb108afb6e7a50b80a5661fede1219163c037ef9b (diff)
downloadrts-8435b3f5fd32bc1b495288678f5a4cd2f2710867.tar.gz
net: Implement net_available
Diffstat (limited to 'src/net/inc')
-rw-r--r--src/net/inc/net.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net/inc/net.h b/src/net/inc/net.h
index 8359cda..f7f1258 100644
--- a/src/net/inc/net.h
+++ b/src/net/inc/net.h
@@ -1,6 +1,7 @@
#ifndef NET_H
#define NET_H
+#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
@@ -71,7 +72,7 @@ struct net_socket;
int net_init(void);
void net_deinit(void);
int net_update(struct net_socket *s);
-
+bool net_available(enum net_domain d);
struct net_socket *net_server(const union net_server *srv);
struct net_socket *net_connect(const union net_connect *c);
int net_read(struct net_socket *s, void *buf, size_t n);