Blender V4.3
BKE_report.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
11#include <stdio.h>
12
13#include "BLI_compiler_attrs.h"
14#include "BLI_utildefines.h"
16
26/* Report structures are stored in DNA. */
27
33void BKE_reports_init(ReportList *reports, int flag);
43void BKE_reports_free(ReportList *reports);
44
52void BKE_reports_clear(ReportList *reports);
53
55void BKE_reports_move_to_reports(ReportList *reports_dst, ReportList *reports_src);
56
58void BKE_reports_lock(ReportList *reports);
59void BKE_reports_unlock(ReportList *reports);
60
61void BKE_report(ReportList *reports, eReportType type, const char *message);
62void BKE_reportf(ReportList *reports, eReportType type, const char *format, ...)
64
65void BKE_reports_prepend(ReportList *reports, const char *prepend);
66void BKE_reports_prependf(ReportList *reports, const char *prepend_format, ...)
68
71
74
75char *BKE_reports_string(ReportList *reports, eReportType level);
76
80bool BKE_reports_print_test(const ReportList *reports, eReportType type);
81void BKE_reports_print(ReportList *reports, eReportType level);
82
84
85bool BKE_reports_contain(ReportList *reports, eReportType level);
86
87const char *BKE_report_type_str(eReportType type);
88
89bool BKE_report_write_file_fp(FILE *fp, ReportList *reports, const char *header);
90bool BKE_report_write_file(const char *filepath, ReportList *reports, const char *header);
bool BKE_reports_contain(ReportList *reports, eReportType level)
Definition report.cc:342
void BKE_reports_unlock(ReportList *reports)
Definition report.cc:108
bool BKE_reports_print_test(const ReportList *reports, eReportType type)
Definition report.cc:297
eReportType BKE_report_store_level(ReportList *reports)
Definition report.cc:248
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.cc:371
char * BKE_reports_string(ReportList *reports, eReportType level)
Definition report.cc:268
void BKE_reports_prependf(ReportList *reports, const char *prepend_format,...) ATTR_PRINTF_FORMAT(2
bool BKE_report_write_file_fp(FILE *fp, ReportList *reports, const char *header)
Definition report.cc:356
Report * BKE_reports_last_displayable(ReportList *reports)
Definition report.cc:329
void BKE_reports_free(ReportList *reports)
Definition report.cc:69
const char * BKE_report_type_str(eReportType type)
Definition report.cc:28
void BKE_report_print_level_set(ReportList *reports, eReportType level)
Definition report.cc:237
void eReportType BKE_report_print_level(ReportList *reports)
Definition report.cc:228
void BKE_report_store_level_set(ReportList *reports, eReportType level)
Definition report.cc:257
void BKE_reports_clear(ReportList *reports)
Definition report.cc:81
void BKE_report(ReportList *reports, eReportType type, const char *message)
Definition report.cc:125
void void BKE_reports_prepend(ReportList *reports, const char *prepend)
Definition report.cc:205
void BKE_reports_lock(ReportList *reports)
Definition report.cc:103
void BKE_reports_init(ReportList *reports, int flag)
Definition report.cc:54
void BKE_reports_print(ReportList *reports, eReportType level)
Definition report.cc:315
void BKE_reports_move_to_reports(ReportList *reports_dst, ReportList *reports_src)
Definition report.cc:113
#define ATTR_PRINTF_FORMAT(format_param, dots_param)
format
uint8_t flag
Definition wm_window.cc:138