From 1cf1e313ccfac96d2957fe3385c6c4075355b8a7 Mon Sep 17 00:00:00 2001 From: Chaim Sanders Date: Fri, 25 Sep 2015 00:42:39 -0400 Subject: [PATCH] Added some comments about msc_set_log_cb --- src/modsecurity.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/modsecurity.cc b/src/modsecurity.cc index 73769b5b..61948f7d 100644 --- a/src/modsecurity.cc +++ b/src/modsecurity.cc @@ -152,6 +152,18 @@ void ModSecurity::setServerLogCb(LogCb cb) { m_logCb = (LogCb) cb; } +/** + * @name msc_set_log_cb + * @brief Set the log callback functiond + * + * It is neccessary to indicate to libModSecurity which function within the + * connector should be called when logging is required. + * + * @oarm msc The current ModSecurity instance + * @param LogCB The callback function to which a reference to the log msgs + * will be passed. + * + */ extern "C" void msc_set_log_cb(ModSecurity *msc, LogCb cb) { msc->setServerLogCb(cb); }