Blender V2.61 - r43446

BKE_report.h

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