Blender  V2.59
BKE_report.h
Go to the documentation of this file.
00001 /*
00002  * $Id: BKE_report.h 35215 2011-02-27 08:31:10Z campbellbarton $
00003  *
00004  * ***** BEGIN GPL LICENSE BLOCK *****
00005  *
00006  * This program is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU General Public License
00008  * as published by the Free Software Foundation; either version 2
00009  * of the License, or (at your option) any later version.
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, write to the Free Software Foundation,
00018  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00019  *
00020  * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
00021  * All rights reserved.
00022  *
00023  * Contributor(s): Blender Foundation (2008).
00024  *
00025  * ***** END GPL LICENSE BLOCK *****
00026  */
00027 
00028 #ifndef BKE_REPORT_H
00029 #define BKE_REPORT_H
00030 
00035 #ifdef __cplusplus
00036 extern "C" {
00037 #endif
00038 
00039 #include "DNA_windowmanager_types.h"
00040 
00041 /* Reporting Information and Errors
00042  *
00043  * These functions also accept NULL in case no error reporting
00044  * is needed. */
00045 
00046 /* report structures are stored in DNA */
00047 
00048 void BKE_reports_init(ReportList *reports, int flag);
00049 void BKE_reports_clear(ReportList *reports);
00050 
00051 void BKE_report(ReportList *reports, ReportType type, const char *message);
00052 void BKE_reportf(ReportList *reports, ReportType type, const char *format, ...)
00053 #ifdef __GNUC__
00054 __attribute__ ((format (printf, 3, 4)))
00055 #endif
00056 ;
00057 
00058 void BKE_reports_prepend(ReportList *reports, const char *prepend);
00059 void BKE_reports_prependf(ReportList *reports, const char *prepend, ...);
00060 
00061 ReportType BKE_report_print_level(ReportList *reports);
00062 void BKE_report_print_level_set(ReportList *reports, ReportType level);
00063 
00064 ReportType BKE_report_store_level(ReportList *reports);
00065 void BKE_report_store_level_set(ReportList *reports, ReportType level);
00066 
00067 char *BKE_reports_string(ReportList *reports, ReportType level);
00068 void BKE_reports_print(ReportList *reports, ReportType level);
00069 
00070 Report *BKE_reports_last_displayable(ReportList *reports);
00071         
00072 #ifdef __cplusplus
00073 }
00074 #endif
00075         
00076 #endif
00077