From 7bb3515bc303a2a35fe859bcdba2795fbe06643d Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Sat, 17 Dec 2022 09:33:30 +0800 Subject: Make server as a library --- src/acceptor.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/acceptor.h') diff --git a/src/acceptor.h b/src/acceptor.h index f4c9284..2d16a13 100644 --- a/src/acceptor.h +++ b/src/acceptor.h @@ -4,6 +4,9 @@ #ifndef __ACCEPTOR_H #define __ACCEPTOR_H -struct event *conn_acceptor_create_event(struct tsocket *sock, evloop_t *el); +struct conn_acceptor; +typedef struct conn_acceptor conn_acceptor_t; + +event_t *conn_acceptor_event_create(struct tsocket *sock, evloop_t **evloops, int nevloops); #endif -- cgit v1.2.3