gegl r2121 - in trunk: . gegl
- From: tml svn gnome org
- To: svn-commits-list gnome org
- Subject: gegl r2121 - in trunk: . gegl
- Date: Tue, 26 Feb 2008 15:17:22 +0000 (GMT)
Author: tml
Date: Tue Feb 26 15:17:22 2008
New Revision: 2121
URL: http://svn.gnome.org/viewvc/gegl?rev=2121&view=rev
Log:
2008-02-26 Tor Lillqvist <tml novell com>
* gegl/gegl.h
* gegl/gegl.h.in: Rename gegl.h to gegl.h.in and add
GEGL_MAJOR_VERSION, GEGL_MINOR_VERSION and GEGL_MICRO_VERSION
macros the values of which are expanded by configure. Add
declaration for gegl_get_version().
* gegl/gegl-init.c (gegl_get_version): Implement.
* confiure.ac: Expand gegl/gegl.h.
Added:
trunk/gegl/gegl.h.in
- copied, changed from r2120, /trunk/gegl/gegl.h
Removed:
trunk/gegl/gegl.h
Modified:
trunk/ChangeLog
trunk/configure.ac
trunk/gegl/gegl-init.c
Modified: trunk/configure.ac
==============================================================================
--- trunk/configure.ac (original)
+++ trunk/configure.ac Tue Feb 26 15:17:22 2008
@@ -695,6 +695,7 @@
Makefile
bin/Makefile
gegl/Makefile
+gegl/gegl.h
gegl/buffer/Makefile
gegl/graph/Makefile
gegl/module/Makefile
Modified: trunk/gegl/gegl-init.c
==============================================================================
--- trunk/gegl/gegl-init.c (original)
+++ trunk/gegl/gegl-init.c Tue Feb 26 15:17:22 2008
@@ -209,6 +209,21 @@
g_print ("\n");
}
+void
+gegl_get_version (int *major,
+ int *minor,
+ int *micro)
+{
+ if (major != NULL)
+ *major = GEGL_MAJOR_VERSION;
+
+ if (minor != NULL)
+ *minor = GEGL_MINOR_VERSION;
+
+ if (micro != NULL)
+ *micro = GEGL_MICRO_VERSION;
+}
+
static void
gegl_init_i18n (void)
Copied: trunk/gegl/gegl.h.in (from r2120, /trunk/gegl/gegl.h)
==============================================================================
--- /trunk/gegl/gegl.h (original)
+++ trunk/gegl/gegl.h.in Tue Feb 26 15:17:22 2008
@@ -108,6 +108,31 @@
/***
+ * GEGL version information
+ *
+ * These macros tell the version of GEGL you are compiling against.
+ * GEGL's version number consists of three parts: major, minor and
+ * micro.
+ */
+
+#define GEGL_MAJOR_VERSION @GEGL_MAJOR_VERSION@
+#define GEGL_MINOR_VERSION @GEGL_MINOR_VERSION@
+#define GEGL_MICRO_VERSION @GEGL_MICRO_VERSION@
+
+/**
+ * gegl_get_version:
+ * @major: a pointer to a int where the major version number will be stored
+ * @minor: ditto for the minor version number
+ * @micro: ditto for the micro version number
+ *
+ * This function fetches the version of the GEGL library being used by
+ * the running process.
+ */
+void gegl_get_version (int *major,
+ int *minor,
+ int *micro);
+
+/***
* Available operations:
* Gegl provides means to check for available processing operations that
* can be used with nodes using #gegl_list_operations and for a specified
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]