diff options
Diffstat (limited to 'src/libunixonacid/unixconnection_free.c')
-rw-r--r-- | src/libunixonacid/unixconnection_free.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/libunixonacid/unixconnection_free.c b/src/libunixonacid/unixconnection_free.c new file mode 100644 index 0000000..52f9027 --- /dev/null +++ b/src/libunixonacid/unixconnection_free.c @@ -0,0 +1,11 @@ + /* ISC license. */ + +#include <skalibs/unixmessage.h> +#include <skalibs/unixconnection.h> + +void unixconnection_free (unixconnection_t *io) +{ + unixmessage_sender_free(&io->out) ; + unixmessage_receiver_free(&io->in) ; + *io = unixconnection_zero ; +} |