dpkg 1.21.11
report.h
Go to the documentation of this file.
1/*
2 * libdpkg - Debian packaging suite library routines
3 * report.h - message reporting
4 *
5 * Copyright © 2004 Scott James Remnant <scott@netsplit.com>
6 * Copyright © 2008-2012 Guillem Jover <guillem@debian.org>
7 *
8 * This is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see <https://www.gnu.org/licenses/>.
20 */
21
22#ifndef LIBDPKG_REPORT_H
23#define LIBDPKG_REPORT_H
24
25#include <stdarg.h>
26#include <stdio.h>
27
28#include <dpkg/macros.h>
29
31
38void dpkg_set_report_piped_mode(int mode);
39void dpkg_set_report_buffer(FILE *fp);
40
41typedef void dpkg_warning_printer_func(const char *msg, void *data);
42
43void dpkg_warning_printer(const char *msg, void *data);
45
46int warning_get_count(void);
47void warningv(const char *fmt, va_list args) DPKG_ATTR_VPRINTF(1);
48void warning(const char *fmt, ...) DPKG_ATTR_PRINTF(1);
49
50void notice(const char *fmt, ...) DPKG_ATTR_PRINTF(1);
51
52void info(const char *fmt, ...) DPKG_ATTR_PRINTF(1);
53
57
58#endif /* LIBDPKG_REPORT_H */
void * args[20]
Definition: ehandle.c:89
#define DPKG_BEGIN_DECLS
Definition: macros.h:86
#define DPKG_ATTR_VPRINTF(n)
Definition: macros.h:57
#define DPKG_ATTR_PRINTF(n)
Definition: macros.h:56
#define DPKG_END_DECLS
Definition: macros.h:87
void warningv(const char *fmt, va_list args) DPKG_ATTR_VPRINTF(1)
Definition: report.c:81
void info(const char *fmt,...) DPKG_ATTR_PRINTF(1)
Definition: report.c:119
int warning_get_count(void)
Definition: report.c:75
void notice(const char *fmt,...) DPKG_ATTR_PRINTF(1)
Definition: report.c:103
void dpkg_set_report_piped_mode(int mode)
Definition: report.c:40
void warning(const char *fmt,...) DPKG_ATTR_PRINTF(1)
Definition: report.c:93
void dpkg_set_report_buffer(FILE *fp)
Definition: report.c:46
void dpkg_warning_printer_func(const char *msg, void *data)
Definition: report.h:41
void dpkg_set_warning_printer(dpkg_warning_printer_func *printer, void *data)
Definition: report.c:66
void dpkg_warning_printer(const char *msg, void *data)
Definition: report.c:55