]> git.tdb.fi Git - gldbg.git/blobdiff - source/gldecoder.h
Add a flavor system to allow addition of other OpenGL versions
[gldbg.git] / source / gldecoder.h
index 41f785c85abec5496f38a7882f63622924084c57..39d4f6ac28c799391d99a8bfd0740a13117754aa 100644 (file)
@@ -1,18 +1,27 @@
 /* $Id$
 
 This file is part of gldbg
-Copyright © 2009  Mikko Rasa, Mikkosoft Productions
+Copyright © 2009-2010  Mikko Rasa, Mikkosoft Productions
 Distributed under the GPL
 */
 
 #ifndef GLDECODER_H_
 #define GLDECODER_H_
 
-#include <GL/gl.h>
-#include "gldecoder.struct"
+#include "opengl.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include "gensrc/gldecoder.struct"
 
 GlDecoder *gldecoder_new(void *, void (*)(void *));
 void gldecoder_delete(GlDecoder *);
-unsigned gldecoder_decode(GlDecoder *, const char *, unsigned);
+int gldecoder_decode(GlDecoder *, const char *, unsigned);
+
+#ifdef __cplusplus
+}
+#endif
 
 #endif