From b6e274e6ea10779cccaf46974d2898318e9a3136 Mon Sep 17 00:00:00 2001 From: Thadeu Lima de Souza Cascardo Date: Wed, 17 Jul 2013 18:36:54 -0300 Subject: [PATCH] Channel structure should be public for implementations. Implementations of the channels need to register such a channel, and making the structure public is more simple than creating a series of functions to register every hook. --- include/sgp/channel.h | 5 ++++- src/channel.c | 5 ----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/include/sgp/channel.h b/include/sgp/channel.h index 8fe64c8..b8f30ef 100644 --- a/include/sgp/channel.h +++ b/include/sgp/channel.h @@ -21,7 +21,10 @@ #include -struct sgp_channel; +struct sgp_channel { + int (*send) (void *, struct sgp_msg *); + void * data; +}; int sgp_channel_send(struct sgp_channel *, struct sgp_msg *); diff --git a/src/channel.c b/src/channel.c index 3aec1bf..d531242 100644 --- a/src/channel.c +++ b/src/channel.c @@ -19,11 +19,6 @@ #include #include -struct sgp_channel { - int (*send) (void *, struct sgp_msg *); - void * data; -}; - /* * Send a message through a channel. */ -- 2.20.1