summaryrefslogtreecommitdiff
path: root/ecp/src/ecp/vconn/vconn.h
diff options
context:
space:
mode:
Diffstat (limited to 'ecp/src/ecp/vconn/vconn.h')
-rw-r--r--ecp/src/ecp/vconn/vconn.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/ecp/src/ecp/vconn/vconn.h b/ecp/src/ecp/vconn/vconn.h
index 62275bf..9bdb3d3 100644
--- a/ecp/src/ecp/vconn/vconn.h
+++ b/ecp/src/ecp/vconn/vconn.h
@@ -5,6 +5,12 @@
#define ECP_MTYPE_EXEC 0x02
#define ECP_MTYPE_RELAY 0x01
+#ifndef ECP_WITH_HTABLE
+#define ecp_vconn_handle_close NULL
+#define ecp_vlink_handle_open NULL
+#define ecp_vlink_handle_close NULL
+#endif
+
typedef struct ECPVConnInb {
ECPConnection b;
ECPConnection *next;
@@ -24,8 +30,8 @@ void ecp_vconn_init(ECPVConnOutb vconn[], ecp_ecdh_public_t keys[], size_t vconn
void ecp_vconn_init_inb(ECPVConnInb *vconn, ECPSocket *sock);
#endif
int ecp_vconn_open(ECPVConnOutb *vconn, ECPConnection *conn, ECPNode *node);
-#ifdef ECP_WITH_HTABLE
int ecp_vconn_handle_open(ECPConnection *conn, ECP2Buffer *bufs);
+#ifdef ECP_WITH_HTABLE
void ecp_vconn_handle_close(ECPConnection *conn);
#endif
ssize_t ecp_vconn_handle_msg(ECPConnection *conn, ecp_seq_t seq, unsigned char mtype, unsigned char *msg, size_t msg_size, ECP2Buffer *bufs);