libpkgconf audit module

The libpkgconf audit module contains the functions related to attaching an audit log file to a pkgconf_client_t object.

The audit log format is the same as the output generated by the PKG_CONFIG_LOG environment variable.

void pkgconf_audit_set_log(pkgconf_client_t *client, FILE *auditf)

Sets the audit log file pointer on client to auditf. The callee is responsible for closing any previous log files.

Parameters:
  • client (pkgconf_client_t*) – The client object to modify.
  • auditf (FILE*) – The file pointer for the already open log file.
Returns:

nothing

void pkgconf_audit_log(pkgconf_client_t *client, const char *format, ...)

Logs a message to the opened audit log (if any).

Parameters:
  • client (pkgconf_client_t*) – The client object the log message is for.
  • format (char*) – The format string to use for the log messages.
Returns:

nothing

void pkgconf_audit_log_dependency(pkgconf_client_t *client, const pkgconf_pkg_t *dep, const pkgconf_dependency_t *depnode)

Convenience function which logs a dependency node to the opened audit log (if any).

Parameters:
  • client (pkgconf_client_t*) – The client object the log message is for.
  • dep (pkgconf_pkg_t*) – The dependency package object being logged.
  • depnode (pkgconf_dependency_t*) – The dependency object itself being logged.
Returns:

nothing