Split internal details of HCConn into header to allow other layers.
[cascardo/rnetproxy.git] / hcconn.c
index 5c6e60e..adfa4c4 100644 (file)
--- a/hcconn.c
+++ b/hcconn.c
@@ -20,6 +20,7 @@
 #include "hcconn.h"
 #include <unistd.h>
 #include <fcntl.h>
+#include "hcconn_internal.h"
 
 struct hc_server_cb
 {
@@ -61,18 +62,6 @@ hc_server_add_watch (int fd,
                        hc_server_watch, cb, hc_server_cb_destroy);
 }
 
-struct _hc_conn_t
-{
-  GIOChannel *channel;
-  HCClientFunc func;
-  gpointer data;
-  ssize_t (*read) (gpointer, char *, size_t);
-  ssize_t (*write) (gpointer, char *, size_t);
-  void (*close) (gpointer);
-  gpointer layer;
-  guint watch;
-};
-
 ssize_t
 hc_conn_channel_read (gpointer data, char *buffer, size_t len)
 {