Blender  V3.3
BKE_report.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
3 #pragma once
4 
9 #include <stdio.h>
10 
11 #include "BLI_compiler_attrs.h"
12 #include "BLI_utildefines.h"
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
19 /* Reporting Information and Errors
20  *
21  * These functions also accept NULL in case no error reporting
22  * is needed. */
23 
24 /* Report structures are stored in DNA. */
25 
26 void BKE_reports_init(ReportList *reports, int flag);
32 void BKE_reports_clear(ReportList *reports);
33 
34 void BKE_report(ReportList *reports, eReportType type, const char *message);
35 void BKE_reportf(ReportList *reports, eReportType type, const char *format, ...)
36  ATTR_PRINTF_FORMAT(3, 4);
37 
38 void BKE_reports_prepend(ReportList *reports, const char *prepend);
39 void BKE_reports_prependf(ReportList *reports, const char *prepend, ...) ATTR_PRINTF_FORMAT(2, 3);
40 
43 
46 
47 char *BKE_reports_string(ReportList *reports, eReportType level);
48 
53 void BKE_reports_print(ReportList *reports, eReportType level);
54 
56 
57 bool BKE_reports_contain(ReportList *reports, eReportType level);
58 
60 
61 bool BKE_report_write_file_fp(FILE *fp, ReportList *reports, const char *header);
62 bool BKE_report_write_file(const char *filepath, ReportList *reports, const char *header);
63 
64 #ifdef __cplusplus
65 }
66 #endif
bool BKE_reports_contain(ReportList *reports, eReportType level)
Definition: report.c:293
bool BKE_reports_print_test(const ReportList *reports, eReportType type)
Definition: report.c:259
eReportType BKE_report_store_level(ReportList *reports)
Definition: report.c:213
void BKE_reportf(ReportList *reports, eReportType type, const char *format,...) ATTR_PRINTF_FORMAT(3
bool BKE_report_write_file(const char *filepath, ReportList *reports, const char *header)
Definition: report.c:321
Report * BKE_reports_last_displayable(ReportList *reports)
Definition: report.c:280
bool BKE_report_write_file_fp(FILE *fp, ReportList *reports, const char *header)
Definition: report.c:306
const char * BKE_report_type_str(eReportType type)
Definition: report.c:24
void BKE_report_print_level_set(ReportList *reports, eReportType level)
Definition: report.c:204
void eReportType BKE_report_print_level(ReportList *reports)
Definition: report.c:195
void BKE_report_store_level_set(ReportList *reports, eReportType level)
Definition: report.c:222
void BKE_reports_clear(ReportList *reports)
Definition: report.c:63
void BKE_report(ReportList *reports, eReportType type, const char *message)
Definition: report.c:83
void BKE_reports_prependf(ReportList *reports, const char *prepend,...) ATTR_PRINTF_FORMAT(2
char * BKE_reports_string(ReportList *reports, eReportType level)
Definition: report.c:231
void void BKE_reports_prepend(ReportList *reports, const char *prepend)
Definition: report.c:144
void BKE_reports_init(ReportList *reports, int flag)
Definition: report.c:50
void BKE_reports_print(ReportList *reports, eReportType level)
Definition: report.c:267
size_t ATTR_PRINTF_FORMAT(3, 4)
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum type
format
Definition: logImageCore.h:38