]> git.tdb.fi Git - gldbg.git/blobdiff - source/gldecoder.struct.t
Rewrite genwrap.py to use external templates for more flexibility
[gldbg.git] / source / gldecoder.struct.t
diff --git a/source/gldecoder.struct.t b/source/gldecoder.struct.t
new file mode 100644 (file)
index 0000000..e4cf5c6
--- /dev/null
@@ -0,0 +1,15 @@
+# $Id$
+^typemap gl.tm
+^iomap gl.io
+^spec gl gl.spec
+:typedef struct sGlDecoder
+:{
+:      void *user_data;
+:      void (*destroy)(void *);
+w('    void (*%s)(void *', func.name)
+if ret.ctype!="void":
+       w(', %s', ret.ctype)
+for p in params:
+       w(', %s', p.ctype)
+wl(');')
+:} GlDecoder;