]> git.meshlink.io Git - utcp/blobdiff - utcp.h
Change utcp_timeout() to return a struct timeval.
[utcp] / utcp.h
diff --git a/utcp.h b/utcp.h
index 53a107fd13a20196ce7485b93a754771d2a36b62..7ebca734bfa36f650b55f829a3e8f80c2def80d1 100644 (file)
--- a/utcp.h
+++ b/utcp.h
@@ -23,6 +23,8 @@
 #include <unistd.h>
 #include <stdint.h>
 #include <stdbool.h>
+// TODO: Windows
+#include <sys/time.h>
 
 #ifndef UTCP_INTERNAL
 struct utcp {
@@ -56,7 +58,7 @@ extern ssize_t utcp_recv(struct utcp *utcp, const void *data, size_t len);
 extern int utcp_close(struct utcp_connection *connection);
 extern int utcp_abort(struct utcp_connection *connection);
 extern int utcp_shutdown(struct utcp_connection *connection, int how);
-extern int utcp_timeout(struct utcp *utcp);
+extern struct timeval utcp_timeout(struct utcp *utcp);
 extern void utcp_set_recv_cb(struct utcp_connection *connection, utcp_recv_t recv);
 extern void utcp_set_poll_cb(struct utcp_connection *connection, utcp_poll_t poll);