forked from ariadne/pkgconf
35 lines
803 B
C
35 lines
803 B
C
/*
|
|
* audit.c
|
|
* package audit log functions
|
|
*
|
|
* Copyright (c) 2016 pkgconf authors (see AUTHORS).
|
|
*
|
|
* Permission to use, copy, modify, and/or distribute this software for any
|
|
* purpose with or without fee is hereby granted, provided that the above
|
|
* copyright notice and this permission notice appear in all copies.
|
|
*
|
|
* This software is provided 'as is' and without any warranty, express or
|
|
* implied. In no event shall the authors be liable for any damages arising
|
|
* from the use of this software.
|
|
*/
|
|
|
|
#include <libpkgconf/libpkgconf.h>
|
|
|
|
static FILE *pkgconf_auditf = NULL;
|
|
|
|
void
|
|
pkgconf_audit_open_log(FILE *auditf)
|
|
{
|
|
pkgconf_auditf = auditf;
|
|
}
|
|
|
|
void
|
|
pkgconf_audit_log(const char *format, ...)
|
|
{
|
|
va_list va;
|
|
|
|
va_start(va, format);
|
|
vfprintf(pkgconf_auditf, format, va);
|
|
va_end(va);
|
|
}
|