(return-type "gboolean")
)
+(define-function version
+ (c-name "ges_version")
+ (return-type "none")
+ (parameters
+ '("guint*" "major")
+ '("guint*" "minor")
+ '("guint*" "micro")
+ '("guint*" "nano")
+ )
+)
;; From ges-internal.h
}
%%
+override ges_version noargs
+static PyObject *
+_wrap_ges_version (PyObject *self)
+{
+ guint major, minor, micro, nano;
+ PyObject *py_tuple;
+
+ ges_version (&major, &minor, µ, &nano);
+ py_tuple = PyTuple_New(4);
+ PyTuple_SetItem(py_tuple, 0, PyInt_FromLong(major));
+ PyTuple_SetItem(py_tuple, 1, PyInt_FromLong(minor));
+ PyTuple_SetItem(py_tuple, 2, PyInt_FromLong(micro));
+ PyTuple_SetItem(py_tuple, 3, PyInt_FromLong(nano));
+
+ return py_tuple;
+}
+
+
+%%
ignore-glob
*_get_type
<FILE>ges-common</FILE>
<TITLE>Initialization</TITLE>
ges_init
+ges_version
<SUBSECTION Standard>
GES_PADDING
</SECTION>
return TRUE;
}
+
+
+/**
+ * ges_version:
+ * @major: (out): pointer to a guint to store the major version number
+ * @minor: (out): pointer to a guint to store the minor version number
+ * @micro: (out): pointer to a guint to store the micro version number
+ * @nano: (out): pointer to a guint to store the nano version number
+ *
+ * Gets the version number of the GStreamer Editing Services library.
+ */
+void
+ges_version (guint * major, guint * minor, guint * micro, guint * nano)
+{
+ g_return_if_fail (major);
+ g_return_if_fail (minor);
+ g_return_if_fail (micro);
+ g_return_if_fail (nano);
+
+ *major = GES_VERSION_MAJOR;
+ *minor = GES_VERSION_MINOR;
+ *micro = GES_VERSION_MICRO;
+ *nano = GES_VERSION_NANO;
+}
G_BEGIN_DECLS
-gboolean ges_init (void);
+#define GES_VERSION_MAJOR (0)
+#define GES_VERSION_MINOR (10)
+#define GES_VERSION_MICRO (1)
+#define GES_VERSION_NANO (1)
+
+gboolean ges_init (void);
+
+void ges_version (guint * major, guint * minor, guint * micro,
+ guint * nano);
G_END_DECLS