summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/slang/slang_utility.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/shader/slang/slang_utility.h')
-rw-r--r--src/mesa/shader/slang/slang_utility.h38
1 files changed, 37 insertions, 1 deletions
diff --git a/src/mesa/shader/slang/slang_utility.h b/src/mesa/shader/slang/slang_utility.h
index 7a1997e5597..565de4e4b02 100644
--- a/src/mesa/shader/slang/slang_utility.h
+++ b/src/mesa/shader/slang/slang_utility.h
@@ -1,6 +1,6 @@
/*
* Mesa 3-D graphics library
- * Version: 6.5
+ * Version: 6.6
*
* Copyright (C) 2005-2006 Brian Paul All Rights Reserved.
*
@@ -44,6 +44,42 @@ extern "C" {
char *slang_string_concat (char *, const char *);
+/* slang_string */
+
+typedef struct
+{
+ char *data;
+ GLuint length;
+ GLuint capacity;
+ GLboolean fail;
+} slang_string;
+
+GLvoid
+slang_string_init (slang_string *);
+
+GLvoid
+slang_string_free (slang_string *);
+
+GLvoid
+slang_string_reset (slang_string *);
+
+GLvoid
+slang_string_push (slang_string *, const slang_string *);
+
+GLvoid
+slang_string_pushc (slang_string *, const char);
+
+GLvoid
+slang_string_pushs (slang_string *, const char *, GLuint);
+
+GLvoid
+slang_string_pushi (slang_string *, GLint);
+
+const char *
+slang_string_cstr (slang_string *);
+
+/* slang_atom */
+
typedef GLvoid *slang_atom;
#define SLANG_ATOM_NULL ((slang_atom) 0)