Mercurial > hg > freeDiameter
diff freeDiameter/queues.c @ 123:960fa8048805
Merged routing and dispatch files for similarities
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Wed, 09 Dec 2009 19:02:31 +0900 |
parents | ef9ef3bf4752 |
children | cc42d8607114 |
line wrap: on
line diff
--- a/freeDiameter/queues.c Wed Dec 09 17:57:27 2009 +0900 +++ b/freeDiameter/queues.c Wed Dec 09 19:02:31 2009 +0900 @@ -50,20 +50,29 @@ return 0; } -/* Destroy the message queues */ -int fd_queues_fini(void) +/* Destroy the routing message queues */ +int fd_queues_fini_rt(void) { TRACE_ENTRY(); - /* Stop the providing threads */ - TODO("Stop the providing threads"); - /* Empty all contents */ TODO("Empty all contents (dump to log file ?)"); /* Now, delete the queues */ CHECK_FCT( fd_fifo_del ( &fd_g_incoming ) ); CHECK_FCT( fd_fifo_del ( &fd_g_outgoing ) ); + + return 0; +} + +/* Destroy the local message queue */ +int fd_queues_fini_disp(void) +{ + TRACE_ENTRY(); + + /* Empty all contents */ + TODO("Empty all contents (dump to log file ?)"); + CHECK_FCT( fd_fifo_del ( &fd_g_local ) ); return 0;