File: log.h

package info (click to toggle)
libdisplay-info 0.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,460 kB
  • sloc: ansic: 10,055; python: 294; sh: 131; makefile: 3
file content (24 lines) | stat: -rw-r--r-- 380 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef LOG_H
#define LOG_H

/**
 * Private logging utilities.
 */

#include <stdarg.h>
#include <stdbool.h>
#include <stdio.h>

struct di_logger {
	FILE *f;
	const char *section;
	bool initialized;
};

void
_di_logger_va_add_failure(struct di_logger *logger, const char fmt[], va_list args);

void
_di_logger_add_failure(struct di_logger *logger, const char fmt[], ...);

#endif