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
commit14731f0eaa1c545509a928d6baa1d4678478e563 (patch)
tree6dac93856d1f6dd3bc21ba2a0b776efe88a5330b /src/net/inc
parentc6be6d0c97f694d423c4081c4d9dcfbb85880095 (diff)
downloadjancity-14731f0eaa1c545509a928d6baa1d4678478e563.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);