Change from GNet to HCConn.
[cascardo/rnetproxy.git] / nethook.h
index ec1a60f..e3178e4 100644 (file)
--- a/nethook.h
+++ b/nethook.h
@@ -20,7 +20,8 @@
 #ifndef NET_HOOK_H
 #define NET_HOOK_H
 
-#include <gnet.h>
+#include <glib.h>
+#include "iochannel.h"
 
 typedef struct _net_hook_t net_hook_t;
 typedef void (*net_connect) (net_hook_t*);
@@ -30,7 +31,7 @@ typedef void (*net_read) (net_hook_t*, gchar*, size_t);
 
 struct _net_hook_t
 {
-  GConn* conn;
+  HCConn* conn;
   net_hook_t* peer;
   gboolean server;
   net_connect connect;
@@ -40,6 +41,6 @@ struct _net_hook_t
   gpointer data;
 };
 
-void nethook_event (GConn*, GConnEvent*, gpointer);
+void nethook_event (HCConn*, HCEvent, gpointer);
 
 #endif