Added some comments about msc_set_log_cb

This commit is contained in:
Chaim Sanders 2015-09-25 00:42:39 -04:00
parent d044c7aaec
commit 1cf1e313cc

View File

@ -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);
}