summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/slang/slang_compile.h
diff options
context:
space:
mode:
authorMichal Krol <[email protected]>2005-04-15 10:23:10 +0000
committerMichal Krol <[email protected]>2005-04-15 10:23:10 +0000
commite3a846b0e32920f8c7750a77d263e5c5fd87b0b9 (patch)
tree91d1e2103daa0ae643b7b29becf09295164c5d1b /src/mesa/shader/slang/slang_compile.h
parent65ce50897eb8d7547e4ef1cc1edf82a03e4a697d (diff)
implement info log; parse #version directive
Diffstat (limited to 'src/mesa/shader/slang/slang_compile.h')
-rw-r--r--src/mesa/shader/slang/slang_compile.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/mesa/shader/slang/slang_compile.h b/src/mesa/shader/slang/slang_compile.h
index 0f49df747f2..59e7ee8f029 100644
--- a/src/mesa/shader/slang/slang_compile.h
+++ b/src/mesa/shader/slang/slang_compile.h
@@ -225,7 +225,19 @@ typedef struct slang_translation_unit_
slang_unit_type type;
} slang_translation_unit;
-int _slang_compile (const char *, slang_translation_unit *, slang_unit_type type);
+typedef struct slang_info_log_
+{
+ char *text;
+ int dont_free_text;
+} slang_info_log;
+
+void slang_info_log_construct (slang_info_log *);
+void slang_info_log_destruct (slang_info_log *);
+int slang_info_log_error (slang_info_log *, const char *, ...);
+int slang_info_log_warning (slang_info_log *, const char *, ...);
+void slang_info_log_memory (slang_info_log *);
+
+int _slang_compile (const char *, slang_translation_unit *, slang_unit_type type, slang_info_log *);
#ifdef __cplusplus
}