Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2008-12-19 03:50:21 +0300
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2008-12-19 03:50:21 +0300
commitd9de6fca6cda2a7ddeeb936692b529182a14dec9 (patch)
tree63b5384fe03297bdfb40205c280b36ec043d0ed1 /source/blender/blenkernel/BKE_report.h
parentea81c58429ecd51752e2abb7d756ef1d09514b84 (diff)
2.5: Change blenloader module to use the Report system for reporting errors.
Diffstat (limited to 'source/blender/blenkernel/BKE_report.h')
-rw-r--r--source/blender/blenkernel/BKE_report.h21
1 files changed, 13 insertions, 8 deletions
diff --git a/source/blender/blenkernel/BKE_report.h b/source/blender/blenkernel/BKE_report.h
index 39a50769234..f87910d7872 100644
--- a/source/blender/blenkernel/BKE_report.h
+++ b/source/blender/blenkernel/BKE_report.h
@@ -48,7 +48,8 @@ typedef enum ReportType {
enum ReportListFlags {
RPT_PRINT = 1,
- RPT_STORE = 2
+ RPT_STORE = 2,
+ RPT_HAS_ERROR = 4
};
typedef struct Report {
@@ -60,20 +61,24 @@ typedef struct Report {
typedef struct ReportList {
ListBase list;
- ReportType level;
- int flags;
+ ReportType printlevel;
+ ReportType storelevel;
+ int flag;
} ReportList;
-void BKE_report_list_init(ReportList *reports, int flag);
-void BKE_report_list_clear(ReportList *reports);
+void BKE_reports_init(ReportList *reports, int flag);
+void BKE_reports_clear(ReportList *reports);
void BKE_report(ReportList *reports, ReportType type, const char *message);
void BKE_reportf(ReportList *reports, ReportType type, const char *format, ...);
-ReportType BKE_report_level(ReportList *reports);
-void BKE_report_level_set(ReportList *reports, ReportType level);
+ReportType BKE_report_print_level(ReportList *reports);
+void BKE_report_print_level_set(ReportList *reports, ReportType level);
-int BKE_report_has_error(ReportList *reports);
+ReportType BKE_report_store_level(ReportList *reports);
+void BKE_report_store_level_set(ReportList *reports, ReportType level);
+
+void BKE_reports_print(ReportList *reports, ReportType level);
#ifdef __cplusplus
}