4 * ***** BEGIN GPL LICENSE BLOCK *****
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software Foundation,
18 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
21 * All rights reserved.
23 * Contributor(s): Blender Foundation (2008).
25 * ***** END GPL LICENSE BLOCK *****
35 #include "DNA_windowmanager_types.h"
37 /* Reporting Information and Errors
39 * These functions also accept NULL in case no error reporting
42 /* report structures are stored in DNA */
44 void BKE_reports_init(ReportList *reports, int flag);
45 void BKE_reports_clear(ReportList *reports);
47 void BKE_report(ReportList *reports, ReportType type, const char *message);
48 void BKE_reportf(ReportList *reports, ReportType type, const char *format, ...);
50 void BKE_reports_prepend(ReportList *reports, const char *prepend);
51 void BKE_reports_prependf(ReportList *reports, const char *prepend, ...);
53 ReportType BKE_report_print_level(ReportList *reports);
54 void BKE_report_print_level_set(ReportList *reports, ReportType level);
56 ReportType BKE_report_store_level(ReportList *reports);
57 void BKE_report_store_level_set(ReportList *reports, ReportType level);
59 char *BKE_reports_string(ReportList *reports, ReportType level);
60 void BKE_reports_print(ReportList *reports, ReportType level);