[gegl] opencl: Add introspection annotations for init & disable.



commit 81a0912aaeba0d485e5c9bdbf6dab096f9303ebb
Author: Daniel Sabo <DanielSabo gmail com>
Date:   Tue Oct 1 01:18:53 2013 -0700

    opencl: Add introspection annotations for init & disable.

 gegl/Makefile.am                            |    4 +++-
 gegl/opencl/gegl-cl-introspection-support.h |   27 +++++++++++++++++++++++++++
 2 files changed, 30 insertions(+), 1 deletions(-)
---
diff --git a/gegl/Makefile.am b/gegl/Makefile.am
index 73c80cb..f7d239a 100644
--- a/gegl/Makefile.am
+++ b/gegl/Makefile.am
@@ -117,7 +117,9 @@ libgegl_ GEGL_API_VERSION@_la_LIBADD = \
 if HAVE_INTROSPECTION
 introspection_sources = \
        $(GEGL_introspectable_headers) \
-       gegl-introspection-support.h
+       gegl-introspection-support.h \
+       opencl/gegl-cl-introspection-support.h
+
 
 Gegl- GEGL_API_VERSION@.gir: libgegl- GEGL_API_VERSION@.la Makefile
 Gegl_ GEGL_MAJOR_VERSION@_ GEGL_MINOR_VERSION@_gir_INCLUDES = GObject-2.0 GLib-2.0
diff --git a/gegl/opencl/gegl-cl-introspection-support.h b/gegl/opencl/gegl-cl-introspection-support.h
new file mode 100644
index 0000000..c0ee928
--- /dev/null
+++ b/gegl/opencl/gegl-cl-introspection-support.h
@@ -0,0 +1,27 @@
+
+ /**
+ * gegl_cl_init:
+ * @error: Any error that occured
+ *
+ * Initialize and enable OpenCL, calling this function again
+ * will re-enable OpenCL if it has been disabled.
+ *
+ * Return value: True if OpenCL was initialized
+ */
+gboolean          gegl_cl_init (GError **error);
+
+ /**
+ * gegl_cl_is_accelerated:
+ *
+ * Check if OpenCL is enabled.
+ *
+ * Return value: True if OpenCL is initialized and enabled
+ */
+gboolean          gegl_cl_is_accelerated (void);
+
+ /**
+ * gegl_cl_disable:
+ *
+ * Disable OpenCL
+ */
+void              gegl_cl_disable (void);
\ No newline at end of file


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]