summaryrefslogtreecommitdiff
path: root/code/ecp/core.h
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2020-06-06 14:35:33 +0200
committerUros Majstorovic <majstor@majstor.org>2020-06-06 14:35:33 +0200
commitae52e2507afb2dcb43424ddf96067b5da52f20ee (patch)
tree2b9ce58f75c8aa3ce81f8884be5cd3f62f2969b3 /code/ecp/core.h
parentac9ff0db66059df15dd6e71db9c7ff5e7f7ea7b5 (diff)
ecp_conn_alloc_t/ecp_conn_free_t typedefs fixed
Diffstat (limited to 'code/ecp/core.h')
-rw-r--r--code/ecp/core.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/code/ecp/core.h b/code/ecp/core.h
index 9ffff20..946213d 100644
--- a/code/ecp/core.h
+++ b/code/ecp/core.h
@@ -154,8 +154,8 @@ typedef int (*ecp_rng_t) (void *, size_t);
typedef int (*ecp_conn_handler_new_t) (struct ECPSocket *s, struct ECPConnection *p, unsigned char *msg, size_t sz, struct ECPConnection **c);
typedef ssize_t (*ecp_conn_handler_msg_t) (struct ECPConnection *c, ecp_seq_t s, unsigned char t, unsigned char *msg, ssize_t sz, struct ECP2Buffer *b);
-typedef struct ECPConnection * ecp_conn_alloc_t (unsigned char t);
-typedef void ecp_conn_free_t (struct ECPConnection *c);
+typedef struct ECPConnection * (*ecp_conn_alloc_t) (unsigned char t);
+typedef void (*ecp_conn_free_t) (struct ECPConnection *c);
typedef int ecp_conn_create_t (struct ECPConnection *c, unsigned char *msg, size_t sz);
typedef void ecp_conn_destroy_t (struct ECPConnection *c);
typedef ssize_t ecp_conn_open_t (struct ECPConnection *c);
@@ -238,8 +238,8 @@ typedef struct ECPSockCTable {
typedef struct ECPContext {
ecp_rng_t rng;
- ecp_conn_alloc_t *conn_alloc;
- ecp_conn_free_t *conn_free;
+ ecp_conn_alloc_t conn_alloc;
+ ecp_conn_free_t conn_free;
ECPConnHandler *handler[ECP_MAX_CTYPE];
} ECPContext;