From: Thadeu Lima de Souza Cascardo Date: Wed, 17 Jul 2013 21:36:54 +0000 (-0300) Subject: Channel structure should be public for implementations. X-Git-Url: http://git.cascardo.eti.br/?p=cascardo%2Fsgp.git;a=commitdiff_plain;h=b6e274e6ea10779cccaf46974d2898318e9a3136 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. --- 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. */