dpkg (1.18.25) stretch; urgency=medium
[dpkg] / lib / dpkg / report.h
CommitLineData
1479465f
GJ
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
30DPKG_BEGIN_DECLS
31
32/**
33 * @defgroup report Message reporting
34 * @ingroup dpkg-internal
35 * @{
36 */
37
38void dpkg_set_report_piped_mode(int mode);
39void dpkg_set_report_buffer(FILE *fp);
40
41int warning_get_count(void);
42void warningv(const char *fmt, va_list args) DPKG_ATTR_VPRINTF(1);
43void warning(const char *fmt, ...) DPKG_ATTR_PRINTF(1);
44
45void notice(const char *fmt, ...) DPKG_ATTR_PRINTF(1);
46
47void info(const char *fmt, ...) DPKG_ATTR_PRINTF(1);
48
49/** @} */
50
51DPKG_END_DECLS
52
53#endif /* LIBDPKG_REPORT_H */