2.5 Branch: added WM_report and WM_reportf functions for reporting
[blender.git] / source / blender / windowmanager / WM_types.h
index a0d1bc58ecb37db13ddd9b5bcdf66628afd45724..a85988b6a09d3b07cfec77b068c4554fc13c989d 100644 (file)
@@ -138,6 +138,25 @@ typedef struct wmBorderSelect {
        short x2, y2;
 } wmBorderSelect;
 
+/* ****************** Messages ********************* */
+
+enum {
+       WM_LOG_DEBUG                            = 0,
+       WM_LOG_INFO                                     = 1000,
+       WM_LOG_WARNING                          = 2000,
+       WM_ERROR_UNDEFINED                      = 3000,
+       WM_ERROR_INVALID_INPUT          = 3001,
+       WM_ERROR_INVALID_CONTEXT        = 3002,
+       WM_ERROR_OUT_OF_MEMORY          = 3003
+};
+
+typedef struct wmReport {
+       struct wmReport *next, *prev;
+       int type;
+       const char *typestr;
+       char *message;
+} wmReport;
+
 /* *************** migrated stuff, clean later? ******************************** */
 
 typedef struct RecentFile {