aboutsummaryrefslogtreecommitdiff
path: root/connection.h
diff options
context:
space:
mode:
Diffstat (limited to 'connection.h')
-rw-r--r--connection.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/connection.h b/connection.h
index c7b24fc..4e14487 100644
--- a/connection.h
+++ b/connection.h
@@ -1,15 +1,15 @@
#include "tsocket.h"
-#include "eventloop.h"
+#include "evloop.h"
#ifndef __CONNECTION_H
#define __CONNECTION_H
-struct connection {
- struct tsocket *sock;
-};
+struct connection;
+typedef struct connection connection_t;
-struct connection *connectionNew(struct tsocket *sock);
-void connectionDel(struct connection *conn);
-struct event *connectionNewEvent(struct connection *conn);
+connection_t *connection_create(struct tsocket *sock);
+void connection_destroy(struct connection *conn);
+
+event_t *connection_create_event(struct tsocket *sock);
#endif