diff options
Diffstat (limited to 'src/tcp_server.h')
-rw-r--r-- | src/tcp_server.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/tcp_server.h b/src/tcp_server.h index 55fb1fa..0f377d8 100644 --- a/src/tcp_server.h +++ b/src/tcp_server.h @@ -8,12 +8,10 @@ #ifndef __TCP_SERVER_H__ #define __TCP_SERVER_H__ -struct tcp_server { - int fd; -}; +struct tcp_server; -int tcp_server_create(struct tcp_server *, const char *port); -void tcp_server_destroy(const struct tcp_server *); +int tcp_server_create(struct tcp_server **, const char *port); +void tcp_server_destroy(struct tcp_server *); typedef int (*tcp_server_conn_handler)(int conn_fd, void *arg); int tcp_server_accept(const struct tcp_server *, tcp_server_conn_handler, void *arg); |