introduced printf() specifiers for:
host_t (%H) identification_t (%D) chunk pointers (%B) memory pointer/length (%b) added a signaling bus: receives event and debug messages, sends them to its listeners stream_logger, sys_logger, file_logger added, listen to bus some other tweaks here and there
This commit is contained in:
+27
-1
@@ -32,6 +32,9 @@
|
||||
#include <threads/thread_pool.h>
|
||||
#include <threads/stroke_interface.h>
|
||||
#include <network/socket.h>
|
||||
#include <bus/bus.h>
|
||||
#include <bus/listeners/file_logger.h>
|
||||
#include <bus/listeners/sys_logger.h>
|
||||
#include <sa/ike_sa_manager.h>
|
||||
#include <queues/send_queue.h>
|
||||
#include <queues/job_queue.h>
|
||||
@@ -175,9 +178,17 @@
|
||||
* @ingroup charon
|
||||
*/
|
||||
|
||||
/**
|
||||
* @defgroup bus bus
|
||||
*
|
||||
* Signaling bus and its listeners.
|
||||
*
|
||||
* @ingroup charon
|
||||
*/
|
||||
|
||||
/**
|
||||
* Name of the daemon.
|
||||
*
|
||||
*
|
||||
* @ingroup charon
|
||||
*/
|
||||
#define DAEMON_NAME "charon"
|
||||
@@ -336,6 +347,21 @@ struct daemon_t {
|
||||
*/
|
||||
thread_pool_t *thread_pool;
|
||||
|
||||
/**
|
||||
* The signaling bus.
|
||||
*/
|
||||
bus_t *bus;
|
||||
|
||||
/**
|
||||
* A bus listener logging to stdout
|
||||
*/
|
||||
file_logger_t *outlog;
|
||||
|
||||
/**
|
||||
* A bus listener logging to syslog
|
||||
*/
|
||||
sys_logger_t *syslog;
|
||||
|
||||
/**
|
||||
* Kernel Interface to communicate with kernel
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user