chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge tag 'branchpoint-5.1' into release
[disorder]
/
lib
/
eventlog.c
diff --git
a/lib/eventlog.c
b/lib/eventlog.c
index 9297906e89565cebbf9db45737c7873d446ef764..9ca22926719870db7d7622fdc7c0de64a1914473 100644
(file)
--- a/
lib/eventlog.c
+++ b/
lib/eventlog.c
@@
-15,7
+15,9
@@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-
+/** @file lib/eventlog.c
+ * @brief Event logging
+ */
#include "common.h"
#include <stdarg.h>
#include "common.h"
#include <stdarg.h>
@@
-26,6
+28,7
@@
#include "eventlog.h"
#include "split.h"
#include "eventlog.h"
#include "split.h"
+/** @brief Linked list of event logs */
static struct eventlog_output *outputs;
void eventlog_add(struct eventlog_output *lo) {
static struct eventlog_output *outputs;
void eventlog_add(struct eventlog_output *lo) {
@@
-42,6
+45,11
@@
void eventlog_remove(struct eventlog_output *lo) {
*pp = lo->next;
}
*pp = lo->next;
}
+/** @brief Write to the event log
+ * @param keyword Distinguishing keyword for event
+ * @param raw Unformatted data
+ * @param ap Extra data, terminated by (char *)0
+ */
static void veventlog(const char *keyword, const char *raw, va_list ap) {
struct eventlog_output *p, *pnext;
struct dynstr d;
static void veventlog(const char *keyword, const char *raw, va_list ap) {
struct eventlog_output *p, *pnext;
struct dynstr d;