diff --git a/ChangeLog b/ChangeLog index f6ed49fd16..934d7bd780 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2004-02-27 Johan Dahlin + * gstreamer/: All over the place, more rename work (gstreamer -> gst) + * examples/gstreamer/filesrc.py,player.py: New examples * gstreamer/gstreamer.override: Add a dict like interface to GstTagList diff --git a/Makefile.am b/Makefile.am index d7f2064e1d..02d72ec645 100644 --- a/Makefile.am +++ b/Makefile.am @@ -4,13 +4,8 @@ else SUBDIRS_DOCS = endif -if GST_0_6 -INTERFACESDIR = -PLAYDIR = -else INTERFACESDIR = gstinterfaces PLAYDIR = gstplay -endif UNCONDDIRS = gstreamer pkgconfig examples testsuite SUBDIRS = \ diff --git a/autogen.sh b/autogen.sh index 8f79e7bb30..f0985f5356 100755 --- a/autogen.sh +++ b/autogen.sh @@ -3,7 +3,7 @@ DIE=0 package=gst-python -srcfile=gstreamer/gstreamermodule.c +srcfile=gstreamer/gstmodule.c # a quick cvs co if necessary to alleviate the pain - may remove this # when developers get a clue ;) diff --git a/configure.ac b/configure.ac index 9d410e2cfd..60832fcfe0 100644 --- a/configure.ac +++ b/configure.ac @@ -6,7 +6,7 @@ AC_CANONICAL_TARGET AS_VERSION(gst-python, GST_PYTHON_VERSION, 0, 1, 0, 1) AM_INIT_AUTOMAKE($PACKAGE,$VERSION) -AC_CONFIG_SRCDIR([gstreamer/gstreamermodule.c]) +AC_CONFIG_SRCDIR([gstreamer/gstmodule.c]) AM_CONFIG_HEADER(config.h) dnl Add parameters for aclocal @@ -16,7 +16,7 @@ dnl required versions of other packages AC_SUBST(PYGTK_REQ, 2.0.0) AC_SUBST(GLIB_REQ, 2.0.0) AC_SUBST(GTK_REQ, 2.0.0) -AC_SUBST(GST_REQ, 0.6.0) +AC_SUBST(GST_REQ, 0.7.5) AC_DISABLE_STATIC AC_PROG_LIBTOOL @@ -41,26 +41,15 @@ fi AM_CHECK_PYTHON_HEADERS(,[AC_MSG_ERROR(could not find Python headers)]) dnl check for GStreamer -dnl start with 0.7 GST_MAJORMINOR=0.7 PKG_CHECK_MODULES(GST, gstreamer-$GST_MAJORMINOR >= $GST_REQ, HAVE_GSTREAMER=yes,HAVE_GSTREAMER=no) -dnl try 0.6 -if test "x$HAVE_GSTREAMER" = "xno"; then - GST_MAJORMINOR=0.6 - PKG_CHECK_MODULES(GST, gstreamer-$GST_MAJORMINOR >= $GST_REQ, - HAVE_GSTREAMER=yes,HAVE_GSTREAMER=no) -fi - dnl Give error and exit if we don't have gstreamer if test "x$HAVE_GSTREAMER" = "xno"; then AC_MSG_ERROR(you need gstreamer development packages installed !) fi - AC_SUBST(GST_MAJORMINOR) -AM_CONDITIONAL(GST_0_6, test $GST_MAJORMINOR = 0.6) -AM_CONDITIONAL(GST_0_7, test $GST_MAJORMINOR = 0.7) dnl check for pygtk PKG_CHECK_MODULES(PYGTK, pygtk-2.0 >= $PYGTK_REQ) @@ -93,28 +82,23 @@ if test "x$GST_INCLUDEDIR" = "x"; then fi AC_SUBST(GST_INCLUDEDIR) -if test "x$GST_MAJORMINOR" != "x0.6"; then - AC_MSG_CHECKING(for GStreamer interfaces include dir) - PKG_CHECK_MODULES(GST_INTERFACES, gstreamer-interfaces-$GST_MAJORMINOR) - GST_INTERFACES_INCLUDEDIR=`$PKG_CONFIG --variable=includedir gstreamer-interfaces-$GST_MAJORMINOR` - AC_MSG_RESULT($GST_INTERFACES_INCLUDEDIR) - if test "x$GST_INTERFACES_INCLUDEDIR" = "x"; then - AC_MSG_ERROR(no GStreamer interfaces include dir found) - fi - AC_SUBST(GST_INTERFACES_INCLUDEDIR) +AC_MSG_CHECKING(for GStreamer interfaces include dir) +PKG_CHECK_MODULES(GST_INTERFACES, gstreamer-interfaces-$GST_MAJORMINOR) +GST_INTERFACES_INCLUDEDIR=`$PKG_CONFIG --variable=includedir gstreamer-interfaces-$GST_MAJORMINOR` +AC_MSG_RESULT($GST_INTERFACES_INCLUDEDIR) +if test "x$GST_INTERFACES_INCLUDEDIR" = "x"; then + AC_MSG_ERROR(no GStreamer interfaces include dir found) fi +AC_SUBST(GST_INTERFACES_INCLUDEDIR) -if test "x$GST_MAJORMINOR" != "x0.6"; then - AC_MSG_CHECKING(for GStreamer play include dir) - PKG_CHECK_MODULES(GST_PLAY, gstreamer-play-$GST_MAJORMINOR) - GST_PLAY_INCLUDEDIR=`$PKG_CONFIG --variable=includedir gstreamer-play-$GST_MAJORMINOR` - AC_MSG_RESULT($GST_PLAY_INCLUDEDIR) - if test "x$GST_PLAY_INCLUDEDIR" = "x"; then - AC_MSG_ERROR(no GStreamer play include dir found) - fi - AC_SUBST(GST_PLAY_INCLUDEDIR) +AC_MSG_CHECKING(for GStreamer play include dir) +PKG_CHECK_MODULES(GST_PLAY, gstreamer-play-$GST_MAJORMINOR) +GST_PLAY_INCLUDEDIR=`$PKG_CONFIG --variable=includedir gstreamer-play-$GST_MAJORMINOR` +AC_MSG_RESULT($GST_PLAY_INCLUDEDIR) +if test "x$GST_PLAY_INCLUDEDIR" = "x"; then + AC_MSG_ERROR(no GStreamer play include dir found) fi - +AC_SUBST(GST_PLAY_INCLUDEDIR) AC_CHECK_PROG(HAVE_XMLTO, xmlto, true, false) AC_CHECK_PROG(HAVE_XMLCATALOG, xmlcatalog, true, false) diff --git a/gst/.gitignore b/gst/.gitignore index f282f279f4..a4cff35a2c 100644 --- a/gst/.gitignore +++ b/gst/.gitignore @@ -7,8 +7,5 @@ Makefile.in *.py[co] .libs .deps -gstreamer.c -gstreamer-base.defs -gstreamer.defs -gstreamer.override -h2def.defs +gst.c +gst.defs diff --git a/gst/Makefile.am b/gst/Makefile.am index 3c736cfd0b..fb30349f92 100644 --- a/gst/Makefile.am +++ b/gst/Makefile.am @@ -13,31 +13,26 @@ pygstreamer_PYTHON = gstreamer.py pygstexecdir = $(pkgpyexecdir) -GST_OVERRIDES = \ - gstreamer.override \ - gstpad-handlers.override +GST_OVERRIDES = gst.override gstpad-handlers.override pygstexec_LTLIBRARIES = _gstmodule.la -_gstmodule_la_SOURCES = \ - gstreamermodule.c \ - gst-types.c \ - $(VERSOURCES) +_gstmodule_la_SOURCES = gstmodule.c gst-types.c _gstmodule_la_CFLAGS = $(GST_CFLAGS) -fno-strict-aliasing _gstmodule_la_LIBADD = $(GST_LIBS) _gstmodule_la_LDFLAGS = -module -avoid-version -export-symbols-regex init_gst -nodist__gstmodule_la_SOURCES = gstreamer.c +nodist__gstmodule_la_SOURCES = gst.c -CLEANFILES = gstreamer.c -EXTRA_DIST = gstreamer.defs $(GST_OVERRIDES) arg-types.py +CLEANFILES = gst.c +EXTRA_DIST = gst.defs $(GST_OVERRIDES) arg-types.py -gstreamer.c: $(srcdir)/gstreamer.defs $(srcdir)/arg-types.py $(GST_OVERRIDES) +gst.c: $(srcdir)/gst.defs $(srcdir)/arg-types.py $(GST_OVERRIDES) $(PYGTK_CODEGEN) \ --load-types $(srcdir)/arg-types.py \ --register $(srcdir)/gst-types.defs \ - --override $(srcdir)/gstreamer.override \ - --prefix pygst gstreamer.defs > gen-gstreamer.c \ + --override $(srcdir)/gst.override \ + --prefix pygst gst.defs > gen-gst.c \ && rm -fr gtreamer.c \ - && echo '/* GENERATED FILE - DO NOT EDIT */' >> gstreamer.c \ - && cat gen-gstreamer.c >> gstreamer.c \ - && rm -f gen-gstreamer.c + && echo '/* GENERATED FILE - DO NOT EDIT */' >> gst.c \ + && cat gen-gst.c >> gst.c \ + && rm -f gen-gst.c diff --git a/gst/__init__.py b/gst/__init__.py index 7271efc3ff..5ad3871b91 100644 --- a/gst/__init__.py +++ b/gst/__init__.py @@ -36,8 +36,7 @@ sys.setdlopenflags(dl.RTLD_LAZY | dl.RTLD_GLOBAL) del devloc, sys, os from _gst import * - -#from gtk import threads_init, threads_enter, threads_leave +del _gst def threads_init(): import gtk diff --git a/gst/gst.override b/gst/gst.override new file mode 100644 index 0000000000..bffba608b1 --- /dev/null +++ b/gst/gst.override @@ -0,0 +1,898 @@ +/* -*- Mode: C; c-basic-offset: 4 -*- */ +/* gst-python + * Copyright (C) 2002 David I. Lehn + * Copyright (C) 2004 Johan Dahlin + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + * + * Author: David I. Lehn + */ +%% +headers +#include + +#include "pygobject.h" +#include +#include +#include + +typedef struct { + PyGObject *pad; + PyObject *link_function; + PyObject *event_function; + PyObject *chain_function; + PyObject *get_function; +} PyGstPadPrivate; + +typedef struct { + PyObject *func, *data; +} PyGstCustomNotify; + +void iterate_bin_all(GstBin *bin); +guint add_iterate_bin(GstBin *bin); +void remove_iterate_bin(guint id); + +extern gboolean +pygst_data_from_pyobject(PyObject *object, GstData **data); + +%% +include + gstpad-handlers.override +%% +modulename gst +%% +import gobject.GObject as PyGObject_Type +%% +ignore-glob + _* + gstreamer_*init + *_get_type + *_copy + *_free + *_valist + *_private + gst_registry_* + gst_value_* +%% +override gst_buffer_get_data + +static PyObject* +_wrap_gst_buffer_get_data(PyObject *self) +{ + GstBuffer *buf; + + buf = pyg_boxed_get(self, GstBuffer); + + return PyString_FromStringAndSize( + GST_BUFFER_DATA(buf), + GST_BUFFER_SIZE(buf)); +} +%% +override gst_buffer_set_data kwargs + +static PyObject* +_wrap_gst_buffer_set_data(PyObject *self, PyObject *args, PyObject *kwargs) +{ + static char *kwlist[] = {"data", NULL}; + PyObject *data; + GstBuffer *buf; + + if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:GstBuffer:set_data", kwlist, &data)) { + return NULL; + } + if (!PyString_Check(data)) { + PyErr_SetString(PyExc_TypeError, "data should be a string"); + return NULL; + } + buf = pyg_boxed_get(self, GstBuffer); + if (GST_BUFFER_FLAGS(buf) & GST_BUFFER_READONLY) { + PyErr_SetString(PyExc_TypeError, "set_data can't use a READONLY buffer"); + return NULL; + } + GST_BUFFER_SIZE(buf) = PyString_Size(data); + GST_BUFFER_DATA(buf) = g_new0(char, GST_BUFFER_SIZE(buf)); + + memcpy(GST_BUFFER_DATA(buf), + PyString_AsString(data), + PyString_Size(data)); + + Py_INCREF(Py_None); + return Py_None; +} +%% +override gst_bin_iterate + +static PyObject * +_wrap_gst_bin_iterate(PyGObject *self) +{ + int ret; + + pyg_unblock_threads(); + ret = gst_bin_iterate(GST_BIN(self->obj)); + pyg_block_threads(); + return PyInt_FromLong(ret); +} +%% +override gst_element_set_state kwargs + +static PyObject * +_wrap_gst_element_set_state(PyGObject *self, PyObject *args, PyObject *kwargs) +{ + static char *kwlist[] = { "state", NULL }; + PyObject *py_state = NULL; + GstElementState state; + gint ret; + + if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:GstElement.set_state", kwlist, &py_state)) + return NULL; + if (pyg_flags_get_value(GST_TYPE_ELEMENT_STATE, py_state, (gint *)&state)) + return NULL; + pyg_unblock_threads(); + ret = gst_element_set_state(GST_ELEMENT(self->obj), state); + pyg_block_threads(); + return PyInt_FromLong(ret); +} +%% +override gst_pad_query kwargs + +static PyObject * +_wrap_gst_pad_query(PyGObject *self, PyObject *args, PyObject *kwargs) +{ + static char *kwlist[] = { "type", "format", NULL }; + GstQueryType type; + GstFormat format; + gint64 value; + gboolean ret; + + if (!PyArg_ParseTupleAndKeywords(args, kwargs, "ii:GstPad.query", kwlist, &type, &format)) + return NULL; + value = 0; + ret = gst_pad_query(GST_PAD(self->obj), type, &format, &value); + return Py_BuildValue("(bL)", ret, value); +} +%% +override gst_element_query kwargs + +static PyObject * +_wrap_gst_element_query(PyGObject *self, PyObject *args, PyObject *kwargs) +{ + static char *kwlist[] = { "type", "format", NULL }; + GstQueryType type; + GstFormat format; + gint64 value; + gboolean ret; + + if (!PyArg_ParseTupleAndKeywords(args, kwargs, "ii:GstElement.query", kwlist, &type, &format)) + return NULL; + value = 0; + ret = gst_element_query(GST_ELEMENT(self->obj), type, &format, &value); + return Py_BuildValue("(bL)", ret, value); +} +%% +override gst_pad_convert kwargs + +static PyObject * +_wrap_gst_pad_convert(PyGObject *self, PyObject *args, PyObject *kwargs) +{ + static char *kwlist[] = { "src_format", "src_value", "dest_format", NULL }; + GstFormat src_format, dest_format; + PyObject *src_value_obj; + gint64 src_value, dest_value; + gboolean ret; + + if (!PyArg_ParseTupleAndKeywords(args, kwargs, "iOi:GstPad.convert", kwlist, &src_format, &src_value_obj, &dest_format)) + return NULL; + src_value = PyLong_AsLongLong(src_value_obj); + dest_value = 0; + ret = gst_pad_convert(GST_PAD(self->obj), src_format, src_value, &dest_format, &dest_value); + return Py_BuildValue("(bL)", ret, dest_value); +} +%% +override gst_element_convert kwargs + +static PyObject * +_wrap_gst_element_convert(PyGObject *self, PyObject *args, PyObject *kwargs) +{ + static char *kwlist[] = { "src_format", "src_value", "dest_format", NULL }; + GstFormat src_format, dest_format; + PyObject *src_value_obj; + gint64 src_value, dest_value; + gboolean ret; + + if (!PyArg_ParseTupleAndKeywords(args, kwargs, "iOi:GstElement.convert", kwlist, &src_format, &src_value_obj, &dest_format)) + return NULL; + src_value = PyLong_AsLongLong(src_value_obj); + dest_value = 0; + ret = gst_element_convert(GST_ELEMENT(self->obj), src_format, src_value, &dest_format, &dest_value); + return Py_BuildValue("(bL)", ret, dest_value); +} +%% +override gst_version noargs +static PyObject * +_wrap_gst_version(void) +{ + guint major, minor, micro; + + gst_version(&major, &minor, µ); + + return Py_BuildValue("(iii)", major, minor, micro); +} + +%% +override gst_bin_add_many args +static PyObject * +_wrap_gst_bin_add_many(PyGObject *self, PyObject *args) +{ + PyGObject *element; + int i; + int len; + + len = PyTuple_Size(args); + if (len == 0) + { + PyErr_SetString(PyExc_TypeError, "GstBin.add requires at least one argument"); + return NULL; + } + + + for (i = 0; i < len; i++) + { + element = (PyGObject*)PyTuple_GetItem(args, i); + if (!pygobject_check(element, &PyGstElement_Type)) + { + PyErr_SetString(PyExc_TypeError, "argument must be a GstElement"); + return NULL; + } + } + + for (i = 0; i < len; i++) + { + element = (PyGObject*)PyTuple_GetItem(args, i); + gst_bin_add(GST_BIN(self->obj), GST_ELEMENT(element->obj)); + } + + Py_INCREF(Py_None); + return Py_None; +} +%% +override gst_element_link_many args +static PyObject * +_wrap_gst_element_link_many(PyObject *self, PyObject *args) +{ + PyGObject *element, *element2; + int i, len; + + len = PyTuple_Size(args); + if (len < 2) + { + PyErr_SetString(PyExc_TypeError, "gst.link_many requires at least two argument"); + return NULL; + } + + + for (i = 0; i < len; i++) + { + element = (PyGObject*)PyTuple_GetItem(args, i); + if (!pygobject_check(element, &PyGstElement_Type)) + { + PyErr_SetString(PyExc_TypeError, "argument must be a GstElement"); + return NULL; + } + } + + /* Mimic the real gst_element_link_many */ + element = (PyGObject*)PyTuple_GetItem(args, 0); + element2 = (PyGObject*)PyTuple_GetItem(args, 1); + + i = 2; + while (1) { + + if (!gst_element_link(GST_ELEMENT(element->obj), GST_ELEMENT(element2->obj))) + return PyInt_FromLong(0); + + if (i >= len) + break; + + element = element2; + element2 = (PyGObject*)PyTuple_GetItem(args, i); + + i++; + } + + return PyInt_FromLong(1); +} +%% +override-slot GstBuffer.tp_getattr +PyObject * +_wrap_gst_buffer_tp_getattr(PyGObject *self, char *attr) +{ + if (!strcmp(attr, "type")) + return pyg_type_wrapper_new(GST_DATA_TYPE(self->obj)); + else if (!strcmp(attr, "flags")) + return PyInt_FromLong(GST_DATA_FLAGS(self->obj)); + + return Py_FindMethod(_PyGstBuffer_methods, (PyObject*)self, attr); +} +%% +override GstPad.get_negotiated_caps +static PyObject * +_wrap_gst_pad_get_negotiated_caps(PyGObject *self) +{ + const GstCaps *ret; + + ret = gst_pad_get_negotiated_caps(GST_PAD(self->obj)); + /* pyg_boxed_new handles NULL checking */ + return pyg_boxed_new(GST_TYPE_CAPS, ret, TRUE, TRUE); +} +%% +override gst_buffer_new kwargs +static int +_wrap_gst_buffer_new(PyGBoxed *self, PyObject *args, PyObject *kwargs) +{ + static char *kwlist[] = { "data", NULL }; + char *data = NULL; + int size; + + if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|z#:GstBuffer.__init__", kwlist, &data, &size)) + return -1; + self->gtype = GST_TYPE_BUFFER; + self->free_on_dealloc = FALSE; + self->boxed = gst_buffer_new_and_alloc(size); + + if (!self->boxed) { + PyErr_SetString(PyExc_RuntimeError, "could not create GstBuffer object"); + return -1; + } + + if (data) + gst_buffer_set_data (self->boxed, data, size); + // memcpy (GST_BUFFER_DATA (self->boxed), data, size); + + gst_buffer_ref (GST_BUFFER (self->boxed)); + + return 0; +} +%% +override pygst_tag_list_keys noargs +void +tag_foreach_func_dict (const GstTagList *list, + const gchar *tag, + PyObject *dict) +{ + int count; + guint i; + const GValue *gvalue; + PyObject *value; + gchar *key; + + count = gst_tag_list_get_tag_size(GST_TAG_LIST(list), tag); + + for (i = 0; i < count; i++) { + gvalue = gst_tag_list_get_value_index(GST_TAG_LIST(list), tag, i); + value = pyg_value_as_pyobject(gvalue, TRUE); + key = g_strdup (tag); + PyDict_SetItemString(dict, key, value); + g_free (key); + Py_DECREF(value); + } +} +void +tag_foreach_func_list (const GstTagList *list, + const gchar *tag, + PyObject *py_list) +{ + int count; + + count = gst_tag_list_get_tag_size(GST_TAG_LIST(list), tag); + if (count == 0) + PyErr_SetString(PyExc_KeyError, tag); + else if (count == 1) + PyList_Append(py_list, PyString_FromString(tag)); + else if (count > 1) + PyErr_SetString(PyExc_TypeError, "lists are currently unspported"); +} + +static PyObject* +_wrap_pygst_tag_list_keys(PyGObject *self) +{ + PyObject *dict; + + dict = PyList_New(0); + + gst_tag_list_foreach(GST_TAG_LIST(self->obj), + (GstTagForeachFunc)tag_foreach_func_list, + (gpointer)dict); + + return dict; +} +%% +override-slot GstTagList.tp_as_mapping +static int +tag_list_length(PyGObject *self) +{ + return gst_structure_n_fields((GstStructure*)self->obj); +} + +static PyObject * +tag_list_subscript(PyGObject *self, register PyObject *py_key) +{ + PyObject *v = NULL; + char *key = PyString_AsString(py_key); + + int count = gst_tag_list_get_tag_size(GST_TAG_LIST(self->obj), key); + if (count == 0) { + PyErr_SetObject(PyExc_KeyError, py_key); + } else if (count == 1) { + const GValue *gvalue; + gvalue = gst_tag_list_get_value_index(GST_TAG_LIST(self->obj), key, 0); + v = pyg_value_as_pyobject(gvalue, TRUE); + } else { + PyErr_SetString(PyExc_TypeError, "lists are currently unspported"); + } + + if (v != NULL) + Py_INCREF(v); + return v; +} + +static PySequenceMethods _wrap_gst_tag_list_tp_as_mapping = { + (inquiry)tag_list_length, /*mp_length*/ + (binaryfunc)tag_list_subscript, /*mp_subscript*/ + (objobjargproc)NULL, +}; + +%% +override pygst_tag_list_has_key args +static PyObject* +_wrap_pygst_tag_list_has_key(PyGObject *self, PyObject *args) +{ + gchar *key; + const GValue *gvalue; + + if (!PyArg_ParseTuple(args, "s:GstTagList.keys", &key)) + return NULL; + + gvalue = gst_tag_list_get_value_index(GST_TAG_LIST(self->obj), key, 0); + + return PyInt_FromLong(gvalue != NULL); +} +%% +override pygst_tag_list_get args +static PyObject * +_wrap_pygst_tag_list_get(PyGObject *self, PyObject *args) +{ + char *key; + PyObject *failobj = Py_None; + PyObject *val = NULL; + const GValue *gvalue; + + if (!PyArg_ParseTuple(args, "s|O:GstTagList.get", &key, &failobj)) + return NULL; + + gvalue = gst_tag_list_get_value_index(GST_TAG_LIST(self->obj), key, 0); + if (gvalue != NULL) { + int count = gst_tag_list_get_tag_size(GST_TAG_LIST(self->obj), key); + if (count == 0) { + PyErr_SetString(PyExc_KeyError, key); + } else if (count == 1) { + gvalue = gst_tag_list_get_value_index(GST_TAG_LIST(self->obj), key, 0); + val = pyg_value_as_pyobject(gvalue, TRUE); + } else { + PyErr_SetString(PyExc_TypeError, "lists are currently unspported"); + } + } + + if (val == NULL) + val = failobj; + Py_INCREF(val); + return val; +} + +static PyGstPadPrivate* +pad_private(GstPad *pad) +{ + return (PyGstPadPrivate*)gst_pad_get_element_private(pad); +} + +static PyGstPadPrivate* +py_pad_private(PyGObject *pad) +{ + PyGstPadPrivate *private; + GstPad *gpad; + + gpad = (GstPad*)pygobject_get(pad); + private = (PyGstPadPrivate*)gst_pad_get_element_private(gpad); + if (private == NULL) { + /* FIXME need to free this somewhere */ + private = g_new0(PyGstPadPrivate, 1); + Py_INCREF(pad); + private->pad = pad; + gst_pad_set_element_private(gpad, private); + } + return private; +} + +%% +override gst_bin_iterate + +static PyObject * +_wrap_gst_bin_iterate(PyGObject *self) +{ + int ret; + + pyg_unblock_threads(); + ret = gst_bin_iterate(GST_BIN(self->obj)); + pyg_block_threads(); + return PyInt_FromLong(ret); +} +%% +override gst_element_set_state kwargs + +static PyObject * +_wrap_gst_element_set_state(PyGObject *self, PyObject *args, PyObject *kwargs) +{ + static char *kwlist[] = { "state", NULL }; + PyObject *py_state = NULL; + GstElementState state; + gint ret; + + if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:GstElement.set_state", kwlist, &py_state)) + return NULL; + if (pyg_flags_get_value(GST_TYPE_ELEMENT_STATE, py_state, (gint *)&state)) + return NULL; + pyg_unblock_threads(); + ret = gst_element_set_state(GST_ELEMENT(self->obj), state); + pyg_block_threads(); + return PyInt_FromLong(ret); +} +%% +override gst_pad_query kwargs + +static PyObject * +_wrap_gst_pad_query(PyGObject *self, PyObject *args, PyObject *kwargs) +{ + static char *kwlist[] = { "type", "format", NULL }; + GstQueryType type; + GstFormat format; + gint64 value; + gboolean ret; + + if (!PyArg_ParseTupleAndKeywords(args, kwargs, "ii:GstPad.query", kwlist, &type, &format)) + return NULL; + value = 0; + ret = gst_pad_query(GST_PAD(self->obj), type, &format, &value); + return Py_BuildValue("(bL)", ret, value); +} +%% +override gst_element_query kwargs + +static PyObject * +_wrap_gst_element_query(PyGObject *self, PyObject *args, PyObject *kwargs) +{ + static char *kwlist[] = { "type", "format", NULL }; + GstQueryType type; + GstFormat format; + gint64 value; + gboolean ret; + + if (!PyArg_ParseTupleAndKeywords(args, kwargs, "ii:GstElement.query", kwlist, &type, &format)) + return NULL; + value = 0; + ret = gst_element_query(GST_ELEMENT(self->obj), type, &format, &value); + return Py_BuildValue("(bL)", ret, value); +} +%% +override gst_pad_convert kwargs + +static PyObject * +_wrap_gst_pad_convert(PyGObject *self, PyObject *args, PyObject *kwargs) +{ + static char *kwlist[] = { "src_format", "src_value", "dest_format", NULL }; + GstFormat src_format, dest_format; + PyObject *src_value_obj; + gint64 src_value, dest_value; + gboolean ret; + + if (!PyArg_ParseTupleAndKeywords(args, kwargs, "iOi:GstPad.convert", kwlist, &src_format, &src_value_obj, &dest_format)) + return NULL; + src_value = PyLong_AsLongLong(src_value_obj); + dest_value = 0; + ret = gst_pad_convert(GST_PAD(self->obj), src_format, src_value, &dest_format, &dest_value); + return Py_BuildValue("(bL)", ret, dest_value); +} +%% +override gst_element_convert kwargs + +static PyObject * +_wrap_gst_element_convert(PyGObject *self, PyObject *args, PyObject *kwargs) +{ + static char *kwlist[] = { "src_format", "src_value", "dest_format", NULL }; + GstFormat src_format, dest_format; + PyObject *src_value_obj; + gint64 src_value, dest_value; + gboolean ret; + + if (!PyArg_ParseTupleAndKeywords(args, kwargs, "iOi:GstElement.convert", kwlist, &src_format, &src_value_obj, &dest_format)) + return NULL; + src_value = PyLong_AsLongLong(src_value_obj); + dest_value = 0; + ret = gst_element_convert(GST_ELEMENT(self->obj), src_format, src_value, &dest_format, &dest_value); + return Py_BuildValue("(bL)", ret, dest_value); +} +%% +override gst_version noargs + +static PyObject * +_wrap_gst_version(void) +{ + guint major, minor, micro; + + gst_version(&major, &minor, µ); + + return Py_BuildValue("(iii)", major, minor, micro); +} +%% +override gst_bin_add_many args +static PyObject * +_wrap_gst_bin_add_many(PyGObject *self, PyObject *args, PyObject *kwargs) +{ + PyGObject *element; + int i; + int len; + + len = PyList_Size(args); + if (len == 0) + { + PyErr_SetString(PyExc_TypeError, "GstBin.add requires at least one argument"); + return NULL; + } + + + for (i = 0; i < len; i++) + { + element = (PyGObject*)PyList_GetItem(args, i); + if (!pygobject_check(element, &PyGstElement_Type)) + { + PyErr_SetString(PyExc_TypeError, "argument must be a GstElement"); + return NULL; + } + } + + for (i = 0; i < len; i++) + { + element = (PyGObject*)PyList_GetItem(args, i); + gst_bin_add(GST_BIN(self->obj), GST_ELEMENT(element->obj)); + } + + Py_INCREF(Py_None); + return Py_None; +} +%% +override gst_structure_new kwargs + +static int +_wrap_gst_structure_new(PyGBoxed *self, PyObject *args, PyObject *kwargs) +{ + static char *kwlist[] = { "name", NULL }; + char *name; + + if (!PyArg_ParseTupleAndKeywords(args, kwargs, "s:GstStructure.__init__", kwlist, &name)) + return -1; + self->gtype = GST_TYPE_STRUCTURE; + self->free_on_dealloc = FALSE; + self->boxed = gst_structure_new(name, NULL); + + if (!self->boxed) { + PyErr_SetString(PyExc_RuntimeError, "could not create GstStructure object"); + return -1; + } + self->free_on_dealloc = TRUE; + return 0; +} +%% +override gst_structure_set_value kwargs + +static PyObject * +_wrap_gst_structure_set_value(PyObject *self, PyObject *args, PyObject *kwargs) +{ + static char *kwlist[] = { "field", "value", NULL }; + char *field; + PyObject *py_value = NULL; + GValue value = { 0 }; + + if (!PyArg_ParseTupleAndKeywords(args, kwargs, "sO:GstStructure.set_value", kwlist, &field, &py_value)) + return NULL; + g_value_init(&value, G_TYPE_STRING); + if (pyg_value_from_pyobject(&value, py_value) != 0) { + return NULL; + } + gst_structure_set_value(pyg_boxed_get(self, GstStructure), field, &value); + + Py_INCREF(Py_None); + return Py_None; +} +%% +override gst_structure_foreach kwargs + +static gboolean +pygst_structure_foreach_marshal(GQuark field_id, + GValue *value, + gpointer user_data) +{ + PyGstCustomNotify *cunote = user_data; + PyObject *py_field, *py_value, *retobj; + gboolean retval = TRUE; + + g_assert(cunote->func); + + pyg_block_threads(); + + //py_model = pygobject_new((GObject *)model); + //py_path = pygtk_tree_path_to_pyobject(path); + //py_iter = pyg_boxed_new(GTK_TYPE_TREE_ITER, iter, TRUE, TRUE); + py_field = Py_BuildValue("s", g_quark_to_string(field_id)); + py_value = pyg_value_as_pyobject(value, FALSE); + if (cunote->data) + retobj = PyEval_CallFunction(cunote->func, "(NNO)", + py_field, py_value, + cunote->data); + else + retobj = PyEval_CallFunction(cunote->func, "(NN)", + py_field, py_value); + + if (PyErr_Occurred () || (retobj == NULL) || (retobj == Py_None)) { + PyErr_Print (); + retval = FALSE; + } else if (retobj != Py_None) { + retval = PyInt_AsLong(retobj); + } + + Py_XDECREF(retobj); + + pyg_unblock_threads(); + + return retval; +} + +static PyObject * +_wrap_gst_structure_foreach (PyGObject *self, + PyObject *args, + PyObject *kwargs) +{ + static char *kwlist[] = { "foreach_function", "args", NULL }; + PyObject *pyfunc, *pyarg = NULL; + PyGstCustomNotify cunote; + + if (!PyArg_ParseTupleAndKeywords(args, kwargs, + "O|O:GstStructure.foreach", + kwlist, + &pyfunc, &pyarg)) { + return NULL; + } + + if (!PyCallable_Check(pyfunc)) { + PyErr_SetString(PyExc_TypeError, "foreach_function not callable"); + return NULL; + } + + cunote.func = pyfunc; + cunote.data = pyarg; + gst_structure_foreach(pyg_boxed_get(self, GstStructure), + pygst_structure_foreach_marshal, + &cunote); + + Py_INCREF(Py_None); + return Py_None; +} +%% +override gst_tag_list_foreach kwargs + +static gboolean +pygst_tag_list_foreach_marshal(GstTagList *list, + const gchar *tag, + gpointer user_data) +{ + PyGstCustomNotify *cunote = user_data; + PyObject *py_list; + PyObject *py_key, *retobj; + gboolean retval = TRUE; + + g_assert(cunote->func); + + pyg_block_threads(); + + py_list = pyg_boxed_new(GST_TYPE_TAG_LIST, list, TRUE, TRUE); + py_key = Py_BuildValue("s", tag); + if (cunote->data) + retobj = PyEval_CallFunction(cunote->func, "(NNO)", + py_list, + py_key, + cunote->data); + else + retobj = PyEval_CallFunction(cunote->func, "(NN)", + py_list, + py_key); + + if (PyErr_Occurred () || (retobj == NULL) || (retobj == Py_None)) { + PyErr_Print (); + retval = FALSE; + } else if (retobj != Py_None) { + retval = PyInt_AsLong(retobj); + } + + Py_XDECREF(retobj); + + pyg_unblock_threads(); + + return retval; +} + +static PyObject * +_wrap_gst_tag_list_foreach (PyGObject *self, + PyObject *args, + PyObject *kwargs) +{ + static char *kwlist[] = { "foreach_function", "args", NULL }; + PyObject *pyfunc, *pyarg = NULL; + PyGstCustomNotify cunote; + + if (!PyArg_ParseTupleAndKeywords(args, kwargs, + "O|O:GstTagList.foreach", + kwlist, + &pyfunc, &pyarg)) { + return NULL; + } + + if (!PyCallable_Check(pyfunc)) { + PyErr_SetString(PyExc_TypeError, "foreach_function not callable"); + return NULL; + } + + cunote.func = pyfunc; + cunote.data = pyarg; + gst_tag_list_foreach(pyg_boxed_get(self, GstTagList), + (GstTagForeachFunc)pygst_tag_list_foreach_marshal, + &cunote); + + Py_INCREF(Py_None); + return Py_None; +} +%% +override gst_tag_list_get_value_index kwargs + +static PyObject * +_wrap_gst_tag_list_get_value_index (PyGObject *self, + PyObject *args, + PyObject *kwargs) +{ + static char *kwlist[] = { "tag", "index", NULL }; + char *tag; + int index; + const GValue *gvalue; + + if (!PyArg_ParseTupleAndKeywords(args, kwargs, + "si:GstTagList.get_value_index", + kwlist, + &tag, &index)) { + return NULL; + } + + gvalue = gst_tag_list_get_value_index(pyg_boxed_get(self, GstTagList), + tag, + index); + + return pyg_value_as_pyobject(gvalue, FALSE); +} diff --git a/gst/gstreamer.defs b/gst/gstreamer.defs deleted file mode 100644 index 9827fdab3f..0000000000 --- a/gst/gstreamer.defs +++ /dev/null @@ -1,6155 +0,0 @@ -;; -*- scheme -*- - -(include "gst-types.defs") -;;(include "0.7.defs") - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstatomic.h - -(define-method init - (of-object "GstAtomicInt") - (c-name "gst_atomic_int_init") - (return-type "none") - (parameters - '("gint" "val") - ) -) - -(define-method destroy - (of-object "GstAtomicInt") - (c-name "gst_atomic_int_destroy") - (return-type "none") -) - -(define-method set - (of-object "GstAtomicInt") - (c-name "gst_atomic_int_set") - (return-type "none") - (parameters - '("gint" "val") - ) -) - -(define-method read - (of-object "GstAtomicInt") - (c-name "gst_atomic_int_read") - (return-type "gint") -) - -(define-method add - (of-object "GstAtomicInt") - (c-name "gst_atomic_int_add") - (return-type "none") - (parameters - '("gint" "val") - ) -) - -(define-method inc - (of-object "GstAtomicInt") - (c-name "gst_atomic_int_inc") - (return-type "none") -) - -(define-method dec_and_test - (of-object "GstAtomicInt") - (c-name "gst_atomic_int_dec_and_test") - (return-type "gboolean") -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstbin.h - -(define-function bin_get_type - (c-name "gst_bin_get_type") - (return-type "GType") -) - -(define-function bin_new - (c-name "gst_bin_new") - (is-constructor-of "GstBin") - (return-type "GstElement*") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method add - (of-object "GstBin") - (c-name "gst_bin_add") - (return-type "none") - (parameters - '("GstElement*" "element") - ) -) - -(define-method add_many - (of-object "GstBin") - (c-name "gst_bin_add_many") - (return-type "none") - (parameters - '("GstElement*" "element_1") - ) - (varargs #t) -) - -(define-method remove - (of-object "GstBin") - (c-name "gst_bin_remove") - (return-type "none") - (parameters - '("GstElement*" "element") - ) -) - -(define-method remove_many - (of-object "GstBin") - (c-name "gst_bin_remove_many") - (return-type "none") - (parameters - '("GstElement*" "element_1") - ) - (varargs #t) -) - -(define-method get_by_name - (of-object "GstBin") - (c-name "gst_bin_get_by_name") - (return-type "GstElement*") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method get_by_name_recurse_up - (of-object "GstBin") - (c-name "gst_bin_get_by_name_recurse_up") - (return-type "GstElement*") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method get_list - (of-object "GstBin") - (c-name "gst_bin_get_list") - (return-type "const-GList*") -) - -(define-method get_by_interface - (of-object "GstBin") - (c-name "gst_bin_get_by_interface") - (return-type "GstElement*") - (parameters - '("GType" "interface") - ) -) - -(define-method get_all_by_interface - (of-object "GstBin") - (c-name "gst_bin_get_all_by_interface") - (return-type "GList*") - (parameters - '("GType" "interface") - ) -) - -(define-method iterate - (of-object "GstBin") - (c-name "gst_bin_iterate") - (return-type "gboolean") -) - -(define-method use_clock - (of-object "GstBin") - (c-name "gst_bin_use_clock") - (return-type "none") - (parameters - '("GstClock*" "clock") - ) -) - -(define-method get_clock - (of-object "GstBin") - (c-name "gst_bin_get_clock") - (return-type "GstClock*") -) - -(define-method auto_clock - (of-object "GstBin") - (c-name "gst_bin_auto_clock") - (return-type "none") -) - -(define-method sync_children_state - (of-object "GstBin") - (c-name "gst_bin_sync_children_state") - (return-type "GstElementStateReturn") -) - -(define-method child_state_change - (of-object "GstBin") - (c-name "gst_bin_child_state_change") - (return-type "none") - (parameters - '("GstElementState" "oldstate") - '("GstElementState" "newstate") - '("GstElement*" "child") - ) -) - -(define-method set_pre_iterate_function - (of-object "GstBin") - (c-name "gst_bin_set_pre_iterate_function") - (return-type "none") - (parameters - '("GstBinPrePostIterateFunction" "func") - '("gpointer" "user_data") - ) -) - -(define-method set_post_iterate_function - (of-object "GstBin") - (c-name "gst_bin_set_post_iterate_function") - (return-type "none") - (parameters - '("GstBinPrePostIterateFunction" "func") - '("gpointer" "user_data") - ) -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstbuffer.h - -(define-function buffer_get_type - (c-name "gst_buffer_get_type") - (return-type "GType") -) - -(define-function buffer_new - (c-name "gst_buffer_new") - (is-constructor-of "GstBuffer") - (return-type "GstBuffer*") -) - -(define-function buffer_new_and_alloc - (c-name "gst_buffer_new_and_alloc") - (return-type "GstBuffer*") - (parameters - '("guint" "size") - ) -) - -(define-method stamp - (of-object "GstBuffer") - (c-name "gst_buffer_stamp") - (return-type "none") - (parameters - '("const-GstBuffer*" "src") - ) -) - -(define-method create_sub - (of-object "GstBuffer") - (c-name "gst_buffer_create_sub") - (return-type "GstBuffer*") - (parameters - '("guint" "offset") - '("guint" "size") - ) -) - -(define-method merge - (of-object "GstBuffer") - (c-name "gst_buffer_merge") - (return-type "GstBuffer*") - (parameters - '("GstBuffer*" "buf2") - ) -) - -(define-method is_span_fast - (of-object "GstBuffer") - (c-name "gst_buffer_is_span_fast") - (return-type "gboolean") - (parameters - '("GstBuffer*" "buf2") - ) -) - -(define-method span - (of-object "GstBuffer") - (c-name "gst_buffer_span") - (return-type "GstBuffer*") - (parameters - '("guint32" "offset") - '("GstBuffer*" "buf2") - '("guint32" "len") - ) -) - -(define-function _gst_buffer_initialize - (c-name "_gst_buffer_initialize") - (return-type "none") -) - -(define-method default_free - (of-object "GstBuffer") - (c-name "gst_buffer_default_free") - (return-type "none") -) - -(define-method default_copy - (of-object "GstBuffer") - (c-name "gst_buffer_default_copy") - (return-type "GstBuffer*") -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstcaps.h - -(define-function _gst_caps_initialize - (c-name "_gst_caps_initialize") - (return-type "none") -) - -(define-function caps_get_type - (c-name "gst_caps_get_type") - (return-type "GType") -) - -(define-function caps_new_empty - (c-name "gst_caps_new_empty") - (return-type "GstCaps*") -) - -(define-function caps_new_any - (c-name "gst_caps_new_any") - (return-type "GstCaps*") -) - -(define-function caps_new_simple - (c-name "gst_caps_new_simple") - (return-type "GstCaps*") - (parameters - '("const-char*" "media_type") - '("const-char*" "fieldname") - ) - (varargs #t) -) - -(define-function caps_new_full - (c-name "gst_caps_new_full") - (return-type "GstCaps*") - (parameters - '("GstStructure*" "struct1") - ) - (varargs #t) -) - -(define-function caps_new_full_valist - (c-name "gst_caps_new_full_valist") - (return-type "GstCaps*") - (parameters - '("GstStructure*" "structure") - '("va_list" "var_args") - ) -) - -(define-method copy - (of-object "GstCaps") - (c-name "gst_caps_copy") - (return-type "GstCaps*") -) - -(define-method free - (of-object "GstCaps") - (c-name "gst_caps_free") - (return-type "none") -) - -(define-method get - (of-object "GstStaticCaps") - (c-name "gst_static_caps_get") - (return-type "const-GstCaps*") -) - -(define-method append - (of-object "GstCaps") - (c-name "gst_caps_append") - (return-type "none") - (parameters - '("GstCaps*" "caps2") - ) -) - -(define-method append_structure - (of-object "GstCaps") - (c-name "gst_caps_append_structure") - (return-type "none") - (parameters - '("GstStructure*" "structure") - ) -) - -(define-method split_one - (of-object "GstCaps") - (c-name "gst_caps_split_one") - (return-type "GstCaps*") -) - -(define-method get_size - (of-object "GstCaps") - (c-name "gst_caps_get_size") - (return-type "int") -) - -(define-method get_structure - (of-object "GstCaps") - (c-name "gst_caps_get_structure") - (return-type "GstStructure*") - (parameters - '("int" "index") - ) -) - -(define-method copy_1 - (of-object "GstCaps") - (c-name "gst_caps_copy_1") - (return-type "GstCaps*") -) - -(define-method set_simple - (of-object "GstCaps") - (c-name "gst_caps_set_simple") - (return-type "none") - (parameters - '("char*" "field") - ) - (varargs #t) -) - -(define-method set_simple_valist - (of-object "GstCaps") - (c-name "gst_caps_set_simple_valist") - (return-type "none") - (parameters - '("char*" "field") - '("va_list" "varargs") - ) -) - -(define-method is_any - (of-object "GstCaps") - (c-name "gst_caps_is_any") - (return-type "gboolean") -) - -(define-method is_empty - (of-object "GstCaps") - (c-name "gst_caps_is_empty") - (return-type "gboolean") -) - -(define-method is_chained - (of-object "GstCaps") - (c-name "gst_caps_is_chained") - (return-type "gboolean") -) - -(define-method is_fixed - (of-object "GstCaps") - (c-name "gst_caps_is_fixed") - (return-type "gboolean") -) - -(define-method is_equal_fixed - (of-object "GstCaps") - (c-name "gst_caps_is_equal_fixed") - (return-type "gboolean") - (parameters - '("const-GstCaps*" "caps2") - ) -) - -(define-method is_always_compatible - (of-object "GstCaps") - (c-name "gst_caps_is_always_compatible") - (return-type "gboolean") - (parameters - '("const-GstCaps*" "caps2") - ) -) - -(define-method intersect - (of-object "GstCaps") - (c-name "gst_caps_intersect") - (return-type "GstCaps*") - (parameters - '("const-GstCaps*" "caps2") - ) -) - -(define-method union - (of-object "GstCaps") - (c-name "gst_caps_union") - (return-type "GstCaps*") - (parameters - '("const-GstCaps*" "caps2") - ) -) - -(define-method normalize - (of-object "GstCaps") - (c-name "gst_caps_normalize") - (return-type "GstCaps*") -) - -(define-method simplify - (of-object "GstCaps") - (c-name "gst_caps_simplify") - (return-type "GstCaps*") -) - -(define-method save_thyself - (of-object "GstCaps") - (c-name "gst_caps_save_thyself") - (return-type "xmlNodePtr") - (parameters - '("xmlNodePtr" "parent") - ) -) - -(define-function caps_load_thyself - (c-name "gst_caps_load_thyself") - (return-type "GstCaps*") - (parameters - '("xmlNodePtr" "parent") - ) -) - -(define-function caps_replace - (c-name "gst_caps_replace") - (return-type "none") - (parameters - '("GstCaps**" "caps") - '("GstCaps*" "newcaps") - ) -) - -(define-method to_string - (of-object "GstCaps") - (c-name "gst_caps_to_string") - (return-type "gchar*") -) - -(define-function caps_from_string - (c-name "gst_caps_from_string") - (return-type "GstCaps*") - (parameters - '("const-gchar*" "string") - ) -) - -(define-function caps_structure_fixate_field_nearest_int - (c-name "gst_caps_structure_fixate_field_nearest_int") - (return-type "gboolean") - (parameters - '("GstStructure*" "structure") - '("const-char*" "field_name") - '("int" "target") - ) -) - -(define-function caps_structure_fixate_field_nearest_double - (c-name "gst_caps_structure_fixate_field_nearest_double") - (return-type "gboolean") - (parameters - '("GstStructure*" "structure") - '("const-char*" "field_name") - '("double" "target") - ) -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstclock.h - -(define-function clock_get_type - (c-name "gst_clock_get_type") - (return-type "GType") -) - -(define-method set_speed - (of-object "GstClock") - (c-name "gst_clock_set_speed") - (return-type "gdouble") - (parameters - '("gdouble" "speed") - ) -) - -(define-method get_speed - (of-object "GstClock") - (c-name "gst_clock_get_speed") - (return-type "gdouble") -) - -(define-method set_resolution - (of-object "GstClock") - (c-name "gst_clock_set_resolution") - (return-type "guint64") - (parameters - '("guint64" "resolution") - ) -) - -(define-method get_resolution - (of-object "GstClock") - (c-name "gst_clock_get_resolution") - (return-type "guint64") -) - -(define-method set_active - (of-object "GstClock") - (c-name "gst_clock_set_active") - (return-type "none") - (parameters - '("gboolean" "active") - ) -) - -(define-method is_active - (of-object "GstClock") - (c-name "gst_clock_is_active") - (return-type "gboolean") -) - -(define-method reset - (of-object "GstClock") - (c-name "gst_clock_reset") - (return-type "none") -) - -(define-method handle_discont - (of-object "GstClock") - (c-name "gst_clock_handle_discont") - (return-type "gboolean") - (parameters - '("guint64" "time") - ) -) - -(define-method get_time - (of-object "GstClock") - (c-name "gst_clock_get_time") - (return-type "GstClockTime") -) - -(define-method get_event_time - (of-object "GstClock") - (c-name "gst_clock_get_event_time") - (return-type "GstClockTime") -) - -(define-method get_next_id - (of-object "GstClock") - (c-name "gst_clock_get_next_id") - (return-type "GstClockID") -) - -(define-method new_single_shot_id - (of-object "GstClock") - (c-name "gst_clock_new_single_shot_id") - (return-type "GstClockID") - (parameters - '("GstClockTime" "time") - ) -) - -(define-method new_periodic_id - (of-object "GstClock") - (c-name "gst_clock_new_periodic_id") - (return-type "GstClockID") - (parameters - '("GstClockTime" "start_time") - '("GstClockTime" "interval") - ) -) - -(define-method get_time - (of-object "GstClockID") - (c-name "gst_clock_id_get_time") - (return-type "GstClockTime") -) - -(define-method wait - (of-object "GstClockID") - (c-name "gst_clock_id_wait") - (return-type "GstClockReturn") - (parameters - '("GstClockTimeDiff*" "jitter") - ) -) - -(define-method wait_async - (of-object "GstClockID") - (c-name "gst_clock_id_wait_async") - (return-type "GstClockReturn") - (parameters - '("GstClockCallback" "func") - '("gpointer" "user_data") - ) -) - -(define-method unschedule - (of-object "GstClockID") - (c-name "gst_clock_id_unschedule") - (return-type "none") -) - -(define-method unlock - (of-object "GstClockID") - (c-name "gst_clock_id_unlock") - (return-type "none") -) - -(define-method free - (of-object "GstClockID") - (c-name "gst_clock_id_free") - (return-type "none") -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstconfig.h - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstcpu.h - -(define-function _gst_cpu_initialize - (c-name "_gst_cpu_initialize") - (return-type "none") - (parameters - '("gboolean" "useopt") - ) -) - -(define-function cpu_get_flags - (c-name "gst_cpu_get_flags") - (return-type "GstCPUFlags") -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstdata.h - -(define-method init - (of-object "GstData") - (c-name "gst_data_init") - (return-type "none") - (parameters - '("GType" "type") - '("guint16" "flags") - '("GstDataFreeFunction" "free") - '("GstDataCopyFunction" "copy") - ) -) - -(define-method dispose - (of-object "GstData") - (c-name "gst_data_dispose") - (return-type "none") -) - -(define-method copy_into - (of-object "GstData") - (c-name "gst_data_copy_into") - (return-type "none") - (parameters - '("GstData*" "target") - ) -) - -(define-method copy - (of-object "GstData") - (c-name "gst_data_copy") - (return-type "GstData*") -) - -(define-method is_writable - (of-object "GstData") - (c-name "gst_data_is_writable") - (return-type "gboolean") -) - -(define-method copy_on_write - (of-object "GstData") - (c-name "gst_data_copy_on_write") - (return-type "GstData*") -) - -(define-method free - (of-object "GstData") - (c-name "gst_data_free") - (return-type "none") -) - -(define-method ref - (of-object "GstData") - (c-name "gst_data_ref") - (return-type "GstData*") -) - -(define-method ref_by_count - (of-object "GstData") - (c-name "gst_data_ref_by_count") - (return-type "GstData*") - (parameters - '("gint" "count") - ) -) - -(define-method unref - (of-object "GstData") - (c-name "gst_data_unref") - (return-type "none") -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstelement.h - -(define-method add_pad_template - (of-object "GstElementClass") - (c-name "gst_element_class_add_pad_template") - (return-type "none") - (parameters - '("GstPadTemplate*" "templ") - ) -) - -(define-method install_std_props - (of-object "GstElementClass") - (c-name "gst_element_class_install_std_props") - (return-type "none") - (parameters - '("const-gchar*" "first_name") - ) - (varargs #t) -) - -(define-method set_details - (of-object "GstElementClass") - (c-name "gst_element_class_set_details") - (return-type "none") - (parameters - '("const-GstElementDetails*" "details") - ) -) - -(define-function element_default_error - (c-name "gst_element_default_error") - (return-type "none") - (parameters - '("GObject*" "object") - '("GstObject*" "orig") - '("GError*" "error") - '("gchar*" "debug") - ) -) - -(define-function element_get_type - (c-name "gst_element_get_type") - (return-type "GType") -) - -(define-method set_loop_function - (of-object "GstElement") - (c-name "gst_element_set_loop_function") - (return-type "none") - (parameters - '("GstElementLoopFunction" "loop") - ) -) - -(define-method set - (of-object "GstElement") - (c-name "gst_element_set") - (return-type "none") - (parameters - '("const-gchar*" "first_property_name") - ) - (varargs #t) -) - -(define-method get - (of-object "GstElement") - (c-name "gst_element_get") - (return-type "none") - (parameters - '("const-gchar*" "first_property_name") - ) - (varargs #t) -) - -(define-method set_valist - (of-object "GstElement") - (c-name "gst_element_set_valist") - (return-type "none") - (parameters - '("const-gchar*" "first_property_name") - '("va_list" "var_args") - ) -) - -(define-method get_valist - (of-object "GstElement") - (c-name "gst_element_get_valist") - (return-type "none") - (parameters - '("const-gchar*" "first_property_name") - '("va_list" "var_args") - ) -) - -(define-method set_property - (of-object "GstElement") - (c-name "gst_element_set_property") - (return-type "none") - (parameters - '("const-gchar*" "property_name") - '("const-GValue*" "value") - ) -) - -(define-method get_property - (of-object "GstElement") - (c-name "gst_element_get_property") - (return-type "none") - (parameters - '("const-gchar*" "property_name") - '("GValue*" "value") - ) -) - -(define-method enable_threadsafe_properties - (of-object "GstElement") - (c-name "gst_element_enable_threadsafe_properties") - (return-type "none") -) - -(define-method disable_threadsafe_properties - (of-object "GstElement") - (c-name "gst_element_disable_threadsafe_properties") - (return-type "none") -) - -(define-method set_pending_properties - (of-object "GstElement") - (c-name "gst_element_set_pending_properties") - (return-type "none") -) - -(define-method requires_clock - (of-object "GstElement") - (c-name "gst_element_requires_clock") - (return-type "gboolean") -) - -(define-method provides_clock - (of-object "GstElement") - (c-name "gst_element_provides_clock") - (return-type "gboolean") -) - -(define-method get_clock - (of-object "GstElement") - (c-name "gst_element_get_clock") - (return-type "GstClock*") -) - -(define-method set_clock - (of-object "GstElement") - (c-name "gst_element_set_clock") - (return-type "none") - (parameters - '("GstClock*" "clock") - ) -) - -(define-method clock_wait - (of-object "GstElement") - (c-name "gst_element_clock_wait") - (return-type "GstClockReturn") - (parameters - '("GstClockID" "id") - '("GstClockTimeDiff*" "jitter") - ) -) - -(define-method get_time - (of-object "GstElement") - (c-name "gst_element_get_time") - (return-type "GstClockTime") -) - -(define-method wait - (of-object "GstElement") - (c-name "gst_element_wait") - (return-type "gboolean") - (parameters - '("GstClockTime" "timestamp") - ) -) - -(define-method set_time - (of-object "GstElement") - (c-name "gst_element_set_time") - (return-type "none") - (parameters - '("GstClockTime" "time") - ) -) - -(define-method adjust_time - (of-object "GstElement") - (c-name "gst_element_adjust_time") - (return-type "none") - (parameters - '("GstClockTimeDiff" "diff") - ) -) - -(define-method is_indexable - (of-object "GstElement") - (c-name "gst_element_is_indexable") - (return-type "gboolean") -) - -(define-method set_index - (of-object "GstElement") - (c-name "gst_element_set_index") - (return-type "none") - (parameters - '("GstIndex*" "index") - ) -) - -(define-method get_index - (of-object "GstElement") - (c-name "gst_element_get_index") - (return-type "GstIndex*") -) - -(define-method release_locks - (of-object "GstElement") - (c-name "gst_element_release_locks") - (return-type "gboolean") -) - -(define-method yield - (of-object "GstElement") - (c-name "gst_element_yield") - (return-type "none") -) - -(define-method interrupt - (of-object "GstElement") - (c-name "gst_element_interrupt") - (return-type "gboolean") -) - -(define-method set_scheduler - (of-object "GstElement") - (c-name "gst_element_set_scheduler") - (return-type "none") - (parameters - '("GstScheduler*" "sched") - ) -) - -(define-method get_scheduler - (of-object "GstElement") - (c-name "gst_element_get_scheduler") - (return-type "GstScheduler*") -) - -(define-method add_pad - (of-object "GstElement") - (c-name "gst_element_add_pad") - (return-type "none") - (parameters - '("GstPad*" "pad") - ) -) - -(define-method remove_pad - (of-object "GstElement") - (c-name "gst_element_remove_pad") - (return-type "none") - (parameters - '("GstPad*" "pad") - ) -) - -(define-method add_ghost_pad - (of-object "GstElement") - (c-name "gst_element_add_ghost_pad") - (return-type "GstPad*") - (parameters - '("GstPad*" "pad") - '("const-gchar*" "name") - ) -) - -(define-method remove_ghost_pad - (of-object "GstElement") - (c-name "gst_element_remove_ghost_pad") - (return-type "none") - (parameters - '("GstPad*" "pad") - ) -) - -(define-method get_pad - (of-object "GstElement") - (c-name "gst_element_get_pad") - (return-type "GstPad*") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method get_static_pad - (of-object "GstElement") - (c-name "gst_element_get_static_pad") - (return-type "GstPad*") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method get_request_pad - (of-object "GstElement") - (c-name "gst_element_get_request_pad") - (return-type "GstPad*") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method release_request_pad - (of-object "GstElement") - (c-name "gst_element_release_request_pad") - (return-type "none") - (parameters - '("GstPad*" "pad") - ) -) - -(define-method get_pad_list - (of-object "GstElement") - (c-name "gst_element_get_pad_list") - (return-type "const-GList*") -) - -(define-method get_compatible_pad - (of-object "GstElement") - (c-name "gst_element_get_compatible_pad") - (return-type "GstPad*") - (parameters - '("GstPad*" "pad") - ) -) - -(define-method get_compatible_pad_filtered - (of-object "GstElement") - (c-name "gst_element_get_compatible_pad_filtered") - (return-type "GstPad*") - (parameters - '("GstPad*" "pad") - '("const-GstCaps*" "filtercaps") - ) -) - -(define-method get_pad_template - (of-object "GstElementClass") - (c-name "gst_element_class_get_pad_template") - (return-type "GstPadTemplate*") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method get_pad_template_list - (of-object "GstElementClass") - (c-name "gst_element_class_get_pad_template_list") - (return-type "GList*") -) - -(define-method get_pad_template - (of-object "GstElement") - (c-name "gst_element_get_pad_template") - (return-type "GstPadTemplate*") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method get_pad_template_list - (of-object "GstElement") - (c-name "gst_element_get_pad_template_list") - (return-type "GList*") -) - -(define-method get_compatible_pad_template - (of-object "GstElement") - (c-name "gst_element_get_compatible_pad_template") - (return-type "GstPadTemplate*") - (parameters - '("GstPadTemplate*" "compattempl") - ) -) - -(define-method link - (of-object "GstElement") - (c-name "gst_element_link") - (return-type "gboolean") - (parameters - '("GstElement*" "dest") - ) -) - -(define-method link_filtered - (of-object "GstElement") - (c-name "gst_element_link_filtered") - (return-type "gboolean") - (parameters - '("GstElement*" "dest") - '("const-GstCaps*" "filtercaps") - ) -) - -(define-function element_link_many - (c-name "gst_element_link_many") - (return-type "gboolean") - (parameters - '("GstElement*" "element_1") - '("GstElement*" "element_2") - ) - (varargs #t) -) - -(define-method unlink - (of-object "GstElement") - (c-name "gst_element_unlink") - (return-type "none") - (parameters - '("GstElement*" "dest") - ) -) - -(define-method unlink_many - (of-object "GstElement") - (c-name "gst_element_unlink_many") - (return-type "none") - (parameters - '("GstElement*" "element_2") - ) - (varargs #t) -) - -(define-method link_pads - (of-object "GstElement") - (c-name "gst_element_link_pads") - (return-type "gboolean") - (parameters - '("const-gchar*" "srcpadname") - '("GstElement*" "dest") - '("const-gchar*" "destpadname") - ) -) - -(define-method link_pads_filtered - (of-object "GstElement") - (c-name "gst_element_link_pads_filtered") - (return-type "gboolean") - (parameters - '("const-gchar*" "srcpadname") - '("GstElement*" "dest") - '("const-gchar*" "destpadname") - '("const-GstCaps*" "filtercaps") - ) -) - -(define-method unlink_pads - (of-object "GstElement") - (c-name "gst_element_unlink_pads") - (return-type "none") - (parameters - '("const-gchar*" "srcpadname") - '("GstElement*" "dest") - '("const-gchar*" "destpadname") - ) -) - -(define-method get_event_masks - (of-object "GstElement") - (c-name "gst_element_get_event_masks") - (return-type "const-GstEventMask*") -) - -(define-method send_event - (of-object "GstElement") - (c-name "gst_element_send_event") - (return-type "gboolean") - (parameters - '("GstEvent*" "event") - ) -) - -(define-method seek - (of-object "GstElement") - (c-name "gst_element_seek") - (return-type "gboolean") - (parameters - '("GstSeekType" "seek_type") - '("guint64" "offset") - ) -) - -(define-method get_query_types - (of-object "GstElement") - (c-name "gst_element_get_query_types") - (return-type "const-GstQueryType*") -) - -(define-method query - (of-object "GstElement") - (c-name "gst_element_query") - (return-type "gboolean") - (parameters - '("GstQueryType" "type") - '("GstFormat*" "format") - '("gint64*" "value") - ) -) - -(define-method get_formats - (of-object "GstElement") - (c-name "gst_element_get_formats") - (return-type "const-GstFormat*") -) - -(define-method convert - (of-object "GstElement") - (c-name "gst_element_convert") - (return-type "gboolean") - (parameters - '("GstFormat" "src_format") - '("gint64" "src_value") - '("GstFormat*" "dest_format") - '("gint64*" "dest_value") - ) -) - -(define-method found_tags - (of-object "GstElement") - (c-name "gst_element_found_tags") - (return-type "none") - (parameters - '("const-GstTagList*" "tag_list") - ) -) - -(define-method found_tags_for_pad - (of-object "GstElement") - (c-name "gst_element_found_tags_for_pad") - (return-type "none") - (parameters - '("GstPad*" "pad") - '("GstClockTime" "timestamp") - '("GstTagList*" "list") - ) -) - -(define-method set_eos - (of-object "GstElement") - (c-name "gst_element_set_eos") - (return-type "none") -) - -(define-function _gst_element_error_printf - (c-name "_gst_element_error_printf") - (return-type "gchar*") - (parameters - '("const-gchar*" "format") - ) - (varargs #t) -) - -(define-method error_full - (of-object "GstElement") - (c-name "gst_element_error_full") - (return-type "none") - (parameters - '("GQuark" "domain") - '("gint" "code") - '("gchar*" "message") - '("gchar*" "debug") - '("const-gchar*" "file") - '("const-gchar*" "function") - '("gint" "line") - ) -) - -(define-method is_locked_state - (of-object "GstElement") - (c-name "gst_element_is_locked_state") - (return-type "gboolean") -) - -(define-method set_locked_state - (of-object "GstElement") - (c-name "gst_element_set_locked_state") - (return-type "none") - (parameters - '("gboolean" "locked_state") - ) -) - -(define-method sync_state_with_parent - (of-object "GstElement") - (c-name "gst_element_sync_state_with_parent") - (return-type "gboolean") -) - -(define-method get_state - (of-object "GstElement") - (c-name "gst_element_get_state") - (return-type "GstElementState") -) - -(define-method set_state - (of-object "GstElement") - (c-name "gst_element_set_state") - (return-type "GstElementStateReturn") - (parameters - '("GstElementState" "state") - ) -) - -(define-method wait_state_change - (of-object "GstElement") - (c-name "gst_element_wait_state_change") - (return-type "none") -) - -(define-method get_name - (of-object "GstElementState") - (c-name "gst_element_state_get_name") - (return-type "const-gchar*") -) - -(define-method get_factory - (of-object "GstElement") - (c-name "gst_element_get_factory") - (return-type "GstElementFactory*") -) - -(define-method get_managing_bin - (of-object "GstElement") - (c-name "gst_element_get_managing_bin") - (return-type "GstBin*") -) - -(define-function element_factory_get_type - (c-name "gst_element_factory_get_type") - (return-type "GType") -) - -(define-function element_register - (c-name "gst_element_register") - (return-type "gboolean") - (parameters - '("GstPlugin*" "plugin") - '("const-gchar*" "elementname") - '("guint" "rank") - '("GType" "type") - ) -) - -(define-function element_factory_find - (c-name "gst_element_factory_find") - (return-type "GstElementFactory*") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method get_element_type - (of-object "GstElementFactory") - (c-name "gst_element_factory_get_element_type") - (return-type "GType") -) - -(define-method get_longname - (of-object "GstElementFactory") - (c-name "gst_element_factory_get_longname") - (return-type "const-gchar*") -) - -(define-method get_klass - (of-object "GstElementFactory") - (c-name "gst_element_factory_get_klass") - (return-type "const-gchar*") -) - -(define-method get_description - (of-object "GstElementFactory") - (c-name "gst_element_factory_get_description") - (return-type "const-gchar*") -) - -(define-method get_author - (of-object "GstElementFactory") - (c-name "gst_element_factory_get_author") - (return-type "const-gchar*") -) - -(define-method get_num_pad_templates - (of-object "GstElementFactory") - (c-name "gst_element_factory_get_num_pad_templates") - (return-type "guint") -) - -(define-method get_pad_templates - (of-object "GstElementFactory") - (c-name "gst_element_factory_get_pad_templates") - (return-type "const-GList*") -) - -(define-method get_uri_type - (of-object "GstElementFactory") - (c-name "gst_element_factory_get_uri_type") - (return-type "guint") -) - -(define-method get_uri_protocols - (of-object "GstElementFactory") - (c-name "gst_element_factory_get_uri_protocols") - (return-type "gchar**") -) - -(define-method create - (of-object "GstElementFactory") - (c-name "gst_element_factory_create") - (return-type "GstElement*") - (parameters - '("const-gchar*" "name") - ) -) - -(define-function element_factory_make - (is-constructor-of "GstElement") - (c-name "gst_element_factory_make") - (return-type "GstElement*") - (parameters - '("const-gchar*" "factoryname") - '("const-gchar*" "name" (null-ok) (default "NULL")) - ) -) - -(define-method can_src_caps - (of-object "GstElementFactory") - (c-name "gst_element_factory_can_src_caps") - (return-type "gboolean") - (parameters - '("const-GstCaps*" "caps") - ) -) - -(define-method can_sink_caps - (of-object "GstElementFactory") - (c-name "gst_element_factory_can_sink_caps") - (return-type "gboolean") - (parameters - '("const-GstCaps*" "caps") - ) -) - -(define-method __add_pad_template - (of-object "GstElementFactory") - (c-name "__gst_element_factory_add_pad_template") - (return-type "none") - (parameters - '("GstPadTemplate*" "templ") - ) -) - -(define-method __add_interface - (of-object "GstElementFactory") - (c-name "__gst_element_factory_add_interface") - (return-type "none") - (parameters - '("const-gchar*" "interfacename") - ) -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstenumtypes.h - -(define-function object_flags_get_type - (c-name "gst_object_flags_get_type") - (return-type "GType") -) - -(define-function bin_flags_get_type - (c-name "gst_bin_flags_get_type") - (return-type "GType") -) - -(define-function buffer_flag_get_type - (c-name "gst_buffer_flag_get_type") - (return-type "GType") -) - -(define-function clock_entry_status_get_type - (c-name "gst_clock_entry_status_get_type") - (return-type "GType") -) - -(define-function clock_entry_type_get_type - (c-name "gst_clock_entry_type_get_type") - (return-type "GType") -) - -(define-function clock_return_get_type - (c-name "gst_clock_return_get_type") - (return-type "GType") -) - -(define-function clock_flags_get_type - (c-name "gst_clock_flags_get_type") - (return-type "GType") -) - -(define-function cpu_flags_get_type - (c-name "gst_cpu_flags_get_type") - (return-type "GType") -) - -(define-function data_flags_get_type - (c-name "gst_data_flags_get_type") - (return-type "GType") -) - -(define-function element_flags_get_type - (c-name "gst_element_flags_get_type") - (return-type "GType") -) - -(define-function core_error_get_type - (c-name "gst_core_error_get_type") - (return-type "GType") -) - -(define-function library_error_get_type - (c-name "gst_library_error_get_type") - (return-type "GType") -) - -(define-function resource_error_get_type - (c-name "gst_resource_error_get_type") - (return-type "GType") -) - -(define-function stream_error_get_type - (c-name "gst_stream_error_get_type") - (return-type "GType") -) - -(define-function event_type_get_type - (c-name "gst_event_type_get_type") - (return-type "GType") -) - -(define-function event_flag_get_type - (c-name "gst_event_flag_get_type") - (return-type "GType") -) - -(define-function seek_type_get_type - (c-name "gst_seek_type_get_type") - (return-type "GType") -) - -(define-function seek_accuracy_get_type - (c-name "gst_seek_accuracy_get_type") - (return-type "GType") -) - -(define-function format_get_type - (c-name "gst_format_get_type") - (return-type "GType") -) - -(define-function index_certainty_get_type - (c-name "gst_index_certainty_get_type") - (return-type "GType") -) - -(define-function index_entry_type_get_type - (c-name "gst_index_entry_type_get_type") - (return-type "GType") -) - -(define-function index_lookup_method_get_type - (c-name "gst_index_lookup_method_get_type") - (return-type "GType") -) - -(define-function assoc_flags_get_type - (c-name "gst_assoc_flags_get_type") - (return-type "GType") -) - -(define-function index_resolver_method_get_type - (c-name "gst_index_resolver_method_get_type") - (return-type "GType") -) - -(define-function index_flags_get_type - (c-name "gst_index_flags_get_type") - (return-type "GType") -) - -(define-function debug_level_get_type - (c-name "gst_debug_level_get_type") - (return-type "GType") -) - -(define-function debug_color_flags_get_type - (c-name "gst_debug_color_flags_get_type") - (return-type "GType") -) - -(define-function pad_link_return_get_type - (c-name "gst_pad_link_return_get_type") - (return-type "GType") -) - -(define-function pad_direction_get_type - (c-name "gst_pad_direction_get_type") - (return-type "GType") -) - -(define-function pad_flags_get_type - (c-name "gst_pad_flags_get_type") - (return-type "GType") -) - -(define-function pad_presence_get_type - (c-name "gst_pad_presence_get_type") - (return-type "GType") -) - -(define-function pad_template_flags_get_type - (c-name "gst_pad_template_flags_get_type") - (return-type "GType") -) - -(define-function plugin_error_get_type - (c-name "gst_plugin_error_get_type") - (return-type "GType") -) - -(define-function query_type_get_type - (c-name "gst_query_type_get_type") - (return-type "GType") -) - -(define-function scheduler_flags_get_type - (c-name "gst_scheduler_flags_get_type") - (return-type "GType") -) - -(define-function scheduler_state_get_type - (c-name "gst_scheduler_state_get_type") - (return-type "GType") -) - -(define-function tag_merge_mode_get_type - (c-name "gst_tag_merge_mode_get_type") - (return-type "GType") -) - -(define-function tag_flag_get_type - (c-name "gst_tag_flag_get_type") - (return-type "GType") -) - -(define-function thread_state_get_type - (c-name "gst_thread_state_get_type") - (return-type "GType") -) - -(define-function alloc_trace_flags_get_type - (c-name "gst_alloc_trace_flags_get_type") - (return-type "GType") -) - -(define-function type_find_probability_get_type - (c-name "gst_type_find_probability_get_type") - (return-type "GType") -) - -(define-function element_state_get_type - (c-name "gst_element_state_get_type") - (return-type "GType") -) - -(define-function element_state_return_get_type - (c-name "gst_element_state_return_get_type") - (return-type "GType") -) - -(define-function result_get_type - (c-name "gst_result_get_type") - (return-type "GType") -) - -(define-function uri_type_get_type - (c-name "gst_uri_type_get_type") - (return-type "GType") -) - -(define-function registry_return_get_type - (c-name "gst_registry_return_get_type") - (return-type "GType") -) - -(define-function registry_flags_get_type - (c-name "gst_registry_flags_get_type") - (return-type "GType") -) - -(define-function parse_error_get_type - (c-name "gst_parse_error_get_type") - (return-type "GType") -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gsterror.h - -(define-function core_error_quark - (c-name "gst_core_error_quark") - (return-type "GQuark") -) - -(define-function library_error_quark - (c-name "gst_library_error_quark") - (return-type "GQuark") -) - -(define-function resource_error_quark - (c-name "gst_resource_error_quark") - (return-type "GQuark") -) - -(define-function stream_error_quark - (c-name "gst_stream_error_quark") - (return-type "GQuark") -) - -(define-function error_get_message - (c-name "gst_error_get_message") - (return-type "gchar*") - (parameters - '("GQuark" "domain") - '("gint" "code") - ) -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstevent.h - -(define-function _gst_event_initialize - (c-name "_gst_event_initialize") - (return-type "none") -) - -(define-function event_get_type - (c-name "gst_event_get_type") - (return-type "GType") -) - -(define-function event_new - (c-name "gst_event_new") - (is-constructor-of "GstEvent") - (return-type "GstEvent*") - (parameters - '("GstEventType" "type") - ) -) - -(define-method s_contains - (of-object "GstEventMask") - (c-name "gst_event_masks_contains") - (return-type "gboolean") - (parameters - '("GstEventMask*" "mask") - ) -) - -(define-function event_new_seek - (c-name "gst_event_new_seek") - (return-type "GstEvent*") - (parameters - '("GstSeekType" "type") - '("gint64" "offset") - ) -) - -(define-function event_new_segment_seek - (c-name "gst_event_new_segment_seek") - (return-type "GstEvent*") - (parameters - '("GstSeekType" "type") - '("gint64" "start") - '("gint64" "stop") - ) -) - -(define-function event_new_size - (c-name "gst_event_new_size") - (return-type "GstEvent*") - (parameters - '("GstFormat" "format") - '("gint64" "value") - ) -) - -(define-function event_new_discontinuous - (c-name "gst_event_new_discontinuous") - (return-type "GstEvent*") - (parameters - '("gboolean" "new_media") - '("GstFormat" "format1") - ) - (varargs #t) -) - -(define-function event_new_discontinuous_valist - (c-name "gst_event_new_discontinuous_valist") - (return-type "GstEvent*") - (parameters - '("gboolean" "new_media") - '("GstFormat" "format1") - '("va_list" "var_args") - ) -) - -(define-method discont_get_value - (of-object "GstEvent") - (c-name "gst_event_discont_get_value") - (return-type "gboolean") - (parameters - '("GstFormat" "format") - '("gint64*" "value") - ) -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstfilter.h - -(define-function filter_run - (c-name "gst_filter_run") - (return-type "GList*") - (parameters - '("const-GList*" "list") - '("GstFilterFunc" "func") - '("gboolean" "first") - '("gpointer" "user_data") - ) -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstformat.h - -(define-function _gst_format_initialize - (c-name "_gst_format_initialize") - (return-type "none") -) - -(define-function format_register - (c-name "gst_format_register") - (return-type "GstFormat") - (parameters - '("const-gchar*" "nick") - '("const-gchar*" "description") - ) -) - -(define-function format_get_by_nick - (c-name "gst_format_get_by_nick") - (return-type "GstFormat") - (parameters - '("const-gchar*" "nick") - ) -) - -(define-method s_contains - (of-object "GstFormat") - (c-name "gst_formats_contains") - (return-type "gboolean") - (parameters - '("GstFormat" "format") - ) -) - -(define-method get_details - (of-object "GstFormat") - (c-name "gst_format_get_details") - (return-type "const-GstFormatDefinition*") -) - -(define-function format_get_definitions - (c-name "gst_format_get_definitions") - (return-type "const-GList*") -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gst.h - -(define-function init - (c-name "gst_init") - (return-type "none") - (parameters - '("int*" "argc") - '("char**[]" "argv") - ) -) - -(define-function init_check - (c-name "gst_init_check") - (return-type "gboolean") - (parameters - '("int*" "argc") - '("char**[]" "argv") - ) -) - -(define-function init_with_popt_table - (c-name "gst_init_with_popt_table") - (return-type "none") - (parameters - '("int*" "argc") - '("char**[]" "argv") - '("const-GstPoptOption*" "popt_options") - ) -) - -(define-function init_check_with_popt_table - (c-name "gst_init_check_with_popt_table") - (return-type "gboolean") - (parameters - '("int*" "argc") - '("char**[]" "argv") - '("const-GstPoptOption*" "popt_options") - ) -) - -(define-function init_get_popt_table - (c-name "gst_init_get_popt_table") - (return-type "const-GstPoptOption*") -) - -(define-function use_threads - (c-name "gst_use_threads") - (return-type "none") - (parameters - '("gboolean" "use_threads") - ) -) - -(define-function has_threads - (c-name "gst_has_threads") - (return-type "gboolean") -) - -(define-function main - (c-name "gst_main") - (return-type "none") -) - -(define-function main_quit - (c-name "gst_main_quit") - (return-type "none") -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstindex.h - -(define-function index_get_type - (c-name "gst_index_get_type") - (return-type "GType") -) - -(define-function index_new - (c-name "gst_index_new") - (is-constructor-of "GstIndex") - (return-type "GstIndex*") -) - -(define-method commit - (of-object "GstIndex") - (c-name "gst_index_commit") - (return-type "none") - (parameters - '("gint" "id") - ) -) - -(define-method get_group - (of-object "GstIndex") - (c-name "gst_index_get_group") - (return-type "gint") -) - -(define-method new_group - (of-object "GstIndex") - (c-name "gst_index_new_group") - (return-type "gint") -) - -(define-method set_group - (of-object "GstIndex") - (c-name "gst_index_set_group") - (return-type "gboolean") - (parameters - '("gint" "groupnum") - ) -) - -(define-method set_certainty - (of-object "GstIndex") - (c-name "gst_index_set_certainty") - (return-type "none") - (parameters - '("GstIndexCertainty" "certainty") - ) -) - -(define-method get_certainty - (of-object "GstIndex") - (c-name "gst_index_get_certainty") - (return-type "GstIndexCertainty") -) - -(define-method set_filter - (of-object "GstIndex") - (c-name "gst_index_set_filter") - (return-type "none") - (parameters - '("GstIndexFilter" "filter") - '("gpointer" "user_data") - ) -) - -(define-method set_resolver - (of-object "GstIndex") - (c-name "gst_index_set_resolver") - (return-type "none") - (parameters - '("GstIndexResolver" "resolver") - '("gpointer" "user_data") - ) -) - -(define-method get_writer_id - (of-object "GstIndex") - (c-name "gst_index_get_writer_id") - (return-type "gboolean") - (parameters - '("GstObject*" "writer") - '("gint*" "id") - ) -) - -(define-method add_format - (of-object "GstIndex") - (c-name "gst_index_add_format") - (return-type "GstIndexEntry*") - (parameters - '("gint" "id") - '("GstFormat" "format") - ) -) - -(define-method add_association - (of-object "GstIndex") - (c-name "gst_index_add_association") - (return-type "GstIndexEntry*") - (parameters - '("gint" "id") - '("GstAssocFlags" "flags") - '("GstFormat" "format") - '("gint64" "value") - ) - (varargs #t) -) - -(define-method add_object - (of-object "GstIndex") - (c-name "gst_index_add_object") - (return-type "GstIndexEntry*") - (parameters - '("gint" "id") - '("gchar*" "key") - '("GType" "type") - '("gpointer" "object") - ) -) - -(define-method add_id - (of-object "GstIndex") - (c-name "gst_index_add_id") - (return-type "GstIndexEntry*") - (parameters - '("gint" "id") - '("gchar*" "description") - ) -) - -(define-method get_assoc_entry - (of-object "GstIndex") - (c-name "gst_index_get_assoc_entry") - (return-type "GstIndexEntry*") - (parameters - '("gint" "id") - '("GstIndexLookupMethod" "method") - '("GstAssocFlags" "flags") - '("GstFormat" "format") - '("gint64" "value") - ) -) - -(define-method get_assoc_entry_full - (of-object "GstIndex") - (c-name "gst_index_get_assoc_entry_full") - (return-type "GstIndexEntry*") - (parameters - '("gint" "id") - '("GstIndexLookupMethod" "method") - '("GstAssocFlags" "flags") - '("GstFormat" "format") - '("gint64" "value") - '("GCompareDataFunc" "func") - '("gpointer" "user_data") - ) -) - -(define-function index_entry_get_type - (c-name "gst_index_entry_get_type") - (return-type "GType") -) - -(define-method copy - (of-object "GstIndexEntry") - (c-name "gst_index_entry_copy") - (return-type "GstIndexEntry*") -) - -(define-method free - (of-object "GstIndexEntry") - (c-name "gst_index_entry_free") - (return-type "none") -) - -(define-method assoc_map - (of-object "GstIndexEntry") - (c-name "gst_index_entry_assoc_map") - (return-type "gboolean") - (parameters - '("GstFormat" "format") - '("gint64*" "value") - ) -) - -(define-function index_factory_get_type - (c-name "gst_index_factory_get_type") - (return-type "GType") -) - -(define-function index_factory_new - (c-name "gst_index_factory_new") - (is-constructor-of "GstIndexFactory") - (return-type "GstIndexFactory*") - (parameters - '("const-gchar*" "name") - '("const-gchar*" "longdesc") - '("GType" "type") - ) -) - -(define-method destroy - (of-object "GstIndexFactory") - (c-name "gst_index_factory_destroy") - (return-type "none") -) - -(define-function index_factory_find - (c-name "gst_index_factory_find") - (return-type "GstIndexFactory*") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method create - (of-object "GstIndexFactory") - (c-name "gst_index_factory_create") - (return-type "GstIndex*") -) - -(define-function index_factory_make - (c-name "gst_index_factory_make") - (return-type "GstIndex*") - (parameters - '("const-gchar*" "name") - ) -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstinfo.h - -(define-function _gst_debug_init - (c-name "_gst_debug_init") - (return-type "none") -) - -(define-function debug_log - (c-name "gst_debug_log") - (return-type "none") - (parameters - '("GstDebugCategory*" "category") - '("GstDebugLevel" "level") - '("const-gchar*" "file") - '("const-gchar*" "function") - '("gint" "line") - '("GObject*" "object") - '("const-gchar*" "format") - ) - (varargs #t) -) - -(define-function debug_log_valist - (c-name "gst_debug_log_valist") - (return-type "none") - (parameters - '("GstDebugCategory*" "category") - '("GstDebugLevel" "level") - '("const-gchar*" "file") - '("const-gchar*" "function") - '("gint" "line") - '("GObject*" "object") - '("const-gchar*" "format") - '("va_list" "args") - ) -) - -(define-method get - (of-object "GstDebugMessage") - (c-name "gst_debug_message_get") - (return-type "const-gchar*") -) - -(define-function debug_log_default - (c-name "gst_debug_log_default") - (return-type "none") - (parameters - '("GstDebugCategory*" "category") - '("GstDebugLevel" "level") - '("const-gchar*" "file") - '("const-gchar*" "function") - '("gint" "line") - '("GObject*" "object") - '("GstDebugMessage*" "message") - '("gpointer" "unused") - ) -) - -(define-method get_name - (of-object "GstDebugLevel") - (c-name "gst_debug_level_get_name") - (return-type "const-gchar*") -) - -(define-function debug_add_log_function - (c-name "gst_debug_add_log_function") - (return-type "none") - (parameters - '("GstLogFunction" "func") - '("gpointer" "data") - ) -) - -(define-function debug_remove_log_function - (c-name "gst_debug_remove_log_function") - (return-type "guint") - (parameters - '("GstLogFunction" "func") - ) -) - -(define-function debug_remove_log_function_by_data - (c-name "gst_debug_remove_log_function_by_data") - (return-type "guint") - (parameters - '("gpointer" "data") - ) -) - -(define-function debug_set_active - (c-name "gst_debug_set_active") - (return-type "none") - (parameters - '("gboolean" "active") - ) -) - -(define-function debug_is_active - (c-name "gst_debug_is_active") - (return-type "gboolean") -) - -(define-function debug_set_colored - (c-name "gst_debug_set_colored") - (return-type "none") - (parameters - '("gboolean" "colored") - ) -) - -(define-function debug_is_colored - (c-name "gst_debug_is_colored") - (return-type "gboolean") -) - -(define-function debug_set_default_threshold - (c-name "gst_debug_set_default_threshold") - (return-type "none") - (parameters - '("GstDebugLevel" "level") - ) -) - -(define-function debug_get_default_threshold - (c-name "gst_debug_get_default_threshold") - (return-type "GstDebugLevel") -) - -(define-function debug_set_threshold_for_name - (c-name "gst_debug_set_threshold_for_name") - (return-type "none") - (parameters - '("const-gchar*" "name") - '("GstDebugLevel" "level") - ) -) - -(define-function debug_unset_threshold_for_name - (c-name "gst_debug_unset_threshold_for_name") - (return-type "none") - (parameters - '("const-gchar*" "name") - ) -) - -(define-function _gst_debug_category_new - (c-name "_gst_debug_category_new") - (is-constructor-of "GstDebugCategory") - (return-type "GstDebugCategory*") - (parameters - '("gchar*" "name") - '("guint" "color") - '("gchar*" "description") - ) -) - -(define-method free - (of-object "GstDebugCategory") - (c-name "gst_debug_category_free") - (return-type "none") -) - -(define-method set_threshold - (of-object "GstDebugCategory") - (c-name "gst_debug_category_set_threshold") - (return-type "none") - (parameters - '("GstDebugLevel" "level") - ) -) - -(define-method reset_threshold - (of-object "GstDebugCategory") - (c-name "gst_debug_category_reset_threshold") - (return-type "none") -) - -(define-method get_threshold - (of-object "GstDebugCategory") - (c-name "gst_debug_category_get_threshold") - (return-type "GstDebugLevel") -) - -(define-method get_name - (of-object "GstDebugCategory") - (c-name "gst_debug_category_get_name") - (return-type "const-gchar*") -) - -(define-method get_color - (of-object "GstDebugCategory") - (c-name "gst_debug_category_get_color") - (return-type "guint") -) - -(define-method get_description - (of-object "GstDebugCategory") - (c-name "gst_debug_category_get_description") - (return-type "const-gchar*") -) - -(define-function debug_get_all_categories - (c-name "gst_debug_get_all_categories") - (return-type "GSList*") -) - -(define-function debug_construct_term_color - (c-name "gst_debug_construct_term_color") - (return-type "gchar*") - (parameters - '("guint" "colorinfo") - ) -) - -(define-function _gst_debug_register_funcptr - (c-name "_gst_debug_register_funcptr") - (return-type "void*") - (parameters - '("void*" "ptr") - '("gchar*" "ptrname") - ) -) - -(define-function _gst_debug_nameof_funcptr - (c-name "_gst_debug_nameof_funcptr") - (return-type "const-gchar*") - (parameters - '("void*" "ptr") - ) -) - -(define-function debug_print_stack_trace - (c-name "gst_debug_print_stack_trace") - (return-type "none") -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstinterface.h - -(define-function implements_interface_get_type - (c-name "gst_implements_interface_get_type") - (return-type "GType") -) - -(define-method implements_interface - (of-object "GstElement") - (c-name "gst_element_implements_interface") - (return-type "gboolean") - (parameters - '("GType" "iface_type") - ) -) - -(define-function implements_interface_cast - (c-name "gst_implements_interface_cast") - (return-type "gpointer") - (parameters - '("gpointer" "from") - '("GType" "type") - ) -) - -(define-function implements_interface_check - (c-name "gst_implements_interface_check") - (return-type "gboolean") - (parameters - '("gpointer" "from") - '("GType" "type") - ) -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstlog.h - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstmacros.h - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstmarshal.h - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstmemchunk.h - -(define-function mem_chunk_new - (c-name "gst_mem_chunk_new") - (is-constructor-of "GstMemChunk") - (return-type "GstMemChunk*") - (parameters - '("gchar*" "name") - '("gint" "atom_size") - '("gulong" "area_size") - '("gint" "type") - ) -) - -(define-method destroy - (of-object "GstMemChunk") - (c-name "gst_mem_chunk_destroy") - (return-type "none") -) - -(define-method alloc - (of-object "GstMemChunk") - (c-name "gst_mem_chunk_alloc") - (return-type "gpointer") -) - -(define-method alloc0 - (of-object "GstMemChunk") - (c-name "gst_mem_chunk_alloc0") - (return-type "gpointer") -) - -(define-method free - (of-object "GstMemChunk") - (c-name "gst_mem_chunk_free") - (return-type "none") - (parameters - '("gpointer" "mem") - ) -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstobject.h - -(define-function object_get_type - (c-name "gst_object_get_type") - (return-type "GType") -) - -(define-method set_name - (of-object "GstObject") - (c-name "gst_object_set_name") - (return-type "none") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method get_name - (of-object "GstObject") - (c-name "gst_object_get_name") - (return-type "const-gchar*") -) - -(define-method set_parent - (of-object "GstObject") - (c-name "gst_object_set_parent") - (return-type "none") - (parameters - '("GstObject*" "parent") - ) -) - -(define-method get_parent - (of-object "GstObject") - (c-name "gst_object_get_parent") - (return-type "GstObject*") -) - -(define-method unparent - (of-object "GstObject") - (c-name "gst_object_unparent") - (return-type "none") -) - -(define-function object_default_deep_notify - (c-name "gst_object_default_deep_notify") - (return-type "none") - (parameters - '("GObject*" "object") - '("GstObject*" "orig") - '("GParamSpec*" "pspec") - '("gchar**" "excluded_props") - ) -) - -(define-function object_check_uniqueness - (c-name "gst_object_check_uniqueness") - (return-type "gboolean") - (parameters - '("GList*" "list") - '("const-gchar*" "name") - ) -) - -(define-method save_thyself - (of-object "GstObject") - (c-name "gst_object_save_thyself") - (return-type "xmlNodePtr") - (parameters - '("xmlNodePtr" "parent") - ) -) - -(define-method restore_thyself - (of-object "GstObject") - (c-name "gst_object_restore_thyself") - (return-type "none") - (parameters - '("xmlNodePtr" "self") - ) -) - -(define-method ref - (of-object "GstObject") - (c-name "gst_object_ref") - (return-type "GstObject*") -) - -(define-method unref - (of-object "GstObject") - (c-name "gst_object_unref") - (return-type "none") -) - -(define-method sink - (of-object "GstObject") - (c-name "gst_object_sink") - (return-type "none") -) - -(define-function object_replace - (c-name "gst_object_replace") - (return-type "none") - (parameters - '("GstObject**" "oldobj") - '("GstObject*" "newobj") - ) -) - -(define-method get_path_string - (of-object "GstObject") - (c-name "gst_object_get_path_string") - (return-type "gchar*") -) - -(define-function class_signal_connect - (c-name "gst_class_signal_connect") - (return-type "guint") - (parameters - '("GstObjectClass*" "klass") - '("const-gchar*" "name") - '("gpointer" "func") - '("gpointer" "func_data") - ) -) - -(define-function class_signal_emit_by_name - (c-name "gst_class_signal_emit_by_name") - (return-type "none") - (parameters - '("GstObject*" "object") - '("const-gchar*" "name") - '("xmlNodePtr" "self") - ) -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstpad.h - -(define-function pad_get_type - (c-name "gst_pad_get_type") - (return-type "GType") -) - -(define-function real_pad_get_type - (c-name "gst_real_pad_get_type") - (return-type "GType") -) - -(define-function ghost_pad_get_type - (c-name "gst_ghost_pad_get_type") - (return-type "GType") -) - -(define-function pad_new - (c-name "gst_pad_new") - (is-constructor-of "GstPad") - (return-type "GstPad*") - (parameters - '("const-gchar*" "name") - '("GstPadDirection" "direction") - ) -) - -(define-function pad_new_from_template - (c-name "gst_pad_new_from_template") - (return-type "GstPad*") - (parameters - '("GstPadTemplate*" "templ") - '("const-gchar*" "name") - ) -) - -(define-function pad_custom_new - (c-name "gst_pad_custom_new") - (is-constructor-of "GstPadCustom") - (return-type "GstPad*") - (parameters - '("GType" "type") - '("const-gchar*" "name") - '("GstPadDirection" "direction") - ) -) - -(define-function pad_custom_new_from_template - (c-name "gst_pad_custom_new_from_template") - (return-type "GstPad*") - (parameters - '("GType" "type") - '("GstPadTemplate*" "templ") - '("const-gchar*" "name") - ) -) - -(define-method set_name - (of-object "GstPad") - (c-name "gst_pad_set_name") - (return-type "none") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method get_name - (of-object "GstPad") - (c-name "gst_pad_get_name") - (return-type "const-gchar*") -) - -(define-method get_direction - (of-object "GstPad") - (c-name "gst_pad_get_direction") - (return-type "GstPadDirection") -) - -(define-method set_active - (of-object "GstPad") - (c-name "gst_pad_set_active") - (return-type "none") - (parameters - '("gboolean" "active") - ) -) - -(define-method is_active - (of-object "GstPad") - (c-name "gst_pad_is_active") - (return-type "gboolean") -) - -(define-method set_element_private - (of-object "GstPad") - (c-name "gst_pad_set_element_private") - (return-type "none") - (parameters - '("gpointer" "priv") - ) -) - -(define-method get_element_private - (of-object "GstPad") - (c-name "gst_pad_get_element_private") - (return-type "gpointer") -) - -(define-method set_parent - (of-object "GstPad") - (c-name "gst_pad_set_parent") - (return-type "none") - (parameters - '("GstElement*" "parent") - ) -) - -(define-method get_parent - (of-object "GstPad") - (c-name "gst_pad_get_parent") - (return-type "GstElement*") -) - -(define-method get_real_parent - (of-object "GstPad") - (c-name "gst_pad_get_real_parent") - (return-type "GstElement*") -) - -(define-method get_scheduler - (of-object "GstPad") - (c-name "gst_pad_get_scheduler") - (return-type "GstScheduler*") -) - -(define-method add_ghost_pad - (of-object "GstPad") - (c-name "gst_pad_add_ghost_pad") - (return-type "none") - (parameters - '("GstPad*" "ghostpad") - ) -) - -(define-method remove_ghost_pad - (of-object "GstPad") - (c-name "gst_pad_remove_ghost_pad") - (return-type "none") - (parameters - '("GstPad*" "ghostpad") - ) -) - -(define-method get_ghost_pad_list - (of-object "GstPad") - (c-name "gst_pad_get_ghost_pad_list") - (return-type "GList*") -) - -(define-method get_pad_template - (of-object "GstPad") - (c-name "gst_pad_get_pad_template") - (return-type "GstPadTemplate*") -) - -(define-method set_bufferalloc_function - (of-object "GstPad") - (c-name "gst_pad_set_bufferalloc_function") - (return-type "none") - (parameters - '("GstPadBufferAllocFunction" "bufferalloc") - ) -) - -(define-method alloc_buffer - (of-object "GstPad") - (c-name "gst_pad_alloc_buffer") - (return-type "GstBuffer*") - (parameters - '("guint64" "offset") - '("gint" "size") - ) -) - -(define-method set_chain_function - (of-object "GstPad") - (c-name "gst_pad_set_chain_function") - (return-type "none") - (parameters - '("GstPadChainFunction" "chain") - ) -) - -(define-method set_get_function - (of-object "GstPad") - (c-name "gst_pad_set_get_function") - (return-type "none") - (parameters - '("GstPadGetFunction" "get") - ) -) - -(define-method set_event_function - (of-object "GstPad") - (c-name "gst_pad_set_event_function") - (return-type "none") - (parameters - '("GstPadEventFunction" "event") - ) -) - -(define-method set_event_mask_function - (of-object "GstPad") - (c-name "gst_pad_set_event_mask_function") - (return-type "none") - (parameters - '("GstPadEventMaskFunction" "mask_func") - ) -) - -(define-method get_event_masks - (of-object "GstPad") - (c-name "gst_pad_get_event_masks") - (return-type "const-GstEventMask*") -) - -(define-method get_event_masks_default - (of-object "GstPad") - (c-name "gst_pad_get_event_masks_default") - (return-type "const-GstEventMask*") -) - -(define-method set_link_function - (of-object "GstPad") - (c-name "gst_pad_set_link_function") - (return-type "none") - (parameters - '("GstPadLinkFunction" "link") - ) -) - -(define-method can_link - (of-object "GstPad") - (c-name "gst_pad_can_link") - (return-type "gboolean") - (parameters - '("GstPad*" "sinkpad") - ) -) - -(define-method can_link_filtered - (of-object "GstPad") - (c-name "gst_pad_can_link_filtered") - (return-type "gboolean") - (parameters - '("GstPad*" "sinkpad") - '("const-GstCaps*" "filtercaps") - ) -) - -(define-method set_unlink_function - (of-object "GstPad") - (c-name "gst_pad_set_unlink_function") - (return-type "none") - (parameters - '("GstPadUnlinkFunction" "unlink") - ) -) - -(define-method link - (of-object "GstPad") - (c-name "gst_pad_link") - (return-type "gboolean") - (parameters - '("GstPad*" "sinkpad") - ) -) - -(define-method link_filtered - (of-object "GstPad") - (c-name "gst_pad_link_filtered") - (return-type "gboolean") - (parameters - '("GstPad*" "sinkpad") - '("const-GstCaps*" "filtercaps") - ) -) - -(define-method unlink - (of-object "GstPad") - (c-name "gst_pad_unlink") - (return-type "none") - (parameters - '("GstPad*" "sinkpad") - ) -) - -(define-method is_linked - (of-object "GstPad") - (c-name "gst_pad_is_linked") - (return-type "gboolean") -) - -(define-method get_peer - (of-object "GstPad") - (c-name "gst_pad_get_peer") - (return-type "GstPad*") -) - -(define-method get_negotiated_caps - (of-object "GstPad") - (c-name "gst_pad_get_negotiated_caps") - (return-type "const-GstCaps*") -) - -(define-method is_negotiated - (of-object "GstPad") - (c-name "gst_pad_is_negotiated") - (return-type "gboolean") -) - -(define-method get_caps - (of-object "GstPad") - (c-name "gst_pad_get_caps") - (return-type "GstCaps*") -) - -(define-method get_pad_template_caps - (of-object "GstPad") - (c-name "gst_pad_get_pad_template_caps") - (return-type "const-GstCaps*") -) - -(define-method try_set_caps - (of-object "GstPad") - (c-name "gst_pad_try_set_caps") - (return-type "GstPadLinkReturn") - (parameters - '("const-GstCaps*" "caps") - ) -) - -(define-method try_set_caps_nonfixed - (of-object "GstPad") - (c-name "gst_pad_try_set_caps_nonfixed") - (return-type "GstPadLinkReturn") - (parameters - '("const-GstCaps*" "caps") - ) -) - -(define-method check_compatibility - (of-object "GstPad") - (c-name "gst_pad_check_compatibility") - (return-type "gboolean") - (parameters - '("GstPad*" "sinkpad") - ) -) - -(define-method set_getcaps_function - (of-object "GstPad") - (c-name "gst_pad_set_getcaps_function") - (return-type "none") - (parameters - '("GstPadGetCapsFunction" "getcaps") - ) -) - -(define-method set_fixate_function - (of-object "GstPad") - (c-name "gst_pad_set_fixate_function") - (return-type "none") - (parameters - '("GstPadFixateFunction" "fixate") - ) -) - -(define-method proxy_getcaps - (of-object "GstPad") - (c-name "gst_pad_proxy_getcaps") - (return-type "GstCaps*") -) - -(define-method proxy_pad_link - (of-object "GstPad") - (c-name "gst_pad_proxy_pad_link") - (return-type "GstPadLinkReturn") - (parameters - '("const-GstCaps*" "caps") - ) -) - -(define-method proxy_fixate - (of-object "GstPad") - (c-name "gst_pad_proxy_fixate") - (return-type "GstCaps*") - (parameters - '("const-GstCaps*" "caps") - ) -) - -(define-method proxy_link - (of-object "GstPad") - (c-name "gst_pad_proxy_link") - (return-type "GstPadLinkReturn") - (parameters - '("const-GstCaps*" "caps") - ) -) - -(define-method set_explicit_caps - (of-object "GstPad") - (c-name "gst_pad_set_explicit_caps") - (return-type "gboolean") - (parameters - '("const-GstCaps*" "caps") - ) -) - -(define-method use_explicit_caps - (of-object "GstPad") - (c-name "gst_pad_use_explicit_caps") - (return-type "none") -) - -(define-method relink_filtered - (of-object "GstPad") - (c-name "gst_pad_relink_filtered") - (return-type "gboolean") - (parameters - '("GstPad*" "sinkpad") - '("const-GstCaps*" "filtercaps") - ) -) - -(define-method perform_negotiate - (of-object "GstPad") - (c-name "gst_pad_perform_negotiate") - (return-type "gboolean") - (parameters - '("GstPad*" "sinkpad") - ) -) - -(define-method renegotiate - (of-object "GstPad") - (c-name "gst_pad_renegotiate") - (return-type "GstPadLinkReturn") -) - -(define-method unnegotiate - (of-object "GstPad") - (c-name "gst_pad_unnegotiate") - (return-type "none") -) - -(define-method try_relink_filtered - (of-object "GstPad") - (c-name "gst_pad_try_relink_filtered") - (return-type "gboolean") - (parameters - '("GstPad*" "sinkpad") - '("const-GstCaps*" "filtercaps") - ) -) - -(define-method get_allowed_caps - (of-object "GstPad") - (c-name "gst_pad_get_allowed_caps") - (return-type "GstCaps*") -) - -(define-method caps_change_notify - (of-object "GstPad") - (c-name "gst_pad_caps_change_notify") - (return-type "none") -) - -(define-method recover_caps_error - (of-object "GstPad") - (c-name "gst_pad_recover_caps_error") - (return-type "gboolean") - (parameters - '("const-GstCaps*" "allowed") - ) -) - -(define-method push - (of-object "GstPad") - (c-name "gst_pad_push") - (return-type "none") - (parameters - '("GstData*" "data") - ) -) - -(define-method pull - (of-object "GstPad") - (c-name "gst_pad_pull") - (return-type "GstData*") -) - -(define-method send_event - (of-object "GstPad") - (c-name "gst_pad_send_event") - (return-type "gboolean") - (parameters - '("GstEvent*" "event") - ) -) - -(define-method event_default - (of-object "GstPad") - (c-name "gst_pad_event_default") - (return-type "gboolean") - (parameters - '("GstEvent*" "event") - ) -) - -(define-function pad_selectv - (c-name "gst_pad_selectv") - (return-type "GstPad*") - (parameters - '("GList*" "padlist") - ) -) - -(define-method select - (of-object "GstPad") - (c-name "gst_pad_select") - (return-type "GstPad*") - (parameters - ) - (varargs #t) -) - -(define-method select_valist - (of-object "GstPad") - (c-name "gst_pad_select_valist") - (return-type "GstPad*") - (parameters - '("va_list" "varargs") - ) -) - -(define-method set_formats_function - (of-object "GstPad") - (c-name "gst_pad_set_formats_function") - (return-type "none") - (parameters - '("GstPadFormatsFunction" "formats") - ) -) - -(define-method get_formats - (of-object "GstPad") - (c-name "gst_pad_get_formats") - (return-type "const-GstFormat*") -) - -(define-method get_formats_default - (of-object "GstPad") - (c-name "gst_pad_get_formats_default") - (return-type "const-GstFormat*") -) - -(define-method set_convert_function - (of-object "GstPad") - (c-name "gst_pad_set_convert_function") - (return-type "none") - (parameters - '("GstPadConvertFunction" "convert") - ) -) - -(define-method convert - (of-object "GstPad") - (c-name "gst_pad_convert") - (return-type "gboolean") - (parameters - '("GstFormat" "src_format") - '("gint64" "src_value") - '("GstFormat*" "dest_format") - '("gint64*" "dest_value") - ) -) - -(define-method convert_default - (of-object "GstPad") - (c-name "gst_pad_convert_default") - (return-type "gboolean") - (parameters - '("GstFormat" "src_format") - '("gint64" "src_value") - '("GstFormat*" "dest_format") - '("gint64*" "dest_value") - ) -) - -(define-method set_query_function - (of-object "GstPad") - (c-name "gst_pad_set_query_function") - (return-type "none") - (parameters - '("GstPadQueryFunction" "query") - ) -) - -(define-method set_query_type_function - (of-object "GstPad") - (c-name "gst_pad_set_query_type_function") - (return-type "none") - (parameters - '("GstPadQueryTypeFunction" "type_func") - ) -) - -(define-method get_query_types - (of-object "GstPad") - (c-name "gst_pad_get_query_types") - (return-type "const-GstQueryType*") -) - -(define-method get_query_types_default - (of-object "GstPad") - (c-name "gst_pad_get_query_types_default") - (return-type "const-GstQueryType*") -) - -(define-method query - (of-object "GstPad") - (c-name "gst_pad_query") - (return-type "gboolean") - (parameters - '("GstQueryType" "type") - '("GstFormat*" "format") - '("gint64*" "value") - ) -) - -(define-method query_default - (of-object "GstPad") - (c-name "gst_pad_query_default") - (return-type "gboolean") - (parameters - '("GstQueryType" "type") - '("GstFormat*" "format") - '("gint64*" "value") - ) -) - -(define-method set_internal_link_function - (of-object "GstPad") - (c-name "gst_pad_set_internal_link_function") - (return-type "none") - (parameters - '("GstPadIntLinkFunction" "intlink") - ) -) - -(define-method get_internal_links - (of-object "GstPad") - (c-name "gst_pad_get_internal_links") - (return-type "GList*") -) - -(define-method get_internal_links_default - (of-object "GstPad") - (c-name "gst_pad_get_internal_links_default") - (return-type "GList*") -) - -(define-method dispatcher - (of-object "GstPad") - (c-name "gst_pad_dispatcher") - (return-type "gboolean") - (parameters - '("GstPadDispatcherFunction" "dispatch") - '("gpointer" "data") - ) -) - -(define-function pad_load_and_link - (c-name "gst_pad_load_and_link") - (return-type "none") - (parameters - '("xmlNodePtr" "self") - '("GstObject*" "parent") - ) -) - -(define-function ghost_pad_new - (c-name "gst_ghost_pad_new") - (is-constructor-of "GstGhostPad") - (return-type "GstPad*") - (parameters - '("const-gchar*" "name") - '("GstPad*" "pad") - ) -) - -(define-function pad_template_get_type - (c-name "gst_pad_template_get_type") - (return-type "GType") -) - -(define-function pad_template_new - (c-name "gst_pad_template_new") - (is-constructor-of "GstPadTemplate") - (return-type "GstPadTemplate*") - (parameters - '("const-gchar*" "name_template") - '("GstPadDirection" "direction") - '("GstPadPresence" "presence") - '("GstCaps*" "caps") - ) -) - -(define-method get - (of-object "GstStaticPadTemplate") - (c-name "gst_static_pad_template_get") - (return-type "GstPadTemplate*") -) - -(define-method get_caps - (of-object "GstPadTemplate") - (c-name "gst_pad_template_get_caps") - (return-type "const-GstCaps*") -) - -(define-method get_caps_by_name - (of-object "GstPadTemplate") - (c-name "gst_pad_template_get_caps_by_name") - (return-type "const-GstCaps*") - (parameters - '("const-gchar*" "name") - ) -) - -(define-function ghost_pad_save_thyself - (c-name "gst_ghost_pad_save_thyself") - (return-type "xmlNodePtr") - (parameters - '("GstPad*" "pad") - '("xmlNodePtr" "parent") - ) -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstparse.h - -(define-function parse_error_quark - (c-name "gst_parse_error_quark") - (return-type "GQuark") -) - -(define-function parse_launch - (c-name "gst_parse_launch") - (return-type "GstElement*") - (parameters - '("const-gchar*" "pipeline_description") - '("GError**" "error") - ) -) - -(define-function parse_launchv - (c-name "gst_parse_launchv") - (return-type "GstElement*") - (parameters - '("const-gchar**" "argv") - '("GError**" "error") - ) -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstpipeline.h - -(define-function pipeline_get_type - (c-name "gst_pipeline_get_type") - (return-type "GType") -) - -(define-function pipeline_new - (c-name "gst_pipeline_new") - (is-constructor-of "GstPipeline") - (return-type "GstElement*") - (parameters - '("const-gchar*" "name") - ) -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstpluginfeature.h - -(define-function plugin_feature_get_type - (c-name "gst_plugin_feature_get_type") - (return-type "GType") -) - -(define-method ensure_loaded - (of-object "GstPluginFeature") - (c-name "gst_plugin_feature_ensure_loaded") - (return-type "gboolean") -) - -(define-method unload_thyself - (of-object "GstPluginFeature") - (c-name "gst_plugin_feature_unload_thyself") - (return-type "none") -) - -(define-method type_name_filter - (of-object "GstPluginFeature") - (c-name "gst_plugin_feature_type_name_filter") - (return-type "gboolean") - (parameters - '("GstTypeNameData*" "data") - ) -) - -(define-method set_rank - (of-object "GstPluginFeature") - (c-name "gst_plugin_feature_set_rank") - (return-type "none") - (parameters - '("guint" "rank") - ) -) - -(define-method set_name - (of-object "GstPluginFeature") - (c-name "gst_plugin_feature_set_name") - (return-type "none") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method get_rank - (of-object "GstPluginFeature") - (c-name "gst_plugin_feature_get_rank") - (return-type "guint") -) - -(define-method get_name - (of-object "GstPluginFeature") - (c-name "gst_plugin_feature_get_name") - (return-type "const-gchar*") -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstplugin.h - -(define-function plugin_error_quark - (c-name "gst_plugin_error_quark") - (return-type "GQuark") -) - -(define-function plugin_get_type - (c-name "gst_plugin_get_type") - (return-type "GType") -) - -(define-function _gst_plugin_initialize - (c-name "_gst_plugin_initialize") - (return-type "none") -) - -(define-function _gst_plugin_register_static - (c-name "_gst_plugin_register_static") - (return-type "none") - (parameters - '("GstPluginDesc*" "desc") - ) -) - -(define-method get_name - (of-object "GstPlugin") - (c-name "gst_plugin_get_name") - (return-type "const-gchar*") -) - -(define-method get_description - (of-object "GstPlugin") - (c-name "gst_plugin_get_description") - (return-type "const-gchar*") -) - -(define-method get_filename - (of-object "GstPlugin") - (c-name "gst_plugin_get_filename") - (return-type "const-gchar*") -) - -(define-method get_license - (of-object "GstPlugin") - (c-name "gst_plugin_get_license") - (return-type "const-gchar*") -) - -(define-method get_package - (of-object "GstPlugin") - (c-name "gst_plugin_get_package") - (return-type "const-gchar*") -) - -(define-method get_origin - (of-object "GstPlugin") - (c-name "gst_plugin_get_origin") - (return-type "const-gchar*") -) - -(define-method get_module - (of-object "GstPlugin") - (c-name "gst_plugin_get_module") - (return-type "GModule*") -) - -(define-method is_loaded - (of-object "GstPlugin") - (c-name "gst_plugin_is_loaded") - (return-type "gboolean") -) - -(define-method feature_filter - (of-object "GstPlugin") - (c-name "gst_plugin_feature_filter") - (return-type "GList*") - (parameters - '("GstPluginFeatureFilter" "filter") - '("gboolean" "first") - '("gpointer" "user_data") - ) -) - -(define-function plugin_list_feature_filter - (c-name "gst_plugin_list_feature_filter") - (return-type "GList*") - (parameters - '("GList*" "list") - '("GstPluginFeatureFilter" "filter") - '("gboolean" "first") - '("gpointer" "user_data") - ) -) - -(define-method name_filter - (of-object "GstPlugin") - (c-name "gst_plugin_name_filter") - (return-type "gboolean") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method get_feature_list - (of-object "GstPlugin") - (c-name "gst_plugin_get_feature_list") - (return-type "GList*") -) - -(define-method find_feature - (of-object "GstPlugin") - (c-name "gst_plugin_find_feature") - (return-type "GstPluginFeature*") - (parameters - '("const-gchar*" "name") - '("GType" "type") - ) -) - -(define-function plugin_load_file - (c-name "gst_plugin_load_file") - (return-type "GstPlugin*") - (parameters - '("const-gchar*" "filename") - '("GError**" "error") - ) -) - -(define-method unload_plugin - (of-object "GstPlugin") - (c-name "gst_plugin_unload_plugin") - (return-type "gboolean") -) - -(define-method add_feature - (of-object "GstPlugin") - (c-name "gst_plugin_add_feature") - (return-type "none") - (parameters - '("GstPluginFeature*" "feature") - ) -) - -(define-function plugin_load - (c-name "gst_plugin_load") - (return-type "gboolean") - (parameters - '("const-gchar*" "name") - ) -) - -(define-function library_load - (c-name "gst_library_load") - (return-type "gboolean") - (parameters - '("const-gchar*" "name") - ) -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstprobe.h - -(define-function probe_new - (c-name "gst_probe_new") - (is-constructor-of "GstProbe") - (return-type "GstProbe*") - (parameters - '("gboolean" "single_shot") - '("GstProbeCallback" "callback") - '("gpointer" "user_data") - ) -) - -(define-method destroy - (of-object "GstProbe") - (c-name "gst_probe_destroy") - (return-type "none") -) - -(define-method perform - (of-object "GstProbe") - (c-name "gst_probe_perform") - (return-type "gboolean") - (parameters - '("GstData**" "data") - ) -) - -(define-function probe_dispatcher_new - (c-name "gst_probe_dispatcher_new") - (is-constructor-of "GstProbeDispatcher") - (return-type "GstProbeDispatcher*") -) - -(define-method destroy - (of-object "GstProbeDispatcher") - (c-name "gst_probe_dispatcher_destroy") - (return-type "none") -) - -(define-method init - (of-object "GstProbeDispatcher") - (c-name "gst_probe_dispatcher_init") - (return-type "none") -) - -(define-method set_active - (of-object "GstProbeDispatcher") - (c-name "gst_probe_dispatcher_set_active") - (return-type "none") - (parameters - '("gboolean" "active") - ) -) - -(define-method add_probe - (of-object "GstProbeDispatcher") - (c-name "gst_probe_dispatcher_add_probe") - (return-type "none") - (parameters - '("GstProbe*" "probe") - ) -) - -(define-method remove_probe - (of-object "GstProbeDispatcher") - (c-name "gst_probe_dispatcher_remove_probe") - (return-type "none") - (parameters - '("GstProbe*" "probe") - ) -) - -(define-method dispatch - (of-object "GstProbeDispatcher") - (c-name "gst_probe_dispatcher_dispatch") - (return-type "gboolean") - (parameters - '("GstData**" "data") - ) -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstquery.h - -(define-function _gst_query_type_initialize - (c-name "_gst_query_type_initialize") - (return-type "none") -) - -(define-function query_type_register - (c-name "gst_query_type_register") - (return-type "GstQueryType") - (parameters - '("const-gchar*" "nick") - '("const-gchar*" "description") - ) -) - -(define-function query_type_get_by_nick - (c-name "gst_query_type_get_by_nick") - (return-type "GstQueryType") - (parameters - '("const-gchar*" "nick") - ) -) - -(define-method s_contains - (of-object "GstQueryType") - (c-name "gst_query_types_contains") - (return-type "gboolean") - (parameters - '("GstQueryType" "type") - ) -) - -(define-method get_details - (of-object "GstQueryType") - (c-name "gst_query_type_get_details") - (return-type "const-GstQueryTypeDefinition*") -) - -(define-function query_type_get_definitions - (c-name "gst_query_type_get_definitions") - (return-type "const-GList*") -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstqueue.h - -(define-function queue_get_type - (c-name "gst_queue_get_type") - (return-type "GType") -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstregistry.h - -(define-function registry_get_type - (c-name "gst_registry_get_type") - (return-type "GType") -) - -(define-method load - (of-object "GstRegistry") - (c-name "gst_registry_load") - (return-type "gboolean") -) - -(define-method is_loaded - (of-object "GstRegistry") - (c-name "gst_registry_is_loaded") - (return-type "gboolean") -) - -(define-method save - (of-object "GstRegistry") - (c-name "gst_registry_save") - (return-type "gboolean") -) - -(define-method rebuild - (of-object "GstRegistry") - (c-name "gst_registry_rebuild") - (return-type "gboolean") -) - -(define-method unload - (of-object "GstRegistry") - (c-name "gst_registry_unload") - (return-type "gboolean") -) - -(define-method add_path - (of-object "GstRegistry") - (c-name "gst_registry_add_path") - (return-type "none") - (parameters - '("const-gchar*" "path") - ) -) - -(define-method get_path_list - (of-object "GstRegistry") - (c-name "gst_registry_get_path_list") - (return-type "GList*") -) - -(define-method clear_paths - (of-object "GstRegistry") - (c-name "gst_registry_clear_paths") - (return-type "none") -) - -(define-method add_plugin - (of-object "GstRegistry") - (c-name "gst_registry_add_plugin") - (return-type "gboolean") - (parameters - '("GstPlugin*" "plugin") - ) -) - -(define-method remove_plugin - (of-object "GstRegistry") - (c-name "gst_registry_remove_plugin") - (return-type "none") - (parameters - '("GstPlugin*" "plugin") - ) -) - -(define-method plugin_filter - (of-object "GstRegistry") - (c-name "gst_registry_plugin_filter") - (return-type "GList*") - (parameters - '("GstPluginFilter" "filter") - '("gboolean" "first") - '("gpointer" "user_data") - ) -) - -(define-method feature_filter - (of-object "GstRegistry") - (c-name "gst_registry_feature_filter") - (return-type "GList*") - (parameters - '("GstPluginFeatureFilter" "filter") - '("gboolean" "first") - '("gpointer" "user_data") - ) -) - -(define-method find_plugin - (of-object "GstRegistry") - (c-name "gst_registry_find_plugin") - (return-type "GstPlugin*") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method find_feature - (of-object "GstRegistry") - (c-name "gst_registry_find_feature") - (return-type "GstPluginFeature*") - (parameters - '("const-gchar*" "name") - '("GType" "type") - ) -) - -(define-method load_plugin - (of-object "GstRegistry") - (c-name "gst_registry_load_plugin") - (return-type "GstRegistryReturn") - (parameters - '("GstPlugin*" "plugin") - ) -) - -(define-method unload_plugin - (of-object "GstRegistry") - (c-name "gst_registry_unload_plugin") - (return-type "GstRegistryReturn") - (parameters - '("GstPlugin*" "plugin") - ) -) - -(define-method update_plugin - (of-object "GstRegistry") - (c-name "gst_registry_update_plugin") - (return-type "GstRegistryReturn") - (parameters - '("GstPlugin*" "plugin") - ) -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstregistrypool.h - -(define-function registry_pool_list - (c-name "gst_registry_pool_list") - (return-type "GList*") -) - -(define-method pool_add - (of-object "GstRegistry") - (c-name "gst_registry_pool_add") - (return-type "none") - (parameters - '("guint" "priority") - ) -) - -(define-method pool_remove - (of-object "GstRegistry") - (c-name "gst_registry_pool_remove") - (return-type "none") -) - -(define-function registry_pool_add_plugin - (c-name "gst_registry_pool_add_plugin") - (return-type "none") - (parameters - '("GstPlugin*" "plugin") - ) -) - -(define-function registry_pool_load_all - (c-name "gst_registry_pool_load_all") - (return-type "none") -) - -(define-function registry_pool_plugin_filter - (c-name "gst_registry_pool_plugin_filter") - (return-type "GList*") - (parameters - '("GstPluginFilter" "filter") - '("gboolean" "first") - '("gpointer" "user_data") - ) -) - -(define-function registry_pool_feature_filter - (c-name "gst_registry_pool_feature_filter") - (return-type "GList*") - (parameters - '("GstPluginFeatureFilter" "filter") - '("gboolean" "first") - '("gpointer" "user_data") - ) -) - -(define-function registry_pool_plugin_list - (c-name "gst_registry_pool_plugin_list") - (return-type "GList*") -) - -(define-function registry_pool_feature_list - (c-name "gst_registry_pool_feature_list") - (return-type "GList*") - (parameters - '("GType" "type") - ) -) - -(define-function registry_pool_find_plugin - (c-name "gst_registry_pool_find_plugin") - (return-type "GstPlugin*") - (parameters - '("const-gchar*" "name") - ) -) - -(define-function registry_pool_find_feature - (c-name "gst_registry_pool_find_feature") - (return-type "GstPluginFeature*") - (parameters - '("const-gchar*" "name") - '("GType" "type") - ) -) - -(define-function registry_pool_get_prefered - (c-name "gst_registry_pool_get_prefered") - (return-type "GstRegistry*") - (parameters - '("GstRegistryFlags" "flags") - ) -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstscheduler.h - -(define-function scheduler_get_type - (c-name "gst_scheduler_get_type") - (return-type "GType") -) - -(define-method setup - (of-object "GstScheduler") - (c-name "gst_scheduler_setup") - (return-type "none") -) - -(define-method reset - (of-object "GstScheduler") - (c-name "gst_scheduler_reset") - (return-type "none") -) - -(define-method add_element - (of-object "GstScheduler") - (c-name "gst_scheduler_add_element") - (return-type "none") - (parameters - '("GstElement*" "element") - ) -) - -(define-method remove_element - (of-object "GstScheduler") - (c-name "gst_scheduler_remove_element") - (return-type "none") - (parameters - '("GstElement*" "element") - ) -) - -(define-method add_scheduler - (of-object "GstScheduler") - (c-name "gst_scheduler_add_scheduler") - (return-type "none") - (parameters - '("GstScheduler*" "sched2") - ) -) - -(define-method remove_scheduler - (of-object "GstScheduler") - (c-name "gst_scheduler_remove_scheduler") - (return-type "none") - (parameters - '("GstScheduler*" "sched2") - ) -) - -(define-method state_transition - (of-object "GstScheduler") - (c-name "gst_scheduler_state_transition") - (return-type "GstElementStateReturn") - (parameters - '("GstElement*" "element") - '("gint" "transition") - ) -) - -(define-method scheduling_change - (of-object "GstScheduler") - (c-name "gst_scheduler_scheduling_change") - (return-type "none") - (parameters - '("GstElement*" "element") - ) -) - -(define-method lock_element - (of-object "GstScheduler") - (c-name "gst_scheduler_lock_element") - (return-type "none") - (parameters - '("GstElement*" "element") - ) -) - -(define-method unlock_element - (of-object "GstScheduler") - (c-name "gst_scheduler_unlock_element") - (return-type "none") - (parameters - '("GstElement*" "element") - ) -) - -(define-method yield - (of-object "GstScheduler") - (c-name "gst_scheduler_yield") - (return-type "gboolean") - (parameters - '("GstElement*" "element") - ) -) - -(define-method interrupt - (of-object "GstScheduler") - (c-name "gst_scheduler_interrupt") - (return-type "gboolean") - (parameters - '("GstElement*" "element") - ) -) - -(define-method error - (of-object "GstScheduler") - (c-name "gst_scheduler_error") - (return-type "none") - (parameters - '("GstElement*" "element") - ) -) - -(define-method pad_link - (of-object "GstScheduler") - (c-name "gst_scheduler_pad_link") - (return-type "none") - (parameters - '("GstPad*" "srcpad") - '("GstPad*" "sinkpad") - ) -) - -(define-method pad_unlink - (of-object "GstScheduler") - (c-name "gst_scheduler_pad_unlink") - (return-type "none") - (parameters - '("GstPad*" "srcpad") - '("GstPad*" "sinkpad") - ) -) - -(define-method pad_select - (of-object "GstScheduler") - (c-name "gst_scheduler_pad_select") - (return-type "GstPad*") - (parameters - '("GList*" "padlist") - ) -) - -(define-method clock_wait - (of-object "GstScheduler") - (c-name "gst_scheduler_clock_wait") - (return-type "GstClockReturn") - (parameters - '("GstElement*" "element") - '("GstClockID" "id") - '("GstClockTimeDiff*" "jitter") - ) -) - -(define-method iterate - (of-object "GstScheduler") - (c-name "gst_scheduler_iterate") - (return-type "gboolean") -) - -(define-method use_clock - (of-object "GstScheduler") - (c-name "gst_scheduler_use_clock") - (return-type "none") - (parameters - '("GstClock*" "clock") - ) -) - -(define-method set_clock - (of-object "GstScheduler") - (c-name "gst_scheduler_set_clock") - (return-type "none") - (parameters - '("GstClock*" "clock") - ) -) - -(define-method get_clock - (of-object "GstScheduler") - (c-name "gst_scheduler_get_clock") - (return-type "GstClock*") -) - -(define-method auto_clock - (of-object "GstScheduler") - (c-name "gst_scheduler_auto_clock") - (return-type "none") -) - -(define-method show - (of-object "GstScheduler") - (c-name "gst_scheduler_show") - (return-type "none") -) - -(define-function scheduler_factory_get_type - (c-name "gst_scheduler_factory_get_type") - (return-type "GType") -) - -(define-function scheduler_factory_new - (c-name "gst_scheduler_factory_new") - (is-constructor-of "GstSchedulerFactory") - (return-type "GstSchedulerFactory*") - (parameters - '("const-gchar*" "name") - '("const-gchar*" "longdesc") - '("GType" "type") - ) -) - -(define-method destroy - (of-object "GstSchedulerFactory") - (c-name "gst_scheduler_factory_destroy") - (return-type "none") -) - -(define-function scheduler_factory_find - (c-name "gst_scheduler_factory_find") - (return-type "GstSchedulerFactory*") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method create - (of-object "GstSchedulerFactory") - (c-name "gst_scheduler_factory_create") - (return-type "GstScheduler*") - (parameters - '("GstElement*" "parent") - ) -) - -(define-function scheduler_factory_make - (c-name "gst_scheduler_factory_make") - (return-type "GstScheduler*") - (parameters - '("const-gchar*" "name") - '("GstElement*" "parent") - ) -) - -(define-function scheduler_factory_set_default_name - (c-name "gst_scheduler_factory_set_default_name") - (return-type "none") - (parameters - '("const-gchar*" "name") - ) -) - -(define-function scheduler_factory_get_default_name - (c-name "gst_scheduler_factory_get_default_name") - (return-type "const-gchar*") -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gststructure.h - -(define-function structure_get_type - (c-name "gst_structure_get_type") - (return-type "GType") -) - -(define-function _gst_structure_initialize - (c-name "_gst_structure_initialize") - (return-type "none") -) - -(define-function structure_empty_new - (c-name "gst_structure_empty_new") - (is-constructor-of "GstStructureEmpty") - (return-type "GstStructure*") - (parameters - '("const-gchar*" "name") - ) -) - -(define-function structure_id_empty_new - (c-name "gst_structure_id_empty_new") - (is-constructor-of "GstStructureIdEmpty") - (return-type "GstStructure*") - (parameters - '("GQuark" "quark") - ) -) - -(define-function structure_new - (c-name "gst_structure_new") - (is-constructor-of "GstStructure") - (return-type "GstStructure*") - (parameters - '("const-gchar*" "name") - '("const-gchar*" "firstfield") - ) - (varargs #t) -) - -(define-function structure_new_valist - (c-name "gst_structure_new_valist") - (return-type "GstStructure*") - (parameters - '("const-gchar*" "name") - '("const-gchar*" "firstfield") - '("va_list" "varargs") - ) -) - -(define-method copy - (of-object "GstStructure") - (c-name "gst_structure_copy") - (return-type "GstStructure*") -) - -(define-method free - (of-object "GstStructure") - (c-name "gst_structure_free") - (return-type "none") -) - -(define-method get_name - (of-object "GstStructure") - (c-name "gst_structure_get_name") - (return-type "const-gchar*") -) - -(define-method set_name - (of-object "GstStructure") - (c-name "gst_structure_set_name") - (return-type "none") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method id_set_value - (of-object "GstStructure") - (c-name "gst_structure_id_set_value") - (return-type "none") - (parameters - '("GQuark" "field") - '("const-GValue*" "value") - ) -) - -(define-method set_value - (of-object "GstStructure") - (c-name "gst_structure_set_value") - (return-type "none") - (parameters - '("const-gchar*" "fieldname") - '("const-GValue*" "value") - ) -) - -(define-method set - (of-object "GstStructure") - (c-name "gst_structure_set") - (return-type "none") - (parameters - '("const-gchar*" "fieldname") - ) - (varargs #t) -) - -(define-method set_valist - (of-object "GstStructure") - (c-name "gst_structure_set_valist") - (return-type "none") - (parameters - '("const-gchar*" "fieldname") - '("va_list" "varargs") - ) -) - -(define-method id_get_value - (of-object "GstStructure") - (c-name "gst_structure_id_get_value") - (return-type "const-GValue*") - (parameters - '("GQuark" "field") - ) -) - -(define-method get_value - (of-object "GstStructure") - (c-name "gst_structure_get_value") - (return-type "const-GValue*") - (parameters - '("const-gchar*" "fieldname") - ) -) - -(define-method remove_field - (of-object "GstStructure") - (c-name "gst_structure_remove_field") - (return-type "none") - (parameters - '("const-gchar*" "fieldname") - ) -) - -(define-method remove_fields - (of-object "GstStructure") - (c-name "gst_structure_remove_fields") - (return-type "none") - (parameters - '("const-gchar*" "fieldname") - ) - (varargs #t) -) - -(define-method remove_fields_valist - (of-object "GstStructure") - (c-name "gst_structure_remove_fields_valist") - (return-type "none") - (parameters - '("const-gchar*" "fieldname") - '("va_list" "varargs") - ) -) - -(define-method remove_all_fields - (of-object "GstStructure") - (c-name "gst_structure_remove_all_fields") - (return-type "none") -) - -(define-method get_field_type - (of-object "GstStructure") - (c-name "gst_structure_get_field_type") - (return-type "GType") - (parameters - '("const-gchar*" "fieldname") - ) -) - -(define-method foreach - (of-object "GstStructure") - (c-name "gst_structure_foreach") - (return-type "gboolean") - (parameters - '("GstStructureForeachFunc" "func") - '("gpointer" "user_data") - ) -) - -(define-method n_fields - (of-object "GstStructure") - (c-name "gst_structure_n_fields") - (return-type "gint") -) - -(define-method has_field - (of-object "GstStructure") - (c-name "gst_structure_has_field") - (return-type "gboolean") - (parameters - '("const-gchar*" "fieldname") - ) -) - -(define-method has_field_typed - (of-object "GstStructure") - (c-name "gst_structure_has_field_typed") - (return-type "gboolean") - (parameters - '("const-gchar*" "fieldname") - '("GType" "type") - ) -) - -(define-method get_boolean - (of-object "GstStructure") - (c-name "gst_structure_get_boolean") - (return-type "gboolean") - (parameters - '("const-gchar*" "fieldname") - '("gboolean*" "value") - ) -) - -(define-method get_int - (of-object "GstStructure") - (c-name "gst_structure_get_int") - (return-type "gboolean") - (parameters - '("const-gchar*" "fieldname") - '("gint*" "value") - ) -) - -(define-method get_fourcc - (of-object "GstStructure") - (c-name "gst_structure_get_fourcc") - (return-type "gboolean") - (parameters - '("const-gchar*" "fieldname") - '("guint32*" "value") - ) -) - -(define-method get_double - (of-object "GstStructure") - (c-name "gst_structure_get_double") - (return-type "gboolean") - (parameters - '("const-gchar*" "fieldname") - '("gdouble*" "value") - ) -) - -(define-method get_string - (of-object "GstStructure") - (c-name "gst_structure_get_string") - (return-type "const-gchar*") - (parameters - '("const-gchar*" "fieldname") - ) -) - -(define-method to_string - (of-object "GstStructure") - (c-name "gst_structure_to_string") - (return-type "gchar*") -) - -(define-function structure_from_string - (c-name "gst_structure_from_string") - (return-type "GstStructure*") - (parameters - '("const-gchar*" "string") - '("gchar**" "end") - ) -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstsystemclock.h - -(define-function system_clock_get_type - (c-name "gst_system_clock_get_type") - (return-type "GType") -) - -(define-function system_clock_obtain - (c-name "gst_system_clock_obtain") - (return-type "GstClock*") -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gsttag.h - -(define-function _gst_tag_initialize - (c-name "_gst_tag_initialize") - (return-type "none") -) - -(define-function tag_list_get_type - (c-name "gst_tag_list_get_type") - (return-type "GType") -) - -(define-function tag_register - (c-name "gst_tag_register") - (return-type "none") - (parameters - '("gchar*" "name") - '("GstTagFlag" "flag") - '("GType" "type") - '("gchar*" "nick") - '("gchar*" "blurb") - '("GstTagMergeFunc" "func") - ) -) - -(define-function tag_merge_use_first - (c-name "gst_tag_merge_use_first") - (return-type "none") - (parameters - '("GValue*" "dest") - '("const-GValue*" "src") - ) -) - -(define-function tag_merge_strings_with_comma - (c-name "gst_tag_merge_strings_with_comma") - (return-type "none") - (parameters - '("GValue*" "dest") - '("const-GValue*" "src") - ) -) - -(define-function tag_exists - (c-name "gst_tag_exists") - (return-type "gboolean") - (parameters - '("const-gchar*" "tag") - ) -) - -(define-function tag_get_type - (c-name "gst_tag_get_type") - (return-type "GType") - (parameters - '("const-gchar*" "tag") - ) -) - -(define-function tag_get_nick - (c-name "gst_tag_get_nick") - (return-type "const-gchar*") - (parameters - '("const-gchar*" "tag") - ) -) - -(define-function tag_get_description - (c-name "gst_tag_get_description") - (return-type "const-gchar*") - (parameters - '("const-gchar*" "tag") - ) -) - -(define-function tag_is_fixed - (c-name "gst_tag_is_fixed") - (return-type "gboolean") - (parameters - '("const-gchar*" "tag") - ) -) - -(define-function tag_list_new - (c-name "gst_tag_list_new") - (is-constructor-of "GstTagList") - (return-type "GstTagList*") -) - -(define-function is_tag_list - (c-name "gst_is_tag_list") - (return-type "gboolean") - (parameters - '("gconstpointer" "p") - ) -) - -(define-method copy - (of-object "GstTagList") - (c-name "gst_tag_list_copy") - (return-type "GstTagList*") -) - -(define-method insert - (of-object "GstTagList") - (c-name "gst_tag_list_insert") - (return-type "none") - (parameters - '("const-GstTagList*" "from") - '("GstTagMergeMode" "mode") - ) -) - -(define-method merge - (of-object "GstTagList") - (c-name "gst_tag_list_merge") - (return-type "GstTagList*") - (parameters - '("const-GstTagList*" "list2") - '("GstTagMergeMode" "mode") - ) -) - -(define-method free - (of-object "GstTagList") - (c-name "gst_tag_list_free") - (return-type "none") -) - -(define-method get_tag_size - (of-object "GstTagList") - (c-name "gst_tag_list_get_tag_size") - (return-type "guint") - (parameters - '("const-gchar*" "tag") - ) -) - -(define-method add - (of-object "GstTagList") - (c-name "gst_tag_list_add") - (return-type "none") - (parameters - '("GstTagMergeMode" "mode") - '("const-gchar*" "tag") - ) - (varargs #t) -) - -(define-method add_values - (of-object "GstTagList") - (c-name "gst_tag_list_add_values") - (return-type "none") - (parameters - '("GstTagMergeMode" "mode") - '("const-gchar*" "tag") - ) - (varargs #t) -) - -(define-method add_valist - (of-object "GstTagList") - (c-name "gst_tag_list_add_valist") - (return-type "none") - (parameters - '("GstTagMergeMode" "mode") - '("const-gchar*" "tag") - '("va_list" "var_args") - ) -) - -(define-method add_valist_values - (of-object "GstTagList") - (c-name "gst_tag_list_add_valist_values") - (return-type "none") - (parameters - '("GstTagMergeMode" "mode") - '("const-gchar*" "tag") - '("va_list" "var_args") - ) -) - -(define-method remove_tag - (of-object "GstTagList") - (c-name "gst_tag_list_remove_tag") - (return-type "none") - (parameters - '("const-gchar*" "tag") - ) -) - -(define-method foreach - (of-object "GstTagList") - (c-name "gst_tag_list_foreach") - (return-type "none") - (parameters - '("GstTagForeachFunc" "func") - '("gpointer" "user_data") - ) -) - -(define-method get_value_index - (of-object "GstTagList") - (c-name "gst_tag_list_get_value_index") - (return-type "const-GValue*") - (parameters - '("const-gchar*" "tag") - '("guint" "index") - ) -) - -(define-function tag_list_copy_value - (c-name "gst_tag_list_copy_value") - (return-type "gboolean") - (parameters - '("GValue*" "dest") - '("const-GstTagList*" "list") - '("const-gchar*" "tag") - ) -) - -(define-method get_char - (of-object "GstTagList") - (c-name "gst_tag_list_get_char") - (return-type "gboolean") - (parameters - '("const-gchar*" "tag") - '("gchar*" "value") - ) -) - -(define-method get_char_index - (of-object "GstTagList") - (c-name "gst_tag_list_get_char_index") - (return-type "gboolean") - (parameters - '("const-gchar*" "tag") - '("guint" "index") - '("gchar*" "value") - ) -) - -(define-method get_uchar - (of-object "GstTagList") - (c-name "gst_tag_list_get_uchar") - (return-type "gboolean") - (parameters - '("const-gchar*" "tag") - '("guchar*" "value") - ) -) - -(define-method get_uchar_index - (of-object "GstTagList") - (c-name "gst_tag_list_get_uchar_index") - (return-type "gboolean") - (parameters - '("const-gchar*" "tag") - '("guint" "index") - '("guchar*" "value") - ) -) - -(define-method get_boolean - (of-object "GstTagList") - (c-name "gst_tag_list_get_boolean") - (return-type "gboolean") - (parameters - '("const-gchar*" "tag") - '("gboolean*" "value") - ) -) - -(define-method get_boolean_index - (of-object "GstTagList") - (c-name "gst_tag_list_get_boolean_index") - (return-type "gboolean") - (parameters - '("const-gchar*" "tag") - '("guint" "index") - '("gboolean*" "value") - ) -) - -(define-method get_int - (of-object "GstTagList") - (c-name "gst_tag_list_get_int") - (return-type "gboolean") - (parameters - '("const-gchar*" "tag") - '("gint*" "value") - ) -) - -(define-method get_int_index - (of-object "GstTagList") - (c-name "gst_tag_list_get_int_index") - (return-type "gboolean") - (parameters - '("const-gchar*" "tag") - '("guint" "index") - '("gint*" "value") - ) -) - -(define-method get_uint - (of-object "GstTagList") - (c-name "gst_tag_list_get_uint") - (return-type "gboolean") - (parameters - '("const-gchar*" "tag") - '("guint*" "value") - ) -) - -(define-method get_uint_index - (of-object "GstTagList") - (c-name "gst_tag_list_get_uint_index") - (return-type "gboolean") - (parameters - '("const-gchar*" "tag") - '("guint" "index") - '("guint*" "value") - ) -) - -(define-method get_long - (of-object "GstTagList") - (c-name "gst_tag_list_get_long") - (return-type "gboolean") - (parameters - '("const-gchar*" "tag") - '("glong*" "value") - ) -) - -(define-method get_long_index - (of-object "GstTagList") - (c-name "gst_tag_list_get_long_index") - (return-type "gboolean") - (parameters - '("const-gchar*" "tag") - '("guint" "index") - '("glong*" "value") - ) -) - -(define-method get_ulong - (of-object "GstTagList") - (c-name "gst_tag_list_get_ulong") - (return-type "gboolean") - (parameters - '("const-gchar*" "tag") - '("gulong*" "value") - ) -) - -(define-method get_ulong_index - (of-object "GstTagList") - (c-name "gst_tag_list_get_ulong_index") - (return-type "gboolean") - (parameters - '("const-gchar*" "tag") - '("guint" "index") - '("gulong*" "value") - ) -) - -(define-method get_int64 - (of-object "GstTagList") - (c-name "gst_tag_list_get_int64") - (return-type "gboolean") - (parameters - '("const-gchar*" "tag") - '("gint64*" "value") - ) -) - -(define-method get_int64_index - (of-object "GstTagList") - (c-name "gst_tag_list_get_int64_index") - (return-type "gboolean") - (parameters - '("const-gchar*" "tag") - '("guint" "index") - '("gint64*" "value") - ) -) - -(define-method get_uint64 - (of-object "GstTagList") - (c-name "gst_tag_list_get_uint64") - (return-type "gboolean") - (parameters - '("const-gchar*" "tag") - '("guint64*" "value") - ) -) - -(define-method get_uint64_index - (of-object "GstTagList") - (c-name "gst_tag_list_get_uint64_index") - (return-type "gboolean") - (parameters - '("const-gchar*" "tag") - '("guint" "index") - '("guint64*" "value") - ) -) - -(define-method get_float - (of-object "GstTagList") - (c-name "gst_tag_list_get_float") - (return-type "gboolean") - (parameters - '("const-gchar*" "tag") - '("gfloat*" "value") - ) -) - -(define-method get_float_index - (of-object "GstTagList") - (c-name "gst_tag_list_get_float_index") - (return-type "gboolean") - (parameters - '("const-gchar*" "tag") - '("guint" "index") - '("gfloat*" "value") - ) -) - -(define-method get_double - (of-object "GstTagList") - (c-name "gst_tag_list_get_double") - (return-type "gboolean") - (parameters - '("const-gchar*" "tag") - '("gdouble*" "value") - ) -) - -(define-method get_double_index - (of-object "GstTagList") - (c-name "gst_tag_list_get_double_index") - (return-type "gboolean") - (parameters - '("const-gchar*" "tag") - '("guint" "index") - '("gdouble*" "value") - ) -) - -(define-method get_string - (of-object "GstTagList") - (c-name "gst_tag_list_get_string") - (return-type "gboolean") - (parameters - '("const-gchar*" "tag") - '("gchar**" "value") - ) -) - -(define-method get_string_index - (of-object "GstTagList") - (c-name "gst_tag_list_get_string_index") - (return-type "gboolean") - (parameters - '("const-gchar*" "tag") - '("guint" "index") - '("gchar**" "value") - ) -) - -(define-method get_pointer - (of-object "GstTagList") - (c-name "gst_tag_list_get_pointer") - (return-type "gboolean") - (parameters - '("const-gchar*" "tag") - '("gpointer*" "value") - ) -) - -(define-method get_pointer_index - (of-object "GstTagList") - (c-name "gst_tag_list_get_pointer_index") - (return-type "gboolean") - (parameters - '("const-gchar*" "tag") - '("guint" "index") - '("gpointer*" "value") - ) -) - -(define-function event_new_tag - (c-name "gst_event_new_tag") - (return-type "GstEvent*") - (parameters - '("GstTagList*" "list") - ) -) - -(define-method tag_get_list - (of-object "GstEvent") - (c-name "gst_event_tag_get_list") - (return-type "GstTagList*") -) - -;; Added python method -(define-method keys - (of-object "GstTagList") - (c-name "pygst_tag_list_keys") -) - -(define-method has_key - (of-object "GstTagList") - (c-name "pygst_tag_list_has_key") - (parameters '("gchar*" "key")) -) - -(define-method get - (of-object "GstTagList") - (c-name "pygst_tag_list_get") - (parameters '("gchar*" "key")) -) - -;; From /opt/gnome/include/gstreamer-0.7/gst/gsttaginterface.h - -(define-function tag_setter_get_type - (c-name "gst_tag_setter_get_type") - (return-type "GType") -) - -(define-method merge - (of-object "GstTagSetter") - (c-name "gst_tag_setter_merge") - (return-type "none") - (parameters - '("const-GstTagList*" "list") - '("GstTagMergeMode" "mode") - ) -) - -(define-method add - (of-object "GstTagSetter") - (c-name "gst_tag_setter_add") - (return-type "none") - (parameters - '("GstTagMergeMode" "mode") - '("const-gchar*" "tag") - ) - (varargs #t) -) - -(define-method add_values - (of-object "GstTagSetter") - (c-name "gst_tag_setter_add_values") - (return-type "none") - (parameters - '("GstTagMergeMode" "mode") - '("const-gchar*" "tag") - ) - (varargs #t) -) - -(define-method add_valist - (of-object "GstTagSetter") - (c-name "gst_tag_setter_add_valist") - (return-type "none") - (parameters - '("GstTagMergeMode" "mode") - '("const-gchar*" "tag") - '("va_list" "var_args") - ) -) - -(define-method add_valist_values - (of-object "GstTagSetter") - (c-name "gst_tag_setter_add_valist_values") - (return-type "none") - (parameters - '("GstTagMergeMode" "mode") - '("const-gchar*" "tag") - '("va_list" "var_args") - ) -) - -(define-method get_list - (of-object "GstTagSetter") - (c-name "gst_tag_setter_get_list") - (return-type "const-GstTagList*") -) - -(define-method set_merge_mode - (of-object "GstTagSetter") - (c-name "gst_tag_setter_set_merge_mode") - (return-type "none") - (parameters - '("GstTagMergeMode" "mode") - ) -) - -(define-method get_merge_mode - (of-object "GstTagSetter") - (c-name "gst_tag_setter_get_merge_mode") - (return-type "GstTagMergeMode") -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstthread.h - -(define-function thread_get_type - (c-name "gst_thread_get_type") - (return-type "GType") -) - -(define-function thread_new - (c-name "gst_thread_new") - (is-constructor-of "GstThread") - (return-type "GstElement*") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method set_priority - (of-object "GstThread") - (c-name "gst_thread_set_priority") - (return-type "none") - (parameters - '("GThreadPriority" "priority") - ) -) - -(define-function thread_get_current - (c-name "gst_thread_get_current") - (return-type "GstThread*") -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gsttrace.h - -(define-function trace_new - (c-name "gst_trace_new") - (is-constructor-of "GstTrace") - (return-type "GstTrace*") - (parameters - '("gchar*" "filename") - '("gint" "size") - ) -) - -(define-method destroy - (of-object "GstTrace") - (c-name "gst_trace_destroy") - (return-type "none") -) - -(define-method flush - (of-object "GstTrace") - (c-name "gst_trace_flush") - (return-type "none") -) - -(define-method text_flush - (of-object "GstTrace") - (c-name "gst_trace_text_flush") - (return-type "none") -) - -(define-method set_default - (of-object "GstTrace") - (c-name "gst_trace_set_default") - (return-type "none") -) - -(define-method _add_entry - (of-object "GstTrace") - (c-name "_gst_trace_add_entry") - (return-type "none") - (parameters - '("guint32" "seq") - '("guint32" "data") - '("gchar*" "msg") - ) -) - -(define-function trace_read_tsc - (c-name "gst_trace_read_tsc") - (return-type "none") - (parameters - '("gint64*" "dst") - ) -) - -(define-function alloc_trace_available - (c-name "gst_alloc_trace_available") - (return-type "gboolean") -) - -(define-function alloc_trace_list - (c-name "gst_alloc_trace_list") - (return-type "const-GList*") -) - -(define-function _gst_alloc_trace_register - (c-name "_gst_alloc_trace_register") - (return-type "GstAllocTrace*") - (parameters - '("const-gchar*" "name") - ) -) - -(define-function alloc_trace_live_all - (c-name "gst_alloc_trace_live_all") - (return-type "int") -) - -(define-function alloc_trace_print_all - (c-name "gst_alloc_trace_print_all") - (return-type "none") -) - -(define-function alloc_trace_set_flags_all - (c-name "gst_alloc_trace_set_flags_all") - (return-type "none") - (parameters - '("GstAllocTraceFlags" "flags") - ) -) - -(define-function alloc_trace_get - (c-name "gst_alloc_trace_get") - (return-type "GstAllocTrace*") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method print - (of-object "GstAllocTrace") - (c-name "gst_alloc_trace_print") - (return-type "none") -) - -(define-method set_flags - (of-object "GstAllocTrace") - (c-name "gst_alloc_trace_set_flags") - (return-type "none") - (parameters - '("GstAllocTraceFlags" "flags") - ) -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gsttrashstack.h - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gsttypefind.h - -(define-method peek - (of-object "GstTypeFind") - (c-name "gst_type_find_peek") - (return-type "guint8*") - (parameters - '("gint64" "offset") - '("guint" "size") - ) -) - -(define-method suggest - (of-object "GstTypeFind") - (c-name "gst_type_find_suggest") - (return-type "none") - (parameters - '("guint" "probability") - '("const-GstCaps*" "caps") - ) -) - -(define-method get_length - (of-object "GstTypeFind") - (c-name "gst_type_find_get_length") - (return-type "guint64") -) - -(define-function type_find_register - (c-name "gst_type_find_register") - (return-type "gboolean") - (parameters - '("GstPlugin*" "plugin") - '("const-gchar*" "name") - '("guint" "rank") - '("GstTypeFindFunction" "func") - '("gchar**" "extensions") - '("const-GstCaps*" "possible_caps") - '("gpointer" "data") - ) -) - -(define-function type_find_factory_get_type - (c-name "gst_type_find_factory_get_type") - (return-type "GType") -) - -(define-function type_find_factory_get_list - (c-name "gst_type_find_factory_get_list") - (return-type "GList*") -) - -(define-method get_extensions - (of-object "GstTypeFindFactory") - (c-name "gst_type_find_factory_get_extensions") - (return-type "gchar**") -) - -(define-method get_caps - (of-object "GstTypeFindFactory") - (c-name "gst_type_find_factory_get_caps") - (return-type "const-GstCaps*") -) - -(define-method call_function - (of-object "GstTypeFindFactory") - (c-name "gst_type_find_factory_call_function") - (return-type "none") - (parameters - '("GstTypeFind*" "find") - ) -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gsttypes.h - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gsturi.h - -(define-function uri_protocol_is_valid - (c-name "gst_uri_protocol_is_valid") - (return-type "gboolean") - (parameters - '("const-gchar*" "protocol") - ) -) - -(define-function uri_is_valid - (c-name "gst_uri_is_valid") - (return-type "gboolean") - (parameters - '("const-gchar*" "uri") - ) -) - -(define-function uri_get_protocol - (c-name "gst_uri_get_protocol") - (return-type "gchar*") - (parameters - '("const-gchar*" "uri") - ) -) - -(define-function uri_get_location - (c-name "gst_uri_get_location") - (return-type "gchar*") - (parameters - '("const-gchar*" "uri") - ) -) - -(define-function uri_construct - (c-name "gst_uri_construct") - (return-type "gchar*") - (parameters - '("const-gchar*" "protocol") - '("const-gchar*" "location") - ) -) - -(define-function element_make_from_uri - (c-name "gst_element_make_from_uri") - (return-type "GstElement*") - (parameters - '("const-GstURIType" "type") - '("const-gchar*" "uri") - '("const-gchar*" "elementname") - ) -) - -(define-function uri_handler_get_type - (c-name "gst_uri_handler_get_type") - (return-type "GType") -) - -(define-method get_uri_type - (of-object "GstURIHandler") - (c-name "gst_uri_handler_get_uri_type") - (return-type "guint") -) - -(define-method get_protocols - (of-object "GstURIHandler") - (c-name "gst_uri_handler_get_protocols") - (return-type "gchar**") -) - -(define-method get_uri - (of-object "GstURIHandler") - (c-name "gst_uri_handler_get_uri") - (return-type "const-gchar*") -) - -(define-method set_uri - (of-object "GstURIHandler") - (c-name "gst_uri_handler_set_uri") - (return-type "gboolean") - (parameters - '("const-gchar*" "uri") - ) -) - -(define-method new_uri - (of-object "GstURIHandler") - (c-name "gst_uri_handler_new_uri") - (return-type "none") - (parameters - '("const-gchar*" "uri") - ) -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gsturitype.h - -(define-function uri_get_uri_type - (c-name "gst_uri_get_uri_type") - (return-type "GType") -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstutils.h - -(define-function util_set_value_from_string - (c-name "gst_util_set_value_from_string") - (return-type "none") - (parameters - '("GValue*" "value") - '("const-gchar*" "value_str") - ) -) - -(define-function util_set_object_arg - (c-name "gst_util_set_object_arg") - (return-type "none") - (parameters - '("GObject*" "object") - '("const-gchar*" "name") - '("const-gchar*" "value") - ) -) - -(define-function util_dump_mem - (c-name "gst_util_dump_mem") - (return-type "none") - (parameters - '("guchar*" "mem") - '("guint" "size") - ) -) - -(define-function print_pad_caps - (c-name "gst_print_pad_caps") - (return-type "none") - (parameters - '("GString*" "buf") - '("gint" "indent") - '("GstPad*" "pad") - ) -) - -(define-function print_element_args - (c-name "gst_print_element_args") - (return-type "none") - (parameters - '("GString*" "buf") - '("gint" "indent") - '("GstElement*" "element") - ) -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstvalue.h - -(define-function value_list_prepend_value - (c-name "gst_value_list_prepend_value") - (return-type "none") - (parameters - '("GValue*" "value") - '("const-GValue*" "prepend_value") - ) -) - -(define-function value_list_append_value - (c-name "gst_value_list_append_value") - (return-type "none") - (parameters - '("GValue*" "value") - '("const-GValue*" "append_value") - ) -) - -(define-function value_list_get_size - (c-name "gst_value_list_get_size") - (return-type "guint") - (parameters - '("const-GValue*" "value") - ) -) - -(define-function value_list_get_value - (c-name "gst_value_list_get_value") - (return-type "const-GValue*") - (parameters - '("const-GValue*" "value") - '("guint" "index") - ) -) - -(define-function value_list_concat - (c-name "gst_value_list_concat") - (return-type "none") - (parameters - '("GValue*" "dest") - '("const-GValue*" "value1") - '("const-GValue*" "value2") - ) -) - -(define-function value_set_fourcc - (c-name "gst_value_set_fourcc") - (return-type "none") - (parameters - '("GValue*" "value") - '("guint32" "fourcc") - ) -) - -(define-function value_get_fourcc - (c-name "gst_value_get_fourcc") - (return-type "guint32") - (parameters - '("const-GValue*" "value") - ) -) - -(define-function value_set_int_range - (c-name "gst_value_set_int_range") - (return-type "none") - (parameters - '("GValue*" "value") - '("int" "start") - '("int" "end") - ) -) - -(define-function value_get_int_range_min - (c-name "gst_value_get_int_range_min") - (return-type "int") - (parameters - '("const-GValue*" "value") - ) -) - -(define-function value_get_int_range_max - (c-name "gst_value_get_int_range_max") - (return-type "int") - (parameters - '("const-GValue*" "value") - ) -) - -(define-function value_set_double_range - (c-name "gst_value_set_double_range") - (return-type "none") - (parameters - '("GValue*" "value") - '("double" "start") - '("double" "end") - ) -) - -(define-function value_get_double_range_min - (c-name "gst_value_get_double_range_min") - (return-type "double") - (parameters - '("const-GValue*" "value") - ) -) - -(define-function value_get_double_range_max - (c-name "gst_value_get_double_range_max") - (return-type "double") - (parameters - '("const-GValue*" "value") - ) -) - -(define-function value_get_caps - (c-name "gst_value_get_caps") - (return-type "const-GstCaps*") - (parameters - '("const-GValue*" "value") - ) -) - -(define-function value_set_caps - (c-name "gst_value_set_caps") - (return-type "none") - (parameters - '("GValue*" "value") - '("const-GstCaps*" "caps") - ) -) - -(define-function value_can_compare - (c-name "gst_value_can_compare") - (return-type "gboolean") - (parameters - '("const-GValue*" "value1") - '("const-GValue*" "value2") - ) -) - -(define-function value_compare - (c-name "gst_value_compare") - (return-type "int") - (parameters - '("const-GValue*" "value1") - '("const-GValue*" "value2") - ) -) - -(define-function value_can_union - (c-name "gst_value_can_union") - (return-type "gboolean") - (parameters - '("const-GValue*" "value1") - '("const-GValue*" "value2") - ) -) - -(define-function value_union - (c-name "gst_value_union") - (return-type "gboolean") - (parameters - '("GValue*" "dest") - '("const-GValue*" "value1") - '("const-GValue*" "value2") - ) -) - -(define-function value_register_union_func - (c-name "gst_value_register_union_func") - (return-type "none") - (parameters - '("GType" "type1") - '("GType" "type2") - '("GstValueUnionFunc" "func") - ) -) - -(define-function value_can_intersect - (c-name "gst_value_can_intersect") - (return-type "gboolean") - (parameters - '("const-GValue*" "value1") - '("const-GValue*" "value2") - ) -) - -(define-function value_intersect - (c-name "gst_value_intersect") - (return-type "gboolean") - (parameters - '("GValue*" "dest") - '("const-GValue*" "value1") - '("const-GValue*" "value2") - ) -) - -(define-function value_register_intersect_func - (c-name "gst_value_register_intersect_func") - (return-type "none") - (parameters - '("GType" "type1") - '("GType" "type2") - '("GstValueIntersectFunc" "func") - ) -) - -(define-function value_register - (c-name "gst_value_register") - (return-type "none") - (parameters - '("const-GstValueTable*" "table") - ) -) - -(define-function value_init_and_copy - (c-name "gst_value_init_and_copy") - (return-type "none") - (parameters - '("GValue*" "dest") - '("const-GValue*" "src") - ) -) - -(define-function _gst_value_initialize - (c-name "_gst_value_initialize") - (return-type "none") -) - -(define-function value_serialize - (c-name "gst_value_serialize") - (return-type "gchar*") - (parameters - '("const-GValue*" "value") - ) -) - -(define-function value_deserialize - (c-name "gst_value_deserialize") - (return-type "gboolean") - (parameters - '("GValue*" "dest") - '("const-gchar*" "src") - ) -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstversion.h - -(define-function version - (c-name "gst_version") - (return-type "none") - (parameters - '("guint*" "major") - '("guint*" "minor") - '("guint*" "micro") - ) -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstxml.h - -(define-function xml_get_type - (c-name "gst_xml_get_type") - (return-type "GType") -) - -(define-function xml_write - (c-name "gst_xml_write") - (return-type "xmlDocPtr") - (parameters - '("GstElement*" "element") - ) -) - -(define-function xml_write_file - (c-name "gst_xml_write_file") - (return-type "gint") - (parameters - '("GstElement*" "element") - '("FILE*" "out") - ) -) - -(define-function xml_new - (c-name "gst_xml_new") - (is-constructor-of "GstXml") - (return-type "GstXML*") -) - -(define-method parse_doc - (of-object "GstXML") - (c-name "gst_xml_parse_doc") - (return-type "gboolean") - (parameters - '("xmlDocPtr" "doc") - '("const-guchar*" "root") - ) -) - -(define-method parse_file - (of-object "GstXML") - (c-name "gst_xml_parse_file") - (return-type "gboolean") - (parameters - '("const-guchar*" "fname") - '("const-guchar*" "root") - ) -) - -(define-method parse_memory - (of-object "GstXML") - (c-name "gst_xml_parse_memory") - (return-type "gboolean") - (parameters - '("guchar*" "buffer") - '("guint" "size") - '("const-gchar*" "root") - ) -) - -(define-method get_element - (of-object "GstXML") - (c-name "gst_xml_get_element") - (return-type "GstElement*") - (parameters - '("const-guchar*" "name") - ) -) - -(define-method get_topelements - (of-object "GstXML") - (c-name "gst_xml_get_topelements") - (return-type "GList*") -) - -(define-function xml_make_element - (c-name "gst_xml_make_element") - (return-type "GstElement*") - (parameters - '("xmlNodePtr" "cur") - '("GstObject*" "parent") - ) -) - - -;; -;; Accelerate common GstBin iterate loop -;; - -(define-function iterate_bin_all - (c-name "iterate_bin_all") - (return-type "none") - (parameters - '("GstBin*" "bin") - ) -) - -(define-function add_iterate_bin - (c-name "add_iterate_bin") - (return-type "guint") - (parameters - '("GstBin*" "bin") - ) -) - -(define-function remove_iterate_bin - (c-name "remove_iterate_bin") - (return-type "none") - (parameters - '("guint" "id") - ) -) - -;; -;; HACK -;; - -;(define-method get_data -; (of-object "GstBuffer") -; (c-name "gst_buffer_get_data") -; (return-type "char*") -;) - -;(define-method set_data -; (of-object "GstBuffer") -; (c-name "gst_buffer_set_data") -; (return-type "none") -; (parameters -; '("char*" "data") -; ) -;) - diff --git a/gst/gstreamermodule.c b/gst/gstreamermodule.c deleted file mode 100644 index 30508fa545..0000000000 --- a/gst/gstreamermodule.c +++ /dev/null @@ -1,82 +0,0 @@ -/* -*- Mode: C; c-basic-offset: 4 -*- */ -/* gst-python - * Copyright (C) 2002 David I. Lehn - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Library General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Library General Public License for more details. - * - * You should have received a copy of the GNU Library General Public - * License along with this library; if not, write to the - * Free Software Foundation, Inc., 59 Temple Place - Suite 330, - * Boston, MA 02111-1307, USA. - * - * Author: David I. Lehn - */ - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - -/* include this first, before NO_IMPORT_PYGOBJECT is defined */ -#include -#include - -void pygst_register_classes (PyObject *d); -void pygst_add_constants(PyObject *module, const gchar *strip_prefix); - -extern PyMethodDef pygst_functions[]; - -DL_EXPORT(void) -init_gst (void) -{ - PyObject *m, *d; - PyObject *av; - int argc, i; - char **argv; - - init_pygobject (); - - /* pull in arguments */ - av = PySys_GetObject ("argv"); - if (av != NULL) { - argc = PyList_Size (av); - argv = g_new (char *, argc); - for (i = 0; i < argc; i++) - argv[i] = g_strdup (PyString_AsString (PyList_GetItem (av, i))); - } else { - argc = 0; - argv = NULL; - } - - if (!gst_init_check (&argc, &argv)) { - if (argv != NULL) { - for (i = 0; i < argc; i++) - g_free (argv[i]); - g_free (argv); - } - PyErr_SetString (PyExc_RuntimeError, "can't initialize module gst"); - } - if (argv != NULL) { - PySys_SetArgv (argc, argv); - for (i = 0; i < argc; i++) - g_free (argv[i]); - g_free (argv); - } - - m = Py_InitModule ("gst._gst", pygst_functions); - d = PyModule_GetDict (m); - - pygst_register_classes (d); - pygst_add_constants (m, "GST_"); - - if (PyErr_Occurred ()) { - Py_FatalError ("can't initialize module gst"); - } -} diff --git a/gstreamer/.gitignore b/gstreamer/.gitignore index f282f279f4..a4cff35a2c 100644 --- a/gstreamer/.gitignore +++ b/gstreamer/.gitignore @@ -7,8 +7,5 @@ Makefile.in *.py[co] .libs .deps -gstreamer.c -gstreamer-base.defs -gstreamer.defs -gstreamer.override -h2def.defs +gst.c +gst.defs diff --git a/gstreamer/Makefile.am b/gstreamer/Makefile.am index 3c736cfd0b..fb30349f92 100644 --- a/gstreamer/Makefile.am +++ b/gstreamer/Makefile.am @@ -13,31 +13,26 @@ pygstreamer_PYTHON = gstreamer.py pygstexecdir = $(pkgpyexecdir) -GST_OVERRIDES = \ - gstreamer.override \ - gstpad-handlers.override +GST_OVERRIDES = gst.override gstpad-handlers.override pygstexec_LTLIBRARIES = _gstmodule.la -_gstmodule_la_SOURCES = \ - gstreamermodule.c \ - gst-types.c \ - $(VERSOURCES) +_gstmodule_la_SOURCES = gstmodule.c gst-types.c _gstmodule_la_CFLAGS = $(GST_CFLAGS) -fno-strict-aliasing _gstmodule_la_LIBADD = $(GST_LIBS) _gstmodule_la_LDFLAGS = -module -avoid-version -export-symbols-regex init_gst -nodist__gstmodule_la_SOURCES = gstreamer.c +nodist__gstmodule_la_SOURCES = gst.c -CLEANFILES = gstreamer.c -EXTRA_DIST = gstreamer.defs $(GST_OVERRIDES) arg-types.py +CLEANFILES = gst.c +EXTRA_DIST = gst.defs $(GST_OVERRIDES) arg-types.py -gstreamer.c: $(srcdir)/gstreamer.defs $(srcdir)/arg-types.py $(GST_OVERRIDES) +gst.c: $(srcdir)/gst.defs $(srcdir)/arg-types.py $(GST_OVERRIDES) $(PYGTK_CODEGEN) \ --load-types $(srcdir)/arg-types.py \ --register $(srcdir)/gst-types.defs \ - --override $(srcdir)/gstreamer.override \ - --prefix pygst gstreamer.defs > gen-gstreamer.c \ + --override $(srcdir)/gst.override \ + --prefix pygst gst.defs > gen-gst.c \ && rm -fr gtreamer.c \ - && echo '/* GENERATED FILE - DO NOT EDIT */' >> gstreamer.c \ - && cat gen-gstreamer.c >> gstreamer.c \ - && rm -f gen-gstreamer.c + && echo '/* GENERATED FILE - DO NOT EDIT */' >> gst.c \ + && cat gen-gst.c >> gst.c \ + && rm -f gen-gst.c diff --git a/gstreamer/__init__.py b/gstreamer/__init__.py index 7271efc3ff..5ad3871b91 100644 --- a/gstreamer/__init__.py +++ b/gstreamer/__init__.py @@ -36,8 +36,7 @@ sys.setdlopenflags(dl.RTLD_LAZY | dl.RTLD_GLOBAL) del devloc, sys, os from _gst import * - -#from gtk import threads_init, threads_enter, threads_leave +del _gst def threads_init(): import gtk diff --git a/gstreamer/gst.override b/gstreamer/gst.override new file mode 100644 index 0000000000..bffba608b1 --- /dev/null +++ b/gstreamer/gst.override @@ -0,0 +1,898 @@ +/* -*- Mode: C; c-basic-offset: 4 -*- */ +/* gst-python + * Copyright (C) 2002 David I. Lehn + * Copyright (C) 2004 Johan Dahlin + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + * + * Author: David I. Lehn + */ +%% +headers +#include + +#include "pygobject.h" +#include +#include +#include + +typedef struct { + PyGObject *pad; + PyObject *link_function; + PyObject *event_function; + PyObject *chain_function; + PyObject *get_function; +} PyGstPadPrivate; + +typedef struct { + PyObject *func, *data; +} PyGstCustomNotify; + +void iterate_bin_all(GstBin *bin); +guint add_iterate_bin(GstBin *bin); +void remove_iterate_bin(guint id); + +extern gboolean +pygst_data_from_pyobject(PyObject *object, GstData **data); + +%% +include + gstpad-handlers.override +%% +modulename gst +%% +import gobject.GObject as PyGObject_Type +%% +ignore-glob + _* + gstreamer_*init + *_get_type + *_copy + *_free + *_valist + *_private + gst_registry_* + gst_value_* +%% +override gst_buffer_get_data + +static PyObject* +_wrap_gst_buffer_get_data(PyObject *self) +{ + GstBuffer *buf; + + buf = pyg_boxed_get(self, GstBuffer); + + return PyString_FromStringAndSize( + GST_BUFFER_DATA(buf), + GST_BUFFER_SIZE(buf)); +} +%% +override gst_buffer_set_data kwargs + +static PyObject* +_wrap_gst_buffer_set_data(PyObject *self, PyObject *args, PyObject *kwargs) +{ + static char *kwlist[] = {"data", NULL}; + PyObject *data; + GstBuffer *buf; + + if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:GstBuffer:set_data", kwlist, &data)) { + return NULL; + } + if (!PyString_Check(data)) { + PyErr_SetString(PyExc_TypeError, "data should be a string"); + return NULL; + } + buf = pyg_boxed_get(self, GstBuffer); + if (GST_BUFFER_FLAGS(buf) & GST_BUFFER_READONLY) { + PyErr_SetString(PyExc_TypeError, "set_data can't use a READONLY buffer"); + return NULL; + } + GST_BUFFER_SIZE(buf) = PyString_Size(data); + GST_BUFFER_DATA(buf) = g_new0(char, GST_BUFFER_SIZE(buf)); + + memcpy(GST_BUFFER_DATA(buf), + PyString_AsString(data), + PyString_Size(data)); + + Py_INCREF(Py_None); + return Py_None; +} +%% +override gst_bin_iterate + +static PyObject * +_wrap_gst_bin_iterate(PyGObject *self) +{ + int ret; + + pyg_unblock_threads(); + ret = gst_bin_iterate(GST_BIN(self->obj)); + pyg_block_threads(); + return PyInt_FromLong(ret); +} +%% +override gst_element_set_state kwargs + +static PyObject * +_wrap_gst_element_set_state(PyGObject *self, PyObject *args, PyObject *kwargs) +{ + static char *kwlist[] = { "state", NULL }; + PyObject *py_state = NULL; + GstElementState state; + gint ret; + + if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:GstElement.set_state", kwlist, &py_state)) + return NULL; + if (pyg_flags_get_value(GST_TYPE_ELEMENT_STATE, py_state, (gint *)&state)) + return NULL; + pyg_unblock_threads(); + ret = gst_element_set_state(GST_ELEMENT(self->obj), state); + pyg_block_threads(); + return PyInt_FromLong(ret); +} +%% +override gst_pad_query kwargs + +static PyObject * +_wrap_gst_pad_query(PyGObject *self, PyObject *args, PyObject *kwargs) +{ + static char *kwlist[] = { "type", "format", NULL }; + GstQueryType type; + GstFormat format; + gint64 value; + gboolean ret; + + if (!PyArg_ParseTupleAndKeywords(args, kwargs, "ii:GstPad.query", kwlist, &type, &format)) + return NULL; + value = 0; + ret = gst_pad_query(GST_PAD(self->obj), type, &format, &value); + return Py_BuildValue("(bL)", ret, value); +} +%% +override gst_element_query kwargs + +static PyObject * +_wrap_gst_element_query(PyGObject *self, PyObject *args, PyObject *kwargs) +{ + static char *kwlist[] = { "type", "format", NULL }; + GstQueryType type; + GstFormat format; + gint64 value; + gboolean ret; + + if (!PyArg_ParseTupleAndKeywords(args, kwargs, "ii:GstElement.query", kwlist, &type, &format)) + return NULL; + value = 0; + ret = gst_element_query(GST_ELEMENT(self->obj), type, &format, &value); + return Py_BuildValue("(bL)", ret, value); +} +%% +override gst_pad_convert kwargs + +static PyObject * +_wrap_gst_pad_convert(PyGObject *self, PyObject *args, PyObject *kwargs) +{ + static char *kwlist[] = { "src_format", "src_value", "dest_format", NULL }; + GstFormat src_format, dest_format; + PyObject *src_value_obj; + gint64 src_value, dest_value; + gboolean ret; + + if (!PyArg_ParseTupleAndKeywords(args, kwargs, "iOi:GstPad.convert", kwlist, &src_format, &src_value_obj, &dest_format)) + return NULL; + src_value = PyLong_AsLongLong(src_value_obj); + dest_value = 0; + ret = gst_pad_convert(GST_PAD(self->obj), src_format, src_value, &dest_format, &dest_value); + return Py_BuildValue("(bL)", ret, dest_value); +} +%% +override gst_element_convert kwargs + +static PyObject * +_wrap_gst_element_convert(PyGObject *self, PyObject *args, PyObject *kwargs) +{ + static char *kwlist[] = { "src_format", "src_value", "dest_format", NULL }; + GstFormat src_format, dest_format; + PyObject *src_value_obj; + gint64 src_value, dest_value; + gboolean ret; + + if (!PyArg_ParseTupleAndKeywords(args, kwargs, "iOi:GstElement.convert", kwlist, &src_format, &src_value_obj, &dest_format)) + return NULL; + src_value = PyLong_AsLongLong(src_value_obj); + dest_value = 0; + ret = gst_element_convert(GST_ELEMENT(self->obj), src_format, src_value, &dest_format, &dest_value); + return Py_BuildValue("(bL)", ret, dest_value); +} +%% +override gst_version noargs +static PyObject * +_wrap_gst_version(void) +{ + guint major, minor, micro; + + gst_version(&major, &minor, µ); + + return Py_BuildValue("(iii)", major, minor, micro); +} + +%% +override gst_bin_add_many args +static PyObject * +_wrap_gst_bin_add_many(PyGObject *self, PyObject *args) +{ + PyGObject *element; + int i; + int len; + + len = PyTuple_Size(args); + if (len == 0) + { + PyErr_SetString(PyExc_TypeError, "GstBin.add requires at least one argument"); + return NULL; + } + + + for (i = 0; i < len; i++) + { + element = (PyGObject*)PyTuple_GetItem(args, i); + if (!pygobject_check(element, &PyGstElement_Type)) + { + PyErr_SetString(PyExc_TypeError, "argument must be a GstElement"); + return NULL; + } + } + + for (i = 0; i < len; i++) + { + element = (PyGObject*)PyTuple_GetItem(args, i); + gst_bin_add(GST_BIN(self->obj), GST_ELEMENT(element->obj)); + } + + Py_INCREF(Py_None); + return Py_None; +} +%% +override gst_element_link_many args +static PyObject * +_wrap_gst_element_link_many(PyObject *self, PyObject *args) +{ + PyGObject *element, *element2; + int i, len; + + len = PyTuple_Size(args); + if (len < 2) + { + PyErr_SetString(PyExc_TypeError, "gst.link_many requires at least two argument"); + return NULL; + } + + + for (i = 0; i < len; i++) + { + element = (PyGObject*)PyTuple_GetItem(args, i); + if (!pygobject_check(element, &PyGstElement_Type)) + { + PyErr_SetString(PyExc_TypeError, "argument must be a GstElement"); + return NULL; + } + } + + /* Mimic the real gst_element_link_many */ + element = (PyGObject*)PyTuple_GetItem(args, 0); + element2 = (PyGObject*)PyTuple_GetItem(args, 1); + + i = 2; + while (1) { + + if (!gst_element_link(GST_ELEMENT(element->obj), GST_ELEMENT(element2->obj))) + return PyInt_FromLong(0); + + if (i >= len) + break; + + element = element2; + element2 = (PyGObject*)PyTuple_GetItem(args, i); + + i++; + } + + return PyInt_FromLong(1); +} +%% +override-slot GstBuffer.tp_getattr +PyObject * +_wrap_gst_buffer_tp_getattr(PyGObject *self, char *attr) +{ + if (!strcmp(attr, "type")) + return pyg_type_wrapper_new(GST_DATA_TYPE(self->obj)); + else if (!strcmp(attr, "flags")) + return PyInt_FromLong(GST_DATA_FLAGS(self->obj)); + + return Py_FindMethod(_PyGstBuffer_methods, (PyObject*)self, attr); +} +%% +override GstPad.get_negotiated_caps +static PyObject * +_wrap_gst_pad_get_negotiated_caps(PyGObject *self) +{ + const GstCaps *ret; + + ret = gst_pad_get_negotiated_caps(GST_PAD(self->obj)); + /* pyg_boxed_new handles NULL checking */ + return pyg_boxed_new(GST_TYPE_CAPS, ret, TRUE, TRUE); +} +%% +override gst_buffer_new kwargs +static int +_wrap_gst_buffer_new(PyGBoxed *self, PyObject *args, PyObject *kwargs) +{ + static char *kwlist[] = { "data", NULL }; + char *data = NULL; + int size; + + if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|z#:GstBuffer.__init__", kwlist, &data, &size)) + return -1; + self->gtype = GST_TYPE_BUFFER; + self->free_on_dealloc = FALSE; + self->boxed = gst_buffer_new_and_alloc(size); + + if (!self->boxed) { + PyErr_SetString(PyExc_RuntimeError, "could not create GstBuffer object"); + return -1; + } + + if (data) + gst_buffer_set_data (self->boxed, data, size); + // memcpy (GST_BUFFER_DATA (self->boxed), data, size); + + gst_buffer_ref (GST_BUFFER (self->boxed)); + + return 0; +} +%% +override pygst_tag_list_keys noargs +void +tag_foreach_func_dict (const GstTagList *list, + const gchar *tag, + PyObject *dict) +{ + int count; + guint i; + const GValue *gvalue; + PyObject *value; + gchar *key; + + count = gst_tag_list_get_tag_size(GST_TAG_LIST(list), tag); + + for (i = 0; i < count; i++) { + gvalue = gst_tag_list_get_value_index(GST_TAG_LIST(list), tag, i); + value = pyg_value_as_pyobject(gvalue, TRUE); + key = g_strdup (tag); + PyDict_SetItemString(dict, key, value); + g_free (key); + Py_DECREF(value); + } +} +void +tag_foreach_func_list (const GstTagList *list, + const gchar *tag, + PyObject *py_list) +{ + int count; + + count = gst_tag_list_get_tag_size(GST_TAG_LIST(list), tag); + if (count == 0) + PyErr_SetString(PyExc_KeyError, tag); + else if (count == 1) + PyList_Append(py_list, PyString_FromString(tag)); + else if (count > 1) + PyErr_SetString(PyExc_TypeError, "lists are currently unspported"); +} + +static PyObject* +_wrap_pygst_tag_list_keys(PyGObject *self) +{ + PyObject *dict; + + dict = PyList_New(0); + + gst_tag_list_foreach(GST_TAG_LIST(self->obj), + (GstTagForeachFunc)tag_foreach_func_list, + (gpointer)dict); + + return dict; +} +%% +override-slot GstTagList.tp_as_mapping +static int +tag_list_length(PyGObject *self) +{ + return gst_structure_n_fields((GstStructure*)self->obj); +} + +static PyObject * +tag_list_subscript(PyGObject *self, register PyObject *py_key) +{ + PyObject *v = NULL; + char *key = PyString_AsString(py_key); + + int count = gst_tag_list_get_tag_size(GST_TAG_LIST(self->obj), key); + if (count == 0) { + PyErr_SetObject(PyExc_KeyError, py_key); + } else if (count == 1) { + const GValue *gvalue; + gvalue = gst_tag_list_get_value_index(GST_TAG_LIST(self->obj), key, 0); + v = pyg_value_as_pyobject(gvalue, TRUE); + } else { + PyErr_SetString(PyExc_TypeError, "lists are currently unspported"); + } + + if (v != NULL) + Py_INCREF(v); + return v; +} + +static PySequenceMethods _wrap_gst_tag_list_tp_as_mapping = { + (inquiry)tag_list_length, /*mp_length*/ + (binaryfunc)tag_list_subscript, /*mp_subscript*/ + (objobjargproc)NULL, +}; + +%% +override pygst_tag_list_has_key args +static PyObject* +_wrap_pygst_tag_list_has_key(PyGObject *self, PyObject *args) +{ + gchar *key; + const GValue *gvalue; + + if (!PyArg_ParseTuple(args, "s:GstTagList.keys", &key)) + return NULL; + + gvalue = gst_tag_list_get_value_index(GST_TAG_LIST(self->obj), key, 0); + + return PyInt_FromLong(gvalue != NULL); +} +%% +override pygst_tag_list_get args +static PyObject * +_wrap_pygst_tag_list_get(PyGObject *self, PyObject *args) +{ + char *key; + PyObject *failobj = Py_None; + PyObject *val = NULL; + const GValue *gvalue; + + if (!PyArg_ParseTuple(args, "s|O:GstTagList.get", &key, &failobj)) + return NULL; + + gvalue = gst_tag_list_get_value_index(GST_TAG_LIST(self->obj), key, 0); + if (gvalue != NULL) { + int count = gst_tag_list_get_tag_size(GST_TAG_LIST(self->obj), key); + if (count == 0) { + PyErr_SetString(PyExc_KeyError, key); + } else if (count == 1) { + gvalue = gst_tag_list_get_value_index(GST_TAG_LIST(self->obj), key, 0); + val = pyg_value_as_pyobject(gvalue, TRUE); + } else { + PyErr_SetString(PyExc_TypeError, "lists are currently unspported"); + } + } + + if (val == NULL) + val = failobj; + Py_INCREF(val); + return val; +} + +static PyGstPadPrivate* +pad_private(GstPad *pad) +{ + return (PyGstPadPrivate*)gst_pad_get_element_private(pad); +} + +static PyGstPadPrivate* +py_pad_private(PyGObject *pad) +{ + PyGstPadPrivate *private; + GstPad *gpad; + + gpad = (GstPad*)pygobject_get(pad); + private = (PyGstPadPrivate*)gst_pad_get_element_private(gpad); + if (private == NULL) { + /* FIXME need to free this somewhere */ + private = g_new0(PyGstPadPrivate, 1); + Py_INCREF(pad); + private->pad = pad; + gst_pad_set_element_private(gpad, private); + } + return private; +} + +%% +override gst_bin_iterate + +static PyObject * +_wrap_gst_bin_iterate(PyGObject *self) +{ + int ret; + + pyg_unblock_threads(); + ret = gst_bin_iterate(GST_BIN(self->obj)); + pyg_block_threads(); + return PyInt_FromLong(ret); +} +%% +override gst_element_set_state kwargs + +static PyObject * +_wrap_gst_element_set_state(PyGObject *self, PyObject *args, PyObject *kwargs) +{ + static char *kwlist[] = { "state", NULL }; + PyObject *py_state = NULL; + GstElementState state; + gint ret; + + if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:GstElement.set_state", kwlist, &py_state)) + return NULL; + if (pyg_flags_get_value(GST_TYPE_ELEMENT_STATE, py_state, (gint *)&state)) + return NULL; + pyg_unblock_threads(); + ret = gst_element_set_state(GST_ELEMENT(self->obj), state); + pyg_block_threads(); + return PyInt_FromLong(ret); +} +%% +override gst_pad_query kwargs + +static PyObject * +_wrap_gst_pad_query(PyGObject *self, PyObject *args, PyObject *kwargs) +{ + static char *kwlist[] = { "type", "format", NULL }; + GstQueryType type; + GstFormat format; + gint64 value; + gboolean ret; + + if (!PyArg_ParseTupleAndKeywords(args, kwargs, "ii:GstPad.query", kwlist, &type, &format)) + return NULL; + value = 0; + ret = gst_pad_query(GST_PAD(self->obj), type, &format, &value); + return Py_BuildValue("(bL)", ret, value); +} +%% +override gst_element_query kwargs + +static PyObject * +_wrap_gst_element_query(PyGObject *self, PyObject *args, PyObject *kwargs) +{ + static char *kwlist[] = { "type", "format", NULL }; + GstQueryType type; + GstFormat format; + gint64 value; + gboolean ret; + + if (!PyArg_ParseTupleAndKeywords(args, kwargs, "ii:GstElement.query", kwlist, &type, &format)) + return NULL; + value = 0; + ret = gst_element_query(GST_ELEMENT(self->obj), type, &format, &value); + return Py_BuildValue("(bL)", ret, value); +} +%% +override gst_pad_convert kwargs + +static PyObject * +_wrap_gst_pad_convert(PyGObject *self, PyObject *args, PyObject *kwargs) +{ + static char *kwlist[] = { "src_format", "src_value", "dest_format", NULL }; + GstFormat src_format, dest_format; + PyObject *src_value_obj; + gint64 src_value, dest_value; + gboolean ret; + + if (!PyArg_ParseTupleAndKeywords(args, kwargs, "iOi:GstPad.convert", kwlist, &src_format, &src_value_obj, &dest_format)) + return NULL; + src_value = PyLong_AsLongLong(src_value_obj); + dest_value = 0; + ret = gst_pad_convert(GST_PAD(self->obj), src_format, src_value, &dest_format, &dest_value); + return Py_BuildValue("(bL)", ret, dest_value); +} +%% +override gst_element_convert kwargs + +static PyObject * +_wrap_gst_element_convert(PyGObject *self, PyObject *args, PyObject *kwargs) +{ + static char *kwlist[] = { "src_format", "src_value", "dest_format", NULL }; + GstFormat src_format, dest_format; + PyObject *src_value_obj; + gint64 src_value, dest_value; + gboolean ret; + + if (!PyArg_ParseTupleAndKeywords(args, kwargs, "iOi:GstElement.convert", kwlist, &src_format, &src_value_obj, &dest_format)) + return NULL; + src_value = PyLong_AsLongLong(src_value_obj); + dest_value = 0; + ret = gst_element_convert(GST_ELEMENT(self->obj), src_format, src_value, &dest_format, &dest_value); + return Py_BuildValue("(bL)", ret, dest_value); +} +%% +override gst_version noargs + +static PyObject * +_wrap_gst_version(void) +{ + guint major, minor, micro; + + gst_version(&major, &minor, µ); + + return Py_BuildValue("(iii)", major, minor, micro); +} +%% +override gst_bin_add_many args +static PyObject * +_wrap_gst_bin_add_many(PyGObject *self, PyObject *args, PyObject *kwargs) +{ + PyGObject *element; + int i; + int len; + + len = PyList_Size(args); + if (len == 0) + { + PyErr_SetString(PyExc_TypeError, "GstBin.add requires at least one argument"); + return NULL; + } + + + for (i = 0; i < len; i++) + { + element = (PyGObject*)PyList_GetItem(args, i); + if (!pygobject_check(element, &PyGstElement_Type)) + { + PyErr_SetString(PyExc_TypeError, "argument must be a GstElement"); + return NULL; + } + } + + for (i = 0; i < len; i++) + { + element = (PyGObject*)PyList_GetItem(args, i); + gst_bin_add(GST_BIN(self->obj), GST_ELEMENT(element->obj)); + } + + Py_INCREF(Py_None); + return Py_None; +} +%% +override gst_structure_new kwargs + +static int +_wrap_gst_structure_new(PyGBoxed *self, PyObject *args, PyObject *kwargs) +{ + static char *kwlist[] = { "name", NULL }; + char *name; + + if (!PyArg_ParseTupleAndKeywords(args, kwargs, "s:GstStructure.__init__", kwlist, &name)) + return -1; + self->gtype = GST_TYPE_STRUCTURE; + self->free_on_dealloc = FALSE; + self->boxed = gst_structure_new(name, NULL); + + if (!self->boxed) { + PyErr_SetString(PyExc_RuntimeError, "could not create GstStructure object"); + return -1; + } + self->free_on_dealloc = TRUE; + return 0; +} +%% +override gst_structure_set_value kwargs + +static PyObject * +_wrap_gst_structure_set_value(PyObject *self, PyObject *args, PyObject *kwargs) +{ + static char *kwlist[] = { "field", "value", NULL }; + char *field; + PyObject *py_value = NULL; + GValue value = { 0 }; + + if (!PyArg_ParseTupleAndKeywords(args, kwargs, "sO:GstStructure.set_value", kwlist, &field, &py_value)) + return NULL; + g_value_init(&value, G_TYPE_STRING); + if (pyg_value_from_pyobject(&value, py_value) != 0) { + return NULL; + } + gst_structure_set_value(pyg_boxed_get(self, GstStructure), field, &value); + + Py_INCREF(Py_None); + return Py_None; +} +%% +override gst_structure_foreach kwargs + +static gboolean +pygst_structure_foreach_marshal(GQuark field_id, + GValue *value, + gpointer user_data) +{ + PyGstCustomNotify *cunote = user_data; + PyObject *py_field, *py_value, *retobj; + gboolean retval = TRUE; + + g_assert(cunote->func); + + pyg_block_threads(); + + //py_model = pygobject_new((GObject *)model); + //py_path = pygtk_tree_path_to_pyobject(path); + //py_iter = pyg_boxed_new(GTK_TYPE_TREE_ITER, iter, TRUE, TRUE); + py_field = Py_BuildValue("s", g_quark_to_string(field_id)); + py_value = pyg_value_as_pyobject(value, FALSE); + if (cunote->data) + retobj = PyEval_CallFunction(cunote->func, "(NNO)", + py_field, py_value, + cunote->data); + else + retobj = PyEval_CallFunction(cunote->func, "(NN)", + py_field, py_value); + + if (PyErr_Occurred () || (retobj == NULL) || (retobj == Py_None)) { + PyErr_Print (); + retval = FALSE; + } else if (retobj != Py_None) { + retval = PyInt_AsLong(retobj); + } + + Py_XDECREF(retobj); + + pyg_unblock_threads(); + + return retval; +} + +static PyObject * +_wrap_gst_structure_foreach (PyGObject *self, + PyObject *args, + PyObject *kwargs) +{ + static char *kwlist[] = { "foreach_function", "args", NULL }; + PyObject *pyfunc, *pyarg = NULL; + PyGstCustomNotify cunote; + + if (!PyArg_ParseTupleAndKeywords(args, kwargs, + "O|O:GstStructure.foreach", + kwlist, + &pyfunc, &pyarg)) { + return NULL; + } + + if (!PyCallable_Check(pyfunc)) { + PyErr_SetString(PyExc_TypeError, "foreach_function not callable"); + return NULL; + } + + cunote.func = pyfunc; + cunote.data = pyarg; + gst_structure_foreach(pyg_boxed_get(self, GstStructure), + pygst_structure_foreach_marshal, + &cunote); + + Py_INCREF(Py_None); + return Py_None; +} +%% +override gst_tag_list_foreach kwargs + +static gboolean +pygst_tag_list_foreach_marshal(GstTagList *list, + const gchar *tag, + gpointer user_data) +{ + PyGstCustomNotify *cunote = user_data; + PyObject *py_list; + PyObject *py_key, *retobj; + gboolean retval = TRUE; + + g_assert(cunote->func); + + pyg_block_threads(); + + py_list = pyg_boxed_new(GST_TYPE_TAG_LIST, list, TRUE, TRUE); + py_key = Py_BuildValue("s", tag); + if (cunote->data) + retobj = PyEval_CallFunction(cunote->func, "(NNO)", + py_list, + py_key, + cunote->data); + else + retobj = PyEval_CallFunction(cunote->func, "(NN)", + py_list, + py_key); + + if (PyErr_Occurred () || (retobj == NULL) || (retobj == Py_None)) { + PyErr_Print (); + retval = FALSE; + } else if (retobj != Py_None) { + retval = PyInt_AsLong(retobj); + } + + Py_XDECREF(retobj); + + pyg_unblock_threads(); + + return retval; +} + +static PyObject * +_wrap_gst_tag_list_foreach (PyGObject *self, + PyObject *args, + PyObject *kwargs) +{ + static char *kwlist[] = { "foreach_function", "args", NULL }; + PyObject *pyfunc, *pyarg = NULL; + PyGstCustomNotify cunote; + + if (!PyArg_ParseTupleAndKeywords(args, kwargs, + "O|O:GstTagList.foreach", + kwlist, + &pyfunc, &pyarg)) { + return NULL; + } + + if (!PyCallable_Check(pyfunc)) { + PyErr_SetString(PyExc_TypeError, "foreach_function not callable"); + return NULL; + } + + cunote.func = pyfunc; + cunote.data = pyarg; + gst_tag_list_foreach(pyg_boxed_get(self, GstTagList), + (GstTagForeachFunc)pygst_tag_list_foreach_marshal, + &cunote); + + Py_INCREF(Py_None); + return Py_None; +} +%% +override gst_tag_list_get_value_index kwargs + +static PyObject * +_wrap_gst_tag_list_get_value_index (PyGObject *self, + PyObject *args, + PyObject *kwargs) +{ + static char *kwlist[] = { "tag", "index", NULL }; + char *tag; + int index; + const GValue *gvalue; + + if (!PyArg_ParseTupleAndKeywords(args, kwargs, + "si:GstTagList.get_value_index", + kwlist, + &tag, &index)) { + return NULL; + } + + gvalue = gst_tag_list_get_value_index(pyg_boxed_get(self, GstTagList), + tag, + index); + + return pyg_value_as_pyobject(gvalue, FALSE); +} diff --git a/gstreamer/gstreamer.defs b/gstreamer/gstreamer.defs deleted file mode 100644 index 9827fdab3f..0000000000 --- a/gstreamer/gstreamer.defs +++ /dev/null @@ -1,6155 +0,0 @@ -;; -*- scheme -*- - -(include "gst-types.defs") -;;(include "0.7.defs") - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstatomic.h - -(define-method init - (of-object "GstAtomicInt") - (c-name "gst_atomic_int_init") - (return-type "none") - (parameters - '("gint" "val") - ) -) - -(define-method destroy - (of-object "GstAtomicInt") - (c-name "gst_atomic_int_destroy") - (return-type "none") -) - -(define-method set - (of-object "GstAtomicInt") - (c-name "gst_atomic_int_set") - (return-type "none") - (parameters - '("gint" "val") - ) -) - -(define-method read - (of-object "GstAtomicInt") - (c-name "gst_atomic_int_read") - (return-type "gint") -) - -(define-method add - (of-object "GstAtomicInt") - (c-name "gst_atomic_int_add") - (return-type "none") - (parameters - '("gint" "val") - ) -) - -(define-method inc - (of-object "GstAtomicInt") - (c-name "gst_atomic_int_inc") - (return-type "none") -) - -(define-method dec_and_test - (of-object "GstAtomicInt") - (c-name "gst_atomic_int_dec_and_test") - (return-type "gboolean") -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstbin.h - -(define-function bin_get_type - (c-name "gst_bin_get_type") - (return-type "GType") -) - -(define-function bin_new - (c-name "gst_bin_new") - (is-constructor-of "GstBin") - (return-type "GstElement*") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method add - (of-object "GstBin") - (c-name "gst_bin_add") - (return-type "none") - (parameters - '("GstElement*" "element") - ) -) - -(define-method add_many - (of-object "GstBin") - (c-name "gst_bin_add_many") - (return-type "none") - (parameters - '("GstElement*" "element_1") - ) - (varargs #t) -) - -(define-method remove - (of-object "GstBin") - (c-name "gst_bin_remove") - (return-type "none") - (parameters - '("GstElement*" "element") - ) -) - -(define-method remove_many - (of-object "GstBin") - (c-name "gst_bin_remove_many") - (return-type "none") - (parameters - '("GstElement*" "element_1") - ) - (varargs #t) -) - -(define-method get_by_name - (of-object "GstBin") - (c-name "gst_bin_get_by_name") - (return-type "GstElement*") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method get_by_name_recurse_up - (of-object "GstBin") - (c-name "gst_bin_get_by_name_recurse_up") - (return-type "GstElement*") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method get_list - (of-object "GstBin") - (c-name "gst_bin_get_list") - (return-type "const-GList*") -) - -(define-method get_by_interface - (of-object "GstBin") - (c-name "gst_bin_get_by_interface") - (return-type "GstElement*") - (parameters - '("GType" "interface") - ) -) - -(define-method get_all_by_interface - (of-object "GstBin") - (c-name "gst_bin_get_all_by_interface") - (return-type "GList*") - (parameters - '("GType" "interface") - ) -) - -(define-method iterate - (of-object "GstBin") - (c-name "gst_bin_iterate") - (return-type "gboolean") -) - -(define-method use_clock - (of-object "GstBin") - (c-name "gst_bin_use_clock") - (return-type "none") - (parameters - '("GstClock*" "clock") - ) -) - -(define-method get_clock - (of-object "GstBin") - (c-name "gst_bin_get_clock") - (return-type "GstClock*") -) - -(define-method auto_clock - (of-object "GstBin") - (c-name "gst_bin_auto_clock") - (return-type "none") -) - -(define-method sync_children_state - (of-object "GstBin") - (c-name "gst_bin_sync_children_state") - (return-type "GstElementStateReturn") -) - -(define-method child_state_change - (of-object "GstBin") - (c-name "gst_bin_child_state_change") - (return-type "none") - (parameters - '("GstElementState" "oldstate") - '("GstElementState" "newstate") - '("GstElement*" "child") - ) -) - -(define-method set_pre_iterate_function - (of-object "GstBin") - (c-name "gst_bin_set_pre_iterate_function") - (return-type "none") - (parameters - '("GstBinPrePostIterateFunction" "func") - '("gpointer" "user_data") - ) -) - -(define-method set_post_iterate_function - (of-object "GstBin") - (c-name "gst_bin_set_post_iterate_function") - (return-type "none") - (parameters - '("GstBinPrePostIterateFunction" "func") - '("gpointer" "user_data") - ) -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstbuffer.h - -(define-function buffer_get_type - (c-name "gst_buffer_get_type") - (return-type "GType") -) - -(define-function buffer_new - (c-name "gst_buffer_new") - (is-constructor-of "GstBuffer") - (return-type "GstBuffer*") -) - -(define-function buffer_new_and_alloc - (c-name "gst_buffer_new_and_alloc") - (return-type "GstBuffer*") - (parameters - '("guint" "size") - ) -) - -(define-method stamp - (of-object "GstBuffer") - (c-name "gst_buffer_stamp") - (return-type "none") - (parameters - '("const-GstBuffer*" "src") - ) -) - -(define-method create_sub - (of-object "GstBuffer") - (c-name "gst_buffer_create_sub") - (return-type "GstBuffer*") - (parameters - '("guint" "offset") - '("guint" "size") - ) -) - -(define-method merge - (of-object "GstBuffer") - (c-name "gst_buffer_merge") - (return-type "GstBuffer*") - (parameters - '("GstBuffer*" "buf2") - ) -) - -(define-method is_span_fast - (of-object "GstBuffer") - (c-name "gst_buffer_is_span_fast") - (return-type "gboolean") - (parameters - '("GstBuffer*" "buf2") - ) -) - -(define-method span - (of-object "GstBuffer") - (c-name "gst_buffer_span") - (return-type "GstBuffer*") - (parameters - '("guint32" "offset") - '("GstBuffer*" "buf2") - '("guint32" "len") - ) -) - -(define-function _gst_buffer_initialize - (c-name "_gst_buffer_initialize") - (return-type "none") -) - -(define-method default_free - (of-object "GstBuffer") - (c-name "gst_buffer_default_free") - (return-type "none") -) - -(define-method default_copy - (of-object "GstBuffer") - (c-name "gst_buffer_default_copy") - (return-type "GstBuffer*") -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstcaps.h - -(define-function _gst_caps_initialize - (c-name "_gst_caps_initialize") - (return-type "none") -) - -(define-function caps_get_type - (c-name "gst_caps_get_type") - (return-type "GType") -) - -(define-function caps_new_empty - (c-name "gst_caps_new_empty") - (return-type "GstCaps*") -) - -(define-function caps_new_any - (c-name "gst_caps_new_any") - (return-type "GstCaps*") -) - -(define-function caps_new_simple - (c-name "gst_caps_new_simple") - (return-type "GstCaps*") - (parameters - '("const-char*" "media_type") - '("const-char*" "fieldname") - ) - (varargs #t) -) - -(define-function caps_new_full - (c-name "gst_caps_new_full") - (return-type "GstCaps*") - (parameters - '("GstStructure*" "struct1") - ) - (varargs #t) -) - -(define-function caps_new_full_valist - (c-name "gst_caps_new_full_valist") - (return-type "GstCaps*") - (parameters - '("GstStructure*" "structure") - '("va_list" "var_args") - ) -) - -(define-method copy - (of-object "GstCaps") - (c-name "gst_caps_copy") - (return-type "GstCaps*") -) - -(define-method free - (of-object "GstCaps") - (c-name "gst_caps_free") - (return-type "none") -) - -(define-method get - (of-object "GstStaticCaps") - (c-name "gst_static_caps_get") - (return-type "const-GstCaps*") -) - -(define-method append - (of-object "GstCaps") - (c-name "gst_caps_append") - (return-type "none") - (parameters - '("GstCaps*" "caps2") - ) -) - -(define-method append_structure - (of-object "GstCaps") - (c-name "gst_caps_append_structure") - (return-type "none") - (parameters - '("GstStructure*" "structure") - ) -) - -(define-method split_one - (of-object "GstCaps") - (c-name "gst_caps_split_one") - (return-type "GstCaps*") -) - -(define-method get_size - (of-object "GstCaps") - (c-name "gst_caps_get_size") - (return-type "int") -) - -(define-method get_structure - (of-object "GstCaps") - (c-name "gst_caps_get_structure") - (return-type "GstStructure*") - (parameters - '("int" "index") - ) -) - -(define-method copy_1 - (of-object "GstCaps") - (c-name "gst_caps_copy_1") - (return-type "GstCaps*") -) - -(define-method set_simple - (of-object "GstCaps") - (c-name "gst_caps_set_simple") - (return-type "none") - (parameters - '("char*" "field") - ) - (varargs #t) -) - -(define-method set_simple_valist - (of-object "GstCaps") - (c-name "gst_caps_set_simple_valist") - (return-type "none") - (parameters - '("char*" "field") - '("va_list" "varargs") - ) -) - -(define-method is_any - (of-object "GstCaps") - (c-name "gst_caps_is_any") - (return-type "gboolean") -) - -(define-method is_empty - (of-object "GstCaps") - (c-name "gst_caps_is_empty") - (return-type "gboolean") -) - -(define-method is_chained - (of-object "GstCaps") - (c-name "gst_caps_is_chained") - (return-type "gboolean") -) - -(define-method is_fixed - (of-object "GstCaps") - (c-name "gst_caps_is_fixed") - (return-type "gboolean") -) - -(define-method is_equal_fixed - (of-object "GstCaps") - (c-name "gst_caps_is_equal_fixed") - (return-type "gboolean") - (parameters - '("const-GstCaps*" "caps2") - ) -) - -(define-method is_always_compatible - (of-object "GstCaps") - (c-name "gst_caps_is_always_compatible") - (return-type "gboolean") - (parameters - '("const-GstCaps*" "caps2") - ) -) - -(define-method intersect - (of-object "GstCaps") - (c-name "gst_caps_intersect") - (return-type "GstCaps*") - (parameters - '("const-GstCaps*" "caps2") - ) -) - -(define-method union - (of-object "GstCaps") - (c-name "gst_caps_union") - (return-type "GstCaps*") - (parameters - '("const-GstCaps*" "caps2") - ) -) - -(define-method normalize - (of-object "GstCaps") - (c-name "gst_caps_normalize") - (return-type "GstCaps*") -) - -(define-method simplify - (of-object "GstCaps") - (c-name "gst_caps_simplify") - (return-type "GstCaps*") -) - -(define-method save_thyself - (of-object "GstCaps") - (c-name "gst_caps_save_thyself") - (return-type "xmlNodePtr") - (parameters - '("xmlNodePtr" "parent") - ) -) - -(define-function caps_load_thyself - (c-name "gst_caps_load_thyself") - (return-type "GstCaps*") - (parameters - '("xmlNodePtr" "parent") - ) -) - -(define-function caps_replace - (c-name "gst_caps_replace") - (return-type "none") - (parameters - '("GstCaps**" "caps") - '("GstCaps*" "newcaps") - ) -) - -(define-method to_string - (of-object "GstCaps") - (c-name "gst_caps_to_string") - (return-type "gchar*") -) - -(define-function caps_from_string - (c-name "gst_caps_from_string") - (return-type "GstCaps*") - (parameters - '("const-gchar*" "string") - ) -) - -(define-function caps_structure_fixate_field_nearest_int - (c-name "gst_caps_structure_fixate_field_nearest_int") - (return-type "gboolean") - (parameters - '("GstStructure*" "structure") - '("const-char*" "field_name") - '("int" "target") - ) -) - -(define-function caps_structure_fixate_field_nearest_double - (c-name "gst_caps_structure_fixate_field_nearest_double") - (return-type "gboolean") - (parameters - '("GstStructure*" "structure") - '("const-char*" "field_name") - '("double" "target") - ) -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstclock.h - -(define-function clock_get_type - (c-name "gst_clock_get_type") - (return-type "GType") -) - -(define-method set_speed - (of-object "GstClock") - (c-name "gst_clock_set_speed") - (return-type "gdouble") - (parameters - '("gdouble" "speed") - ) -) - -(define-method get_speed - (of-object "GstClock") - (c-name "gst_clock_get_speed") - (return-type "gdouble") -) - -(define-method set_resolution - (of-object "GstClock") - (c-name "gst_clock_set_resolution") - (return-type "guint64") - (parameters - '("guint64" "resolution") - ) -) - -(define-method get_resolution - (of-object "GstClock") - (c-name "gst_clock_get_resolution") - (return-type "guint64") -) - -(define-method set_active - (of-object "GstClock") - (c-name "gst_clock_set_active") - (return-type "none") - (parameters - '("gboolean" "active") - ) -) - -(define-method is_active - (of-object "GstClock") - (c-name "gst_clock_is_active") - (return-type "gboolean") -) - -(define-method reset - (of-object "GstClock") - (c-name "gst_clock_reset") - (return-type "none") -) - -(define-method handle_discont - (of-object "GstClock") - (c-name "gst_clock_handle_discont") - (return-type "gboolean") - (parameters - '("guint64" "time") - ) -) - -(define-method get_time - (of-object "GstClock") - (c-name "gst_clock_get_time") - (return-type "GstClockTime") -) - -(define-method get_event_time - (of-object "GstClock") - (c-name "gst_clock_get_event_time") - (return-type "GstClockTime") -) - -(define-method get_next_id - (of-object "GstClock") - (c-name "gst_clock_get_next_id") - (return-type "GstClockID") -) - -(define-method new_single_shot_id - (of-object "GstClock") - (c-name "gst_clock_new_single_shot_id") - (return-type "GstClockID") - (parameters - '("GstClockTime" "time") - ) -) - -(define-method new_periodic_id - (of-object "GstClock") - (c-name "gst_clock_new_periodic_id") - (return-type "GstClockID") - (parameters - '("GstClockTime" "start_time") - '("GstClockTime" "interval") - ) -) - -(define-method get_time - (of-object "GstClockID") - (c-name "gst_clock_id_get_time") - (return-type "GstClockTime") -) - -(define-method wait - (of-object "GstClockID") - (c-name "gst_clock_id_wait") - (return-type "GstClockReturn") - (parameters - '("GstClockTimeDiff*" "jitter") - ) -) - -(define-method wait_async - (of-object "GstClockID") - (c-name "gst_clock_id_wait_async") - (return-type "GstClockReturn") - (parameters - '("GstClockCallback" "func") - '("gpointer" "user_data") - ) -) - -(define-method unschedule - (of-object "GstClockID") - (c-name "gst_clock_id_unschedule") - (return-type "none") -) - -(define-method unlock - (of-object "GstClockID") - (c-name "gst_clock_id_unlock") - (return-type "none") -) - -(define-method free - (of-object "GstClockID") - (c-name "gst_clock_id_free") - (return-type "none") -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstconfig.h - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstcpu.h - -(define-function _gst_cpu_initialize - (c-name "_gst_cpu_initialize") - (return-type "none") - (parameters - '("gboolean" "useopt") - ) -) - -(define-function cpu_get_flags - (c-name "gst_cpu_get_flags") - (return-type "GstCPUFlags") -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstdata.h - -(define-method init - (of-object "GstData") - (c-name "gst_data_init") - (return-type "none") - (parameters - '("GType" "type") - '("guint16" "flags") - '("GstDataFreeFunction" "free") - '("GstDataCopyFunction" "copy") - ) -) - -(define-method dispose - (of-object "GstData") - (c-name "gst_data_dispose") - (return-type "none") -) - -(define-method copy_into - (of-object "GstData") - (c-name "gst_data_copy_into") - (return-type "none") - (parameters - '("GstData*" "target") - ) -) - -(define-method copy - (of-object "GstData") - (c-name "gst_data_copy") - (return-type "GstData*") -) - -(define-method is_writable - (of-object "GstData") - (c-name "gst_data_is_writable") - (return-type "gboolean") -) - -(define-method copy_on_write - (of-object "GstData") - (c-name "gst_data_copy_on_write") - (return-type "GstData*") -) - -(define-method free - (of-object "GstData") - (c-name "gst_data_free") - (return-type "none") -) - -(define-method ref - (of-object "GstData") - (c-name "gst_data_ref") - (return-type "GstData*") -) - -(define-method ref_by_count - (of-object "GstData") - (c-name "gst_data_ref_by_count") - (return-type "GstData*") - (parameters - '("gint" "count") - ) -) - -(define-method unref - (of-object "GstData") - (c-name "gst_data_unref") - (return-type "none") -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstelement.h - -(define-method add_pad_template - (of-object "GstElementClass") - (c-name "gst_element_class_add_pad_template") - (return-type "none") - (parameters - '("GstPadTemplate*" "templ") - ) -) - -(define-method install_std_props - (of-object "GstElementClass") - (c-name "gst_element_class_install_std_props") - (return-type "none") - (parameters - '("const-gchar*" "first_name") - ) - (varargs #t) -) - -(define-method set_details - (of-object "GstElementClass") - (c-name "gst_element_class_set_details") - (return-type "none") - (parameters - '("const-GstElementDetails*" "details") - ) -) - -(define-function element_default_error - (c-name "gst_element_default_error") - (return-type "none") - (parameters - '("GObject*" "object") - '("GstObject*" "orig") - '("GError*" "error") - '("gchar*" "debug") - ) -) - -(define-function element_get_type - (c-name "gst_element_get_type") - (return-type "GType") -) - -(define-method set_loop_function - (of-object "GstElement") - (c-name "gst_element_set_loop_function") - (return-type "none") - (parameters - '("GstElementLoopFunction" "loop") - ) -) - -(define-method set - (of-object "GstElement") - (c-name "gst_element_set") - (return-type "none") - (parameters - '("const-gchar*" "first_property_name") - ) - (varargs #t) -) - -(define-method get - (of-object "GstElement") - (c-name "gst_element_get") - (return-type "none") - (parameters - '("const-gchar*" "first_property_name") - ) - (varargs #t) -) - -(define-method set_valist - (of-object "GstElement") - (c-name "gst_element_set_valist") - (return-type "none") - (parameters - '("const-gchar*" "first_property_name") - '("va_list" "var_args") - ) -) - -(define-method get_valist - (of-object "GstElement") - (c-name "gst_element_get_valist") - (return-type "none") - (parameters - '("const-gchar*" "first_property_name") - '("va_list" "var_args") - ) -) - -(define-method set_property - (of-object "GstElement") - (c-name "gst_element_set_property") - (return-type "none") - (parameters - '("const-gchar*" "property_name") - '("const-GValue*" "value") - ) -) - -(define-method get_property - (of-object "GstElement") - (c-name "gst_element_get_property") - (return-type "none") - (parameters - '("const-gchar*" "property_name") - '("GValue*" "value") - ) -) - -(define-method enable_threadsafe_properties - (of-object "GstElement") - (c-name "gst_element_enable_threadsafe_properties") - (return-type "none") -) - -(define-method disable_threadsafe_properties - (of-object "GstElement") - (c-name "gst_element_disable_threadsafe_properties") - (return-type "none") -) - -(define-method set_pending_properties - (of-object "GstElement") - (c-name "gst_element_set_pending_properties") - (return-type "none") -) - -(define-method requires_clock - (of-object "GstElement") - (c-name "gst_element_requires_clock") - (return-type "gboolean") -) - -(define-method provides_clock - (of-object "GstElement") - (c-name "gst_element_provides_clock") - (return-type "gboolean") -) - -(define-method get_clock - (of-object "GstElement") - (c-name "gst_element_get_clock") - (return-type "GstClock*") -) - -(define-method set_clock - (of-object "GstElement") - (c-name "gst_element_set_clock") - (return-type "none") - (parameters - '("GstClock*" "clock") - ) -) - -(define-method clock_wait - (of-object "GstElement") - (c-name "gst_element_clock_wait") - (return-type "GstClockReturn") - (parameters - '("GstClockID" "id") - '("GstClockTimeDiff*" "jitter") - ) -) - -(define-method get_time - (of-object "GstElement") - (c-name "gst_element_get_time") - (return-type "GstClockTime") -) - -(define-method wait - (of-object "GstElement") - (c-name "gst_element_wait") - (return-type "gboolean") - (parameters - '("GstClockTime" "timestamp") - ) -) - -(define-method set_time - (of-object "GstElement") - (c-name "gst_element_set_time") - (return-type "none") - (parameters - '("GstClockTime" "time") - ) -) - -(define-method adjust_time - (of-object "GstElement") - (c-name "gst_element_adjust_time") - (return-type "none") - (parameters - '("GstClockTimeDiff" "diff") - ) -) - -(define-method is_indexable - (of-object "GstElement") - (c-name "gst_element_is_indexable") - (return-type "gboolean") -) - -(define-method set_index - (of-object "GstElement") - (c-name "gst_element_set_index") - (return-type "none") - (parameters - '("GstIndex*" "index") - ) -) - -(define-method get_index - (of-object "GstElement") - (c-name "gst_element_get_index") - (return-type "GstIndex*") -) - -(define-method release_locks - (of-object "GstElement") - (c-name "gst_element_release_locks") - (return-type "gboolean") -) - -(define-method yield - (of-object "GstElement") - (c-name "gst_element_yield") - (return-type "none") -) - -(define-method interrupt - (of-object "GstElement") - (c-name "gst_element_interrupt") - (return-type "gboolean") -) - -(define-method set_scheduler - (of-object "GstElement") - (c-name "gst_element_set_scheduler") - (return-type "none") - (parameters - '("GstScheduler*" "sched") - ) -) - -(define-method get_scheduler - (of-object "GstElement") - (c-name "gst_element_get_scheduler") - (return-type "GstScheduler*") -) - -(define-method add_pad - (of-object "GstElement") - (c-name "gst_element_add_pad") - (return-type "none") - (parameters - '("GstPad*" "pad") - ) -) - -(define-method remove_pad - (of-object "GstElement") - (c-name "gst_element_remove_pad") - (return-type "none") - (parameters - '("GstPad*" "pad") - ) -) - -(define-method add_ghost_pad - (of-object "GstElement") - (c-name "gst_element_add_ghost_pad") - (return-type "GstPad*") - (parameters - '("GstPad*" "pad") - '("const-gchar*" "name") - ) -) - -(define-method remove_ghost_pad - (of-object "GstElement") - (c-name "gst_element_remove_ghost_pad") - (return-type "none") - (parameters - '("GstPad*" "pad") - ) -) - -(define-method get_pad - (of-object "GstElement") - (c-name "gst_element_get_pad") - (return-type "GstPad*") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method get_static_pad - (of-object "GstElement") - (c-name "gst_element_get_static_pad") - (return-type "GstPad*") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method get_request_pad - (of-object "GstElement") - (c-name "gst_element_get_request_pad") - (return-type "GstPad*") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method release_request_pad - (of-object "GstElement") - (c-name "gst_element_release_request_pad") - (return-type "none") - (parameters - '("GstPad*" "pad") - ) -) - -(define-method get_pad_list - (of-object "GstElement") - (c-name "gst_element_get_pad_list") - (return-type "const-GList*") -) - -(define-method get_compatible_pad - (of-object "GstElement") - (c-name "gst_element_get_compatible_pad") - (return-type "GstPad*") - (parameters - '("GstPad*" "pad") - ) -) - -(define-method get_compatible_pad_filtered - (of-object "GstElement") - (c-name "gst_element_get_compatible_pad_filtered") - (return-type "GstPad*") - (parameters - '("GstPad*" "pad") - '("const-GstCaps*" "filtercaps") - ) -) - -(define-method get_pad_template - (of-object "GstElementClass") - (c-name "gst_element_class_get_pad_template") - (return-type "GstPadTemplate*") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method get_pad_template_list - (of-object "GstElementClass") - (c-name "gst_element_class_get_pad_template_list") - (return-type "GList*") -) - -(define-method get_pad_template - (of-object "GstElement") - (c-name "gst_element_get_pad_template") - (return-type "GstPadTemplate*") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method get_pad_template_list - (of-object "GstElement") - (c-name "gst_element_get_pad_template_list") - (return-type "GList*") -) - -(define-method get_compatible_pad_template - (of-object "GstElement") - (c-name "gst_element_get_compatible_pad_template") - (return-type "GstPadTemplate*") - (parameters - '("GstPadTemplate*" "compattempl") - ) -) - -(define-method link - (of-object "GstElement") - (c-name "gst_element_link") - (return-type "gboolean") - (parameters - '("GstElement*" "dest") - ) -) - -(define-method link_filtered - (of-object "GstElement") - (c-name "gst_element_link_filtered") - (return-type "gboolean") - (parameters - '("GstElement*" "dest") - '("const-GstCaps*" "filtercaps") - ) -) - -(define-function element_link_many - (c-name "gst_element_link_many") - (return-type "gboolean") - (parameters - '("GstElement*" "element_1") - '("GstElement*" "element_2") - ) - (varargs #t) -) - -(define-method unlink - (of-object "GstElement") - (c-name "gst_element_unlink") - (return-type "none") - (parameters - '("GstElement*" "dest") - ) -) - -(define-method unlink_many - (of-object "GstElement") - (c-name "gst_element_unlink_many") - (return-type "none") - (parameters - '("GstElement*" "element_2") - ) - (varargs #t) -) - -(define-method link_pads - (of-object "GstElement") - (c-name "gst_element_link_pads") - (return-type "gboolean") - (parameters - '("const-gchar*" "srcpadname") - '("GstElement*" "dest") - '("const-gchar*" "destpadname") - ) -) - -(define-method link_pads_filtered - (of-object "GstElement") - (c-name "gst_element_link_pads_filtered") - (return-type "gboolean") - (parameters - '("const-gchar*" "srcpadname") - '("GstElement*" "dest") - '("const-gchar*" "destpadname") - '("const-GstCaps*" "filtercaps") - ) -) - -(define-method unlink_pads - (of-object "GstElement") - (c-name "gst_element_unlink_pads") - (return-type "none") - (parameters - '("const-gchar*" "srcpadname") - '("GstElement*" "dest") - '("const-gchar*" "destpadname") - ) -) - -(define-method get_event_masks - (of-object "GstElement") - (c-name "gst_element_get_event_masks") - (return-type "const-GstEventMask*") -) - -(define-method send_event - (of-object "GstElement") - (c-name "gst_element_send_event") - (return-type "gboolean") - (parameters - '("GstEvent*" "event") - ) -) - -(define-method seek - (of-object "GstElement") - (c-name "gst_element_seek") - (return-type "gboolean") - (parameters - '("GstSeekType" "seek_type") - '("guint64" "offset") - ) -) - -(define-method get_query_types - (of-object "GstElement") - (c-name "gst_element_get_query_types") - (return-type "const-GstQueryType*") -) - -(define-method query - (of-object "GstElement") - (c-name "gst_element_query") - (return-type "gboolean") - (parameters - '("GstQueryType" "type") - '("GstFormat*" "format") - '("gint64*" "value") - ) -) - -(define-method get_formats - (of-object "GstElement") - (c-name "gst_element_get_formats") - (return-type "const-GstFormat*") -) - -(define-method convert - (of-object "GstElement") - (c-name "gst_element_convert") - (return-type "gboolean") - (parameters - '("GstFormat" "src_format") - '("gint64" "src_value") - '("GstFormat*" "dest_format") - '("gint64*" "dest_value") - ) -) - -(define-method found_tags - (of-object "GstElement") - (c-name "gst_element_found_tags") - (return-type "none") - (parameters - '("const-GstTagList*" "tag_list") - ) -) - -(define-method found_tags_for_pad - (of-object "GstElement") - (c-name "gst_element_found_tags_for_pad") - (return-type "none") - (parameters - '("GstPad*" "pad") - '("GstClockTime" "timestamp") - '("GstTagList*" "list") - ) -) - -(define-method set_eos - (of-object "GstElement") - (c-name "gst_element_set_eos") - (return-type "none") -) - -(define-function _gst_element_error_printf - (c-name "_gst_element_error_printf") - (return-type "gchar*") - (parameters - '("const-gchar*" "format") - ) - (varargs #t) -) - -(define-method error_full - (of-object "GstElement") - (c-name "gst_element_error_full") - (return-type "none") - (parameters - '("GQuark" "domain") - '("gint" "code") - '("gchar*" "message") - '("gchar*" "debug") - '("const-gchar*" "file") - '("const-gchar*" "function") - '("gint" "line") - ) -) - -(define-method is_locked_state - (of-object "GstElement") - (c-name "gst_element_is_locked_state") - (return-type "gboolean") -) - -(define-method set_locked_state - (of-object "GstElement") - (c-name "gst_element_set_locked_state") - (return-type "none") - (parameters - '("gboolean" "locked_state") - ) -) - -(define-method sync_state_with_parent - (of-object "GstElement") - (c-name "gst_element_sync_state_with_parent") - (return-type "gboolean") -) - -(define-method get_state - (of-object "GstElement") - (c-name "gst_element_get_state") - (return-type "GstElementState") -) - -(define-method set_state - (of-object "GstElement") - (c-name "gst_element_set_state") - (return-type "GstElementStateReturn") - (parameters - '("GstElementState" "state") - ) -) - -(define-method wait_state_change - (of-object "GstElement") - (c-name "gst_element_wait_state_change") - (return-type "none") -) - -(define-method get_name - (of-object "GstElementState") - (c-name "gst_element_state_get_name") - (return-type "const-gchar*") -) - -(define-method get_factory - (of-object "GstElement") - (c-name "gst_element_get_factory") - (return-type "GstElementFactory*") -) - -(define-method get_managing_bin - (of-object "GstElement") - (c-name "gst_element_get_managing_bin") - (return-type "GstBin*") -) - -(define-function element_factory_get_type - (c-name "gst_element_factory_get_type") - (return-type "GType") -) - -(define-function element_register - (c-name "gst_element_register") - (return-type "gboolean") - (parameters - '("GstPlugin*" "plugin") - '("const-gchar*" "elementname") - '("guint" "rank") - '("GType" "type") - ) -) - -(define-function element_factory_find - (c-name "gst_element_factory_find") - (return-type "GstElementFactory*") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method get_element_type - (of-object "GstElementFactory") - (c-name "gst_element_factory_get_element_type") - (return-type "GType") -) - -(define-method get_longname - (of-object "GstElementFactory") - (c-name "gst_element_factory_get_longname") - (return-type "const-gchar*") -) - -(define-method get_klass - (of-object "GstElementFactory") - (c-name "gst_element_factory_get_klass") - (return-type "const-gchar*") -) - -(define-method get_description - (of-object "GstElementFactory") - (c-name "gst_element_factory_get_description") - (return-type "const-gchar*") -) - -(define-method get_author - (of-object "GstElementFactory") - (c-name "gst_element_factory_get_author") - (return-type "const-gchar*") -) - -(define-method get_num_pad_templates - (of-object "GstElementFactory") - (c-name "gst_element_factory_get_num_pad_templates") - (return-type "guint") -) - -(define-method get_pad_templates - (of-object "GstElementFactory") - (c-name "gst_element_factory_get_pad_templates") - (return-type "const-GList*") -) - -(define-method get_uri_type - (of-object "GstElementFactory") - (c-name "gst_element_factory_get_uri_type") - (return-type "guint") -) - -(define-method get_uri_protocols - (of-object "GstElementFactory") - (c-name "gst_element_factory_get_uri_protocols") - (return-type "gchar**") -) - -(define-method create - (of-object "GstElementFactory") - (c-name "gst_element_factory_create") - (return-type "GstElement*") - (parameters - '("const-gchar*" "name") - ) -) - -(define-function element_factory_make - (is-constructor-of "GstElement") - (c-name "gst_element_factory_make") - (return-type "GstElement*") - (parameters - '("const-gchar*" "factoryname") - '("const-gchar*" "name" (null-ok) (default "NULL")) - ) -) - -(define-method can_src_caps - (of-object "GstElementFactory") - (c-name "gst_element_factory_can_src_caps") - (return-type "gboolean") - (parameters - '("const-GstCaps*" "caps") - ) -) - -(define-method can_sink_caps - (of-object "GstElementFactory") - (c-name "gst_element_factory_can_sink_caps") - (return-type "gboolean") - (parameters - '("const-GstCaps*" "caps") - ) -) - -(define-method __add_pad_template - (of-object "GstElementFactory") - (c-name "__gst_element_factory_add_pad_template") - (return-type "none") - (parameters - '("GstPadTemplate*" "templ") - ) -) - -(define-method __add_interface - (of-object "GstElementFactory") - (c-name "__gst_element_factory_add_interface") - (return-type "none") - (parameters - '("const-gchar*" "interfacename") - ) -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstenumtypes.h - -(define-function object_flags_get_type - (c-name "gst_object_flags_get_type") - (return-type "GType") -) - -(define-function bin_flags_get_type - (c-name "gst_bin_flags_get_type") - (return-type "GType") -) - -(define-function buffer_flag_get_type - (c-name "gst_buffer_flag_get_type") - (return-type "GType") -) - -(define-function clock_entry_status_get_type - (c-name "gst_clock_entry_status_get_type") - (return-type "GType") -) - -(define-function clock_entry_type_get_type - (c-name "gst_clock_entry_type_get_type") - (return-type "GType") -) - -(define-function clock_return_get_type - (c-name "gst_clock_return_get_type") - (return-type "GType") -) - -(define-function clock_flags_get_type - (c-name "gst_clock_flags_get_type") - (return-type "GType") -) - -(define-function cpu_flags_get_type - (c-name "gst_cpu_flags_get_type") - (return-type "GType") -) - -(define-function data_flags_get_type - (c-name "gst_data_flags_get_type") - (return-type "GType") -) - -(define-function element_flags_get_type - (c-name "gst_element_flags_get_type") - (return-type "GType") -) - -(define-function core_error_get_type - (c-name "gst_core_error_get_type") - (return-type "GType") -) - -(define-function library_error_get_type - (c-name "gst_library_error_get_type") - (return-type "GType") -) - -(define-function resource_error_get_type - (c-name "gst_resource_error_get_type") - (return-type "GType") -) - -(define-function stream_error_get_type - (c-name "gst_stream_error_get_type") - (return-type "GType") -) - -(define-function event_type_get_type - (c-name "gst_event_type_get_type") - (return-type "GType") -) - -(define-function event_flag_get_type - (c-name "gst_event_flag_get_type") - (return-type "GType") -) - -(define-function seek_type_get_type - (c-name "gst_seek_type_get_type") - (return-type "GType") -) - -(define-function seek_accuracy_get_type - (c-name "gst_seek_accuracy_get_type") - (return-type "GType") -) - -(define-function format_get_type - (c-name "gst_format_get_type") - (return-type "GType") -) - -(define-function index_certainty_get_type - (c-name "gst_index_certainty_get_type") - (return-type "GType") -) - -(define-function index_entry_type_get_type - (c-name "gst_index_entry_type_get_type") - (return-type "GType") -) - -(define-function index_lookup_method_get_type - (c-name "gst_index_lookup_method_get_type") - (return-type "GType") -) - -(define-function assoc_flags_get_type - (c-name "gst_assoc_flags_get_type") - (return-type "GType") -) - -(define-function index_resolver_method_get_type - (c-name "gst_index_resolver_method_get_type") - (return-type "GType") -) - -(define-function index_flags_get_type - (c-name "gst_index_flags_get_type") - (return-type "GType") -) - -(define-function debug_level_get_type - (c-name "gst_debug_level_get_type") - (return-type "GType") -) - -(define-function debug_color_flags_get_type - (c-name "gst_debug_color_flags_get_type") - (return-type "GType") -) - -(define-function pad_link_return_get_type - (c-name "gst_pad_link_return_get_type") - (return-type "GType") -) - -(define-function pad_direction_get_type - (c-name "gst_pad_direction_get_type") - (return-type "GType") -) - -(define-function pad_flags_get_type - (c-name "gst_pad_flags_get_type") - (return-type "GType") -) - -(define-function pad_presence_get_type - (c-name "gst_pad_presence_get_type") - (return-type "GType") -) - -(define-function pad_template_flags_get_type - (c-name "gst_pad_template_flags_get_type") - (return-type "GType") -) - -(define-function plugin_error_get_type - (c-name "gst_plugin_error_get_type") - (return-type "GType") -) - -(define-function query_type_get_type - (c-name "gst_query_type_get_type") - (return-type "GType") -) - -(define-function scheduler_flags_get_type - (c-name "gst_scheduler_flags_get_type") - (return-type "GType") -) - -(define-function scheduler_state_get_type - (c-name "gst_scheduler_state_get_type") - (return-type "GType") -) - -(define-function tag_merge_mode_get_type - (c-name "gst_tag_merge_mode_get_type") - (return-type "GType") -) - -(define-function tag_flag_get_type - (c-name "gst_tag_flag_get_type") - (return-type "GType") -) - -(define-function thread_state_get_type - (c-name "gst_thread_state_get_type") - (return-type "GType") -) - -(define-function alloc_trace_flags_get_type - (c-name "gst_alloc_trace_flags_get_type") - (return-type "GType") -) - -(define-function type_find_probability_get_type - (c-name "gst_type_find_probability_get_type") - (return-type "GType") -) - -(define-function element_state_get_type - (c-name "gst_element_state_get_type") - (return-type "GType") -) - -(define-function element_state_return_get_type - (c-name "gst_element_state_return_get_type") - (return-type "GType") -) - -(define-function result_get_type - (c-name "gst_result_get_type") - (return-type "GType") -) - -(define-function uri_type_get_type - (c-name "gst_uri_type_get_type") - (return-type "GType") -) - -(define-function registry_return_get_type - (c-name "gst_registry_return_get_type") - (return-type "GType") -) - -(define-function registry_flags_get_type - (c-name "gst_registry_flags_get_type") - (return-type "GType") -) - -(define-function parse_error_get_type - (c-name "gst_parse_error_get_type") - (return-type "GType") -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gsterror.h - -(define-function core_error_quark - (c-name "gst_core_error_quark") - (return-type "GQuark") -) - -(define-function library_error_quark - (c-name "gst_library_error_quark") - (return-type "GQuark") -) - -(define-function resource_error_quark - (c-name "gst_resource_error_quark") - (return-type "GQuark") -) - -(define-function stream_error_quark - (c-name "gst_stream_error_quark") - (return-type "GQuark") -) - -(define-function error_get_message - (c-name "gst_error_get_message") - (return-type "gchar*") - (parameters - '("GQuark" "domain") - '("gint" "code") - ) -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstevent.h - -(define-function _gst_event_initialize - (c-name "_gst_event_initialize") - (return-type "none") -) - -(define-function event_get_type - (c-name "gst_event_get_type") - (return-type "GType") -) - -(define-function event_new - (c-name "gst_event_new") - (is-constructor-of "GstEvent") - (return-type "GstEvent*") - (parameters - '("GstEventType" "type") - ) -) - -(define-method s_contains - (of-object "GstEventMask") - (c-name "gst_event_masks_contains") - (return-type "gboolean") - (parameters - '("GstEventMask*" "mask") - ) -) - -(define-function event_new_seek - (c-name "gst_event_new_seek") - (return-type "GstEvent*") - (parameters - '("GstSeekType" "type") - '("gint64" "offset") - ) -) - -(define-function event_new_segment_seek - (c-name "gst_event_new_segment_seek") - (return-type "GstEvent*") - (parameters - '("GstSeekType" "type") - '("gint64" "start") - '("gint64" "stop") - ) -) - -(define-function event_new_size - (c-name "gst_event_new_size") - (return-type "GstEvent*") - (parameters - '("GstFormat" "format") - '("gint64" "value") - ) -) - -(define-function event_new_discontinuous - (c-name "gst_event_new_discontinuous") - (return-type "GstEvent*") - (parameters - '("gboolean" "new_media") - '("GstFormat" "format1") - ) - (varargs #t) -) - -(define-function event_new_discontinuous_valist - (c-name "gst_event_new_discontinuous_valist") - (return-type "GstEvent*") - (parameters - '("gboolean" "new_media") - '("GstFormat" "format1") - '("va_list" "var_args") - ) -) - -(define-method discont_get_value - (of-object "GstEvent") - (c-name "gst_event_discont_get_value") - (return-type "gboolean") - (parameters - '("GstFormat" "format") - '("gint64*" "value") - ) -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstfilter.h - -(define-function filter_run - (c-name "gst_filter_run") - (return-type "GList*") - (parameters - '("const-GList*" "list") - '("GstFilterFunc" "func") - '("gboolean" "first") - '("gpointer" "user_data") - ) -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstformat.h - -(define-function _gst_format_initialize - (c-name "_gst_format_initialize") - (return-type "none") -) - -(define-function format_register - (c-name "gst_format_register") - (return-type "GstFormat") - (parameters - '("const-gchar*" "nick") - '("const-gchar*" "description") - ) -) - -(define-function format_get_by_nick - (c-name "gst_format_get_by_nick") - (return-type "GstFormat") - (parameters - '("const-gchar*" "nick") - ) -) - -(define-method s_contains - (of-object "GstFormat") - (c-name "gst_formats_contains") - (return-type "gboolean") - (parameters - '("GstFormat" "format") - ) -) - -(define-method get_details - (of-object "GstFormat") - (c-name "gst_format_get_details") - (return-type "const-GstFormatDefinition*") -) - -(define-function format_get_definitions - (c-name "gst_format_get_definitions") - (return-type "const-GList*") -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gst.h - -(define-function init - (c-name "gst_init") - (return-type "none") - (parameters - '("int*" "argc") - '("char**[]" "argv") - ) -) - -(define-function init_check - (c-name "gst_init_check") - (return-type "gboolean") - (parameters - '("int*" "argc") - '("char**[]" "argv") - ) -) - -(define-function init_with_popt_table - (c-name "gst_init_with_popt_table") - (return-type "none") - (parameters - '("int*" "argc") - '("char**[]" "argv") - '("const-GstPoptOption*" "popt_options") - ) -) - -(define-function init_check_with_popt_table - (c-name "gst_init_check_with_popt_table") - (return-type "gboolean") - (parameters - '("int*" "argc") - '("char**[]" "argv") - '("const-GstPoptOption*" "popt_options") - ) -) - -(define-function init_get_popt_table - (c-name "gst_init_get_popt_table") - (return-type "const-GstPoptOption*") -) - -(define-function use_threads - (c-name "gst_use_threads") - (return-type "none") - (parameters - '("gboolean" "use_threads") - ) -) - -(define-function has_threads - (c-name "gst_has_threads") - (return-type "gboolean") -) - -(define-function main - (c-name "gst_main") - (return-type "none") -) - -(define-function main_quit - (c-name "gst_main_quit") - (return-type "none") -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstindex.h - -(define-function index_get_type - (c-name "gst_index_get_type") - (return-type "GType") -) - -(define-function index_new - (c-name "gst_index_new") - (is-constructor-of "GstIndex") - (return-type "GstIndex*") -) - -(define-method commit - (of-object "GstIndex") - (c-name "gst_index_commit") - (return-type "none") - (parameters - '("gint" "id") - ) -) - -(define-method get_group - (of-object "GstIndex") - (c-name "gst_index_get_group") - (return-type "gint") -) - -(define-method new_group - (of-object "GstIndex") - (c-name "gst_index_new_group") - (return-type "gint") -) - -(define-method set_group - (of-object "GstIndex") - (c-name "gst_index_set_group") - (return-type "gboolean") - (parameters - '("gint" "groupnum") - ) -) - -(define-method set_certainty - (of-object "GstIndex") - (c-name "gst_index_set_certainty") - (return-type "none") - (parameters - '("GstIndexCertainty" "certainty") - ) -) - -(define-method get_certainty - (of-object "GstIndex") - (c-name "gst_index_get_certainty") - (return-type "GstIndexCertainty") -) - -(define-method set_filter - (of-object "GstIndex") - (c-name "gst_index_set_filter") - (return-type "none") - (parameters - '("GstIndexFilter" "filter") - '("gpointer" "user_data") - ) -) - -(define-method set_resolver - (of-object "GstIndex") - (c-name "gst_index_set_resolver") - (return-type "none") - (parameters - '("GstIndexResolver" "resolver") - '("gpointer" "user_data") - ) -) - -(define-method get_writer_id - (of-object "GstIndex") - (c-name "gst_index_get_writer_id") - (return-type "gboolean") - (parameters - '("GstObject*" "writer") - '("gint*" "id") - ) -) - -(define-method add_format - (of-object "GstIndex") - (c-name "gst_index_add_format") - (return-type "GstIndexEntry*") - (parameters - '("gint" "id") - '("GstFormat" "format") - ) -) - -(define-method add_association - (of-object "GstIndex") - (c-name "gst_index_add_association") - (return-type "GstIndexEntry*") - (parameters - '("gint" "id") - '("GstAssocFlags" "flags") - '("GstFormat" "format") - '("gint64" "value") - ) - (varargs #t) -) - -(define-method add_object - (of-object "GstIndex") - (c-name "gst_index_add_object") - (return-type "GstIndexEntry*") - (parameters - '("gint" "id") - '("gchar*" "key") - '("GType" "type") - '("gpointer" "object") - ) -) - -(define-method add_id - (of-object "GstIndex") - (c-name "gst_index_add_id") - (return-type "GstIndexEntry*") - (parameters - '("gint" "id") - '("gchar*" "description") - ) -) - -(define-method get_assoc_entry - (of-object "GstIndex") - (c-name "gst_index_get_assoc_entry") - (return-type "GstIndexEntry*") - (parameters - '("gint" "id") - '("GstIndexLookupMethod" "method") - '("GstAssocFlags" "flags") - '("GstFormat" "format") - '("gint64" "value") - ) -) - -(define-method get_assoc_entry_full - (of-object "GstIndex") - (c-name "gst_index_get_assoc_entry_full") - (return-type "GstIndexEntry*") - (parameters - '("gint" "id") - '("GstIndexLookupMethod" "method") - '("GstAssocFlags" "flags") - '("GstFormat" "format") - '("gint64" "value") - '("GCompareDataFunc" "func") - '("gpointer" "user_data") - ) -) - -(define-function index_entry_get_type - (c-name "gst_index_entry_get_type") - (return-type "GType") -) - -(define-method copy - (of-object "GstIndexEntry") - (c-name "gst_index_entry_copy") - (return-type "GstIndexEntry*") -) - -(define-method free - (of-object "GstIndexEntry") - (c-name "gst_index_entry_free") - (return-type "none") -) - -(define-method assoc_map - (of-object "GstIndexEntry") - (c-name "gst_index_entry_assoc_map") - (return-type "gboolean") - (parameters - '("GstFormat" "format") - '("gint64*" "value") - ) -) - -(define-function index_factory_get_type - (c-name "gst_index_factory_get_type") - (return-type "GType") -) - -(define-function index_factory_new - (c-name "gst_index_factory_new") - (is-constructor-of "GstIndexFactory") - (return-type "GstIndexFactory*") - (parameters - '("const-gchar*" "name") - '("const-gchar*" "longdesc") - '("GType" "type") - ) -) - -(define-method destroy - (of-object "GstIndexFactory") - (c-name "gst_index_factory_destroy") - (return-type "none") -) - -(define-function index_factory_find - (c-name "gst_index_factory_find") - (return-type "GstIndexFactory*") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method create - (of-object "GstIndexFactory") - (c-name "gst_index_factory_create") - (return-type "GstIndex*") -) - -(define-function index_factory_make - (c-name "gst_index_factory_make") - (return-type "GstIndex*") - (parameters - '("const-gchar*" "name") - ) -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstinfo.h - -(define-function _gst_debug_init - (c-name "_gst_debug_init") - (return-type "none") -) - -(define-function debug_log - (c-name "gst_debug_log") - (return-type "none") - (parameters - '("GstDebugCategory*" "category") - '("GstDebugLevel" "level") - '("const-gchar*" "file") - '("const-gchar*" "function") - '("gint" "line") - '("GObject*" "object") - '("const-gchar*" "format") - ) - (varargs #t) -) - -(define-function debug_log_valist - (c-name "gst_debug_log_valist") - (return-type "none") - (parameters - '("GstDebugCategory*" "category") - '("GstDebugLevel" "level") - '("const-gchar*" "file") - '("const-gchar*" "function") - '("gint" "line") - '("GObject*" "object") - '("const-gchar*" "format") - '("va_list" "args") - ) -) - -(define-method get - (of-object "GstDebugMessage") - (c-name "gst_debug_message_get") - (return-type "const-gchar*") -) - -(define-function debug_log_default - (c-name "gst_debug_log_default") - (return-type "none") - (parameters - '("GstDebugCategory*" "category") - '("GstDebugLevel" "level") - '("const-gchar*" "file") - '("const-gchar*" "function") - '("gint" "line") - '("GObject*" "object") - '("GstDebugMessage*" "message") - '("gpointer" "unused") - ) -) - -(define-method get_name - (of-object "GstDebugLevel") - (c-name "gst_debug_level_get_name") - (return-type "const-gchar*") -) - -(define-function debug_add_log_function - (c-name "gst_debug_add_log_function") - (return-type "none") - (parameters - '("GstLogFunction" "func") - '("gpointer" "data") - ) -) - -(define-function debug_remove_log_function - (c-name "gst_debug_remove_log_function") - (return-type "guint") - (parameters - '("GstLogFunction" "func") - ) -) - -(define-function debug_remove_log_function_by_data - (c-name "gst_debug_remove_log_function_by_data") - (return-type "guint") - (parameters - '("gpointer" "data") - ) -) - -(define-function debug_set_active - (c-name "gst_debug_set_active") - (return-type "none") - (parameters - '("gboolean" "active") - ) -) - -(define-function debug_is_active - (c-name "gst_debug_is_active") - (return-type "gboolean") -) - -(define-function debug_set_colored - (c-name "gst_debug_set_colored") - (return-type "none") - (parameters - '("gboolean" "colored") - ) -) - -(define-function debug_is_colored - (c-name "gst_debug_is_colored") - (return-type "gboolean") -) - -(define-function debug_set_default_threshold - (c-name "gst_debug_set_default_threshold") - (return-type "none") - (parameters - '("GstDebugLevel" "level") - ) -) - -(define-function debug_get_default_threshold - (c-name "gst_debug_get_default_threshold") - (return-type "GstDebugLevel") -) - -(define-function debug_set_threshold_for_name - (c-name "gst_debug_set_threshold_for_name") - (return-type "none") - (parameters - '("const-gchar*" "name") - '("GstDebugLevel" "level") - ) -) - -(define-function debug_unset_threshold_for_name - (c-name "gst_debug_unset_threshold_for_name") - (return-type "none") - (parameters - '("const-gchar*" "name") - ) -) - -(define-function _gst_debug_category_new - (c-name "_gst_debug_category_new") - (is-constructor-of "GstDebugCategory") - (return-type "GstDebugCategory*") - (parameters - '("gchar*" "name") - '("guint" "color") - '("gchar*" "description") - ) -) - -(define-method free - (of-object "GstDebugCategory") - (c-name "gst_debug_category_free") - (return-type "none") -) - -(define-method set_threshold - (of-object "GstDebugCategory") - (c-name "gst_debug_category_set_threshold") - (return-type "none") - (parameters - '("GstDebugLevel" "level") - ) -) - -(define-method reset_threshold - (of-object "GstDebugCategory") - (c-name "gst_debug_category_reset_threshold") - (return-type "none") -) - -(define-method get_threshold - (of-object "GstDebugCategory") - (c-name "gst_debug_category_get_threshold") - (return-type "GstDebugLevel") -) - -(define-method get_name - (of-object "GstDebugCategory") - (c-name "gst_debug_category_get_name") - (return-type "const-gchar*") -) - -(define-method get_color - (of-object "GstDebugCategory") - (c-name "gst_debug_category_get_color") - (return-type "guint") -) - -(define-method get_description - (of-object "GstDebugCategory") - (c-name "gst_debug_category_get_description") - (return-type "const-gchar*") -) - -(define-function debug_get_all_categories - (c-name "gst_debug_get_all_categories") - (return-type "GSList*") -) - -(define-function debug_construct_term_color - (c-name "gst_debug_construct_term_color") - (return-type "gchar*") - (parameters - '("guint" "colorinfo") - ) -) - -(define-function _gst_debug_register_funcptr - (c-name "_gst_debug_register_funcptr") - (return-type "void*") - (parameters - '("void*" "ptr") - '("gchar*" "ptrname") - ) -) - -(define-function _gst_debug_nameof_funcptr - (c-name "_gst_debug_nameof_funcptr") - (return-type "const-gchar*") - (parameters - '("void*" "ptr") - ) -) - -(define-function debug_print_stack_trace - (c-name "gst_debug_print_stack_trace") - (return-type "none") -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstinterface.h - -(define-function implements_interface_get_type - (c-name "gst_implements_interface_get_type") - (return-type "GType") -) - -(define-method implements_interface - (of-object "GstElement") - (c-name "gst_element_implements_interface") - (return-type "gboolean") - (parameters - '("GType" "iface_type") - ) -) - -(define-function implements_interface_cast - (c-name "gst_implements_interface_cast") - (return-type "gpointer") - (parameters - '("gpointer" "from") - '("GType" "type") - ) -) - -(define-function implements_interface_check - (c-name "gst_implements_interface_check") - (return-type "gboolean") - (parameters - '("gpointer" "from") - '("GType" "type") - ) -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstlog.h - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstmacros.h - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstmarshal.h - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstmemchunk.h - -(define-function mem_chunk_new - (c-name "gst_mem_chunk_new") - (is-constructor-of "GstMemChunk") - (return-type "GstMemChunk*") - (parameters - '("gchar*" "name") - '("gint" "atom_size") - '("gulong" "area_size") - '("gint" "type") - ) -) - -(define-method destroy - (of-object "GstMemChunk") - (c-name "gst_mem_chunk_destroy") - (return-type "none") -) - -(define-method alloc - (of-object "GstMemChunk") - (c-name "gst_mem_chunk_alloc") - (return-type "gpointer") -) - -(define-method alloc0 - (of-object "GstMemChunk") - (c-name "gst_mem_chunk_alloc0") - (return-type "gpointer") -) - -(define-method free - (of-object "GstMemChunk") - (c-name "gst_mem_chunk_free") - (return-type "none") - (parameters - '("gpointer" "mem") - ) -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstobject.h - -(define-function object_get_type - (c-name "gst_object_get_type") - (return-type "GType") -) - -(define-method set_name - (of-object "GstObject") - (c-name "gst_object_set_name") - (return-type "none") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method get_name - (of-object "GstObject") - (c-name "gst_object_get_name") - (return-type "const-gchar*") -) - -(define-method set_parent - (of-object "GstObject") - (c-name "gst_object_set_parent") - (return-type "none") - (parameters - '("GstObject*" "parent") - ) -) - -(define-method get_parent - (of-object "GstObject") - (c-name "gst_object_get_parent") - (return-type "GstObject*") -) - -(define-method unparent - (of-object "GstObject") - (c-name "gst_object_unparent") - (return-type "none") -) - -(define-function object_default_deep_notify - (c-name "gst_object_default_deep_notify") - (return-type "none") - (parameters - '("GObject*" "object") - '("GstObject*" "orig") - '("GParamSpec*" "pspec") - '("gchar**" "excluded_props") - ) -) - -(define-function object_check_uniqueness - (c-name "gst_object_check_uniqueness") - (return-type "gboolean") - (parameters - '("GList*" "list") - '("const-gchar*" "name") - ) -) - -(define-method save_thyself - (of-object "GstObject") - (c-name "gst_object_save_thyself") - (return-type "xmlNodePtr") - (parameters - '("xmlNodePtr" "parent") - ) -) - -(define-method restore_thyself - (of-object "GstObject") - (c-name "gst_object_restore_thyself") - (return-type "none") - (parameters - '("xmlNodePtr" "self") - ) -) - -(define-method ref - (of-object "GstObject") - (c-name "gst_object_ref") - (return-type "GstObject*") -) - -(define-method unref - (of-object "GstObject") - (c-name "gst_object_unref") - (return-type "none") -) - -(define-method sink - (of-object "GstObject") - (c-name "gst_object_sink") - (return-type "none") -) - -(define-function object_replace - (c-name "gst_object_replace") - (return-type "none") - (parameters - '("GstObject**" "oldobj") - '("GstObject*" "newobj") - ) -) - -(define-method get_path_string - (of-object "GstObject") - (c-name "gst_object_get_path_string") - (return-type "gchar*") -) - -(define-function class_signal_connect - (c-name "gst_class_signal_connect") - (return-type "guint") - (parameters - '("GstObjectClass*" "klass") - '("const-gchar*" "name") - '("gpointer" "func") - '("gpointer" "func_data") - ) -) - -(define-function class_signal_emit_by_name - (c-name "gst_class_signal_emit_by_name") - (return-type "none") - (parameters - '("GstObject*" "object") - '("const-gchar*" "name") - '("xmlNodePtr" "self") - ) -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstpad.h - -(define-function pad_get_type - (c-name "gst_pad_get_type") - (return-type "GType") -) - -(define-function real_pad_get_type - (c-name "gst_real_pad_get_type") - (return-type "GType") -) - -(define-function ghost_pad_get_type - (c-name "gst_ghost_pad_get_type") - (return-type "GType") -) - -(define-function pad_new - (c-name "gst_pad_new") - (is-constructor-of "GstPad") - (return-type "GstPad*") - (parameters - '("const-gchar*" "name") - '("GstPadDirection" "direction") - ) -) - -(define-function pad_new_from_template - (c-name "gst_pad_new_from_template") - (return-type "GstPad*") - (parameters - '("GstPadTemplate*" "templ") - '("const-gchar*" "name") - ) -) - -(define-function pad_custom_new - (c-name "gst_pad_custom_new") - (is-constructor-of "GstPadCustom") - (return-type "GstPad*") - (parameters - '("GType" "type") - '("const-gchar*" "name") - '("GstPadDirection" "direction") - ) -) - -(define-function pad_custom_new_from_template - (c-name "gst_pad_custom_new_from_template") - (return-type "GstPad*") - (parameters - '("GType" "type") - '("GstPadTemplate*" "templ") - '("const-gchar*" "name") - ) -) - -(define-method set_name - (of-object "GstPad") - (c-name "gst_pad_set_name") - (return-type "none") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method get_name - (of-object "GstPad") - (c-name "gst_pad_get_name") - (return-type "const-gchar*") -) - -(define-method get_direction - (of-object "GstPad") - (c-name "gst_pad_get_direction") - (return-type "GstPadDirection") -) - -(define-method set_active - (of-object "GstPad") - (c-name "gst_pad_set_active") - (return-type "none") - (parameters - '("gboolean" "active") - ) -) - -(define-method is_active - (of-object "GstPad") - (c-name "gst_pad_is_active") - (return-type "gboolean") -) - -(define-method set_element_private - (of-object "GstPad") - (c-name "gst_pad_set_element_private") - (return-type "none") - (parameters - '("gpointer" "priv") - ) -) - -(define-method get_element_private - (of-object "GstPad") - (c-name "gst_pad_get_element_private") - (return-type "gpointer") -) - -(define-method set_parent - (of-object "GstPad") - (c-name "gst_pad_set_parent") - (return-type "none") - (parameters - '("GstElement*" "parent") - ) -) - -(define-method get_parent - (of-object "GstPad") - (c-name "gst_pad_get_parent") - (return-type "GstElement*") -) - -(define-method get_real_parent - (of-object "GstPad") - (c-name "gst_pad_get_real_parent") - (return-type "GstElement*") -) - -(define-method get_scheduler - (of-object "GstPad") - (c-name "gst_pad_get_scheduler") - (return-type "GstScheduler*") -) - -(define-method add_ghost_pad - (of-object "GstPad") - (c-name "gst_pad_add_ghost_pad") - (return-type "none") - (parameters - '("GstPad*" "ghostpad") - ) -) - -(define-method remove_ghost_pad - (of-object "GstPad") - (c-name "gst_pad_remove_ghost_pad") - (return-type "none") - (parameters - '("GstPad*" "ghostpad") - ) -) - -(define-method get_ghost_pad_list - (of-object "GstPad") - (c-name "gst_pad_get_ghost_pad_list") - (return-type "GList*") -) - -(define-method get_pad_template - (of-object "GstPad") - (c-name "gst_pad_get_pad_template") - (return-type "GstPadTemplate*") -) - -(define-method set_bufferalloc_function - (of-object "GstPad") - (c-name "gst_pad_set_bufferalloc_function") - (return-type "none") - (parameters - '("GstPadBufferAllocFunction" "bufferalloc") - ) -) - -(define-method alloc_buffer - (of-object "GstPad") - (c-name "gst_pad_alloc_buffer") - (return-type "GstBuffer*") - (parameters - '("guint64" "offset") - '("gint" "size") - ) -) - -(define-method set_chain_function - (of-object "GstPad") - (c-name "gst_pad_set_chain_function") - (return-type "none") - (parameters - '("GstPadChainFunction" "chain") - ) -) - -(define-method set_get_function - (of-object "GstPad") - (c-name "gst_pad_set_get_function") - (return-type "none") - (parameters - '("GstPadGetFunction" "get") - ) -) - -(define-method set_event_function - (of-object "GstPad") - (c-name "gst_pad_set_event_function") - (return-type "none") - (parameters - '("GstPadEventFunction" "event") - ) -) - -(define-method set_event_mask_function - (of-object "GstPad") - (c-name "gst_pad_set_event_mask_function") - (return-type "none") - (parameters - '("GstPadEventMaskFunction" "mask_func") - ) -) - -(define-method get_event_masks - (of-object "GstPad") - (c-name "gst_pad_get_event_masks") - (return-type "const-GstEventMask*") -) - -(define-method get_event_masks_default - (of-object "GstPad") - (c-name "gst_pad_get_event_masks_default") - (return-type "const-GstEventMask*") -) - -(define-method set_link_function - (of-object "GstPad") - (c-name "gst_pad_set_link_function") - (return-type "none") - (parameters - '("GstPadLinkFunction" "link") - ) -) - -(define-method can_link - (of-object "GstPad") - (c-name "gst_pad_can_link") - (return-type "gboolean") - (parameters - '("GstPad*" "sinkpad") - ) -) - -(define-method can_link_filtered - (of-object "GstPad") - (c-name "gst_pad_can_link_filtered") - (return-type "gboolean") - (parameters - '("GstPad*" "sinkpad") - '("const-GstCaps*" "filtercaps") - ) -) - -(define-method set_unlink_function - (of-object "GstPad") - (c-name "gst_pad_set_unlink_function") - (return-type "none") - (parameters - '("GstPadUnlinkFunction" "unlink") - ) -) - -(define-method link - (of-object "GstPad") - (c-name "gst_pad_link") - (return-type "gboolean") - (parameters - '("GstPad*" "sinkpad") - ) -) - -(define-method link_filtered - (of-object "GstPad") - (c-name "gst_pad_link_filtered") - (return-type "gboolean") - (parameters - '("GstPad*" "sinkpad") - '("const-GstCaps*" "filtercaps") - ) -) - -(define-method unlink - (of-object "GstPad") - (c-name "gst_pad_unlink") - (return-type "none") - (parameters - '("GstPad*" "sinkpad") - ) -) - -(define-method is_linked - (of-object "GstPad") - (c-name "gst_pad_is_linked") - (return-type "gboolean") -) - -(define-method get_peer - (of-object "GstPad") - (c-name "gst_pad_get_peer") - (return-type "GstPad*") -) - -(define-method get_negotiated_caps - (of-object "GstPad") - (c-name "gst_pad_get_negotiated_caps") - (return-type "const-GstCaps*") -) - -(define-method is_negotiated - (of-object "GstPad") - (c-name "gst_pad_is_negotiated") - (return-type "gboolean") -) - -(define-method get_caps - (of-object "GstPad") - (c-name "gst_pad_get_caps") - (return-type "GstCaps*") -) - -(define-method get_pad_template_caps - (of-object "GstPad") - (c-name "gst_pad_get_pad_template_caps") - (return-type "const-GstCaps*") -) - -(define-method try_set_caps - (of-object "GstPad") - (c-name "gst_pad_try_set_caps") - (return-type "GstPadLinkReturn") - (parameters - '("const-GstCaps*" "caps") - ) -) - -(define-method try_set_caps_nonfixed - (of-object "GstPad") - (c-name "gst_pad_try_set_caps_nonfixed") - (return-type "GstPadLinkReturn") - (parameters - '("const-GstCaps*" "caps") - ) -) - -(define-method check_compatibility - (of-object "GstPad") - (c-name "gst_pad_check_compatibility") - (return-type "gboolean") - (parameters - '("GstPad*" "sinkpad") - ) -) - -(define-method set_getcaps_function - (of-object "GstPad") - (c-name "gst_pad_set_getcaps_function") - (return-type "none") - (parameters - '("GstPadGetCapsFunction" "getcaps") - ) -) - -(define-method set_fixate_function - (of-object "GstPad") - (c-name "gst_pad_set_fixate_function") - (return-type "none") - (parameters - '("GstPadFixateFunction" "fixate") - ) -) - -(define-method proxy_getcaps - (of-object "GstPad") - (c-name "gst_pad_proxy_getcaps") - (return-type "GstCaps*") -) - -(define-method proxy_pad_link - (of-object "GstPad") - (c-name "gst_pad_proxy_pad_link") - (return-type "GstPadLinkReturn") - (parameters - '("const-GstCaps*" "caps") - ) -) - -(define-method proxy_fixate - (of-object "GstPad") - (c-name "gst_pad_proxy_fixate") - (return-type "GstCaps*") - (parameters - '("const-GstCaps*" "caps") - ) -) - -(define-method proxy_link - (of-object "GstPad") - (c-name "gst_pad_proxy_link") - (return-type "GstPadLinkReturn") - (parameters - '("const-GstCaps*" "caps") - ) -) - -(define-method set_explicit_caps - (of-object "GstPad") - (c-name "gst_pad_set_explicit_caps") - (return-type "gboolean") - (parameters - '("const-GstCaps*" "caps") - ) -) - -(define-method use_explicit_caps - (of-object "GstPad") - (c-name "gst_pad_use_explicit_caps") - (return-type "none") -) - -(define-method relink_filtered - (of-object "GstPad") - (c-name "gst_pad_relink_filtered") - (return-type "gboolean") - (parameters - '("GstPad*" "sinkpad") - '("const-GstCaps*" "filtercaps") - ) -) - -(define-method perform_negotiate - (of-object "GstPad") - (c-name "gst_pad_perform_negotiate") - (return-type "gboolean") - (parameters - '("GstPad*" "sinkpad") - ) -) - -(define-method renegotiate - (of-object "GstPad") - (c-name "gst_pad_renegotiate") - (return-type "GstPadLinkReturn") -) - -(define-method unnegotiate - (of-object "GstPad") - (c-name "gst_pad_unnegotiate") - (return-type "none") -) - -(define-method try_relink_filtered - (of-object "GstPad") - (c-name "gst_pad_try_relink_filtered") - (return-type "gboolean") - (parameters - '("GstPad*" "sinkpad") - '("const-GstCaps*" "filtercaps") - ) -) - -(define-method get_allowed_caps - (of-object "GstPad") - (c-name "gst_pad_get_allowed_caps") - (return-type "GstCaps*") -) - -(define-method caps_change_notify - (of-object "GstPad") - (c-name "gst_pad_caps_change_notify") - (return-type "none") -) - -(define-method recover_caps_error - (of-object "GstPad") - (c-name "gst_pad_recover_caps_error") - (return-type "gboolean") - (parameters - '("const-GstCaps*" "allowed") - ) -) - -(define-method push - (of-object "GstPad") - (c-name "gst_pad_push") - (return-type "none") - (parameters - '("GstData*" "data") - ) -) - -(define-method pull - (of-object "GstPad") - (c-name "gst_pad_pull") - (return-type "GstData*") -) - -(define-method send_event - (of-object "GstPad") - (c-name "gst_pad_send_event") - (return-type "gboolean") - (parameters - '("GstEvent*" "event") - ) -) - -(define-method event_default - (of-object "GstPad") - (c-name "gst_pad_event_default") - (return-type "gboolean") - (parameters - '("GstEvent*" "event") - ) -) - -(define-function pad_selectv - (c-name "gst_pad_selectv") - (return-type "GstPad*") - (parameters - '("GList*" "padlist") - ) -) - -(define-method select - (of-object "GstPad") - (c-name "gst_pad_select") - (return-type "GstPad*") - (parameters - ) - (varargs #t) -) - -(define-method select_valist - (of-object "GstPad") - (c-name "gst_pad_select_valist") - (return-type "GstPad*") - (parameters - '("va_list" "varargs") - ) -) - -(define-method set_formats_function - (of-object "GstPad") - (c-name "gst_pad_set_formats_function") - (return-type "none") - (parameters - '("GstPadFormatsFunction" "formats") - ) -) - -(define-method get_formats - (of-object "GstPad") - (c-name "gst_pad_get_formats") - (return-type "const-GstFormat*") -) - -(define-method get_formats_default - (of-object "GstPad") - (c-name "gst_pad_get_formats_default") - (return-type "const-GstFormat*") -) - -(define-method set_convert_function - (of-object "GstPad") - (c-name "gst_pad_set_convert_function") - (return-type "none") - (parameters - '("GstPadConvertFunction" "convert") - ) -) - -(define-method convert - (of-object "GstPad") - (c-name "gst_pad_convert") - (return-type "gboolean") - (parameters - '("GstFormat" "src_format") - '("gint64" "src_value") - '("GstFormat*" "dest_format") - '("gint64*" "dest_value") - ) -) - -(define-method convert_default - (of-object "GstPad") - (c-name "gst_pad_convert_default") - (return-type "gboolean") - (parameters - '("GstFormat" "src_format") - '("gint64" "src_value") - '("GstFormat*" "dest_format") - '("gint64*" "dest_value") - ) -) - -(define-method set_query_function - (of-object "GstPad") - (c-name "gst_pad_set_query_function") - (return-type "none") - (parameters - '("GstPadQueryFunction" "query") - ) -) - -(define-method set_query_type_function - (of-object "GstPad") - (c-name "gst_pad_set_query_type_function") - (return-type "none") - (parameters - '("GstPadQueryTypeFunction" "type_func") - ) -) - -(define-method get_query_types - (of-object "GstPad") - (c-name "gst_pad_get_query_types") - (return-type "const-GstQueryType*") -) - -(define-method get_query_types_default - (of-object "GstPad") - (c-name "gst_pad_get_query_types_default") - (return-type "const-GstQueryType*") -) - -(define-method query - (of-object "GstPad") - (c-name "gst_pad_query") - (return-type "gboolean") - (parameters - '("GstQueryType" "type") - '("GstFormat*" "format") - '("gint64*" "value") - ) -) - -(define-method query_default - (of-object "GstPad") - (c-name "gst_pad_query_default") - (return-type "gboolean") - (parameters - '("GstQueryType" "type") - '("GstFormat*" "format") - '("gint64*" "value") - ) -) - -(define-method set_internal_link_function - (of-object "GstPad") - (c-name "gst_pad_set_internal_link_function") - (return-type "none") - (parameters - '("GstPadIntLinkFunction" "intlink") - ) -) - -(define-method get_internal_links - (of-object "GstPad") - (c-name "gst_pad_get_internal_links") - (return-type "GList*") -) - -(define-method get_internal_links_default - (of-object "GstPad") - (c-name "gst_pad_get_internal_links_default") - (return-type "GList*") -) - -(define-method dispatcher - (of-object "GstPad") - (c-name "gst_pad_dispatcher") - (return-type "gboolean") - (parameters - '("GstPadDispatcherFunction" "dispatch") - '("gpointer" "data") - ) -) - -(define-function pad_load_and_link - (c-name "gst_pad_load_and_link") - (return-type "none") - (parameters - '("xmlNodePtr" "self") - '("GstObject*" "parent") - ) -) - -(define-function ghost_pad_new - (c-name "gst_ghost_pad_new") - (is-constructor-of "GstGhostPad") - (return-type "GstPad*") - (parameters - '("const-gchar*" "name") - '("GstPad*" "pad") - ) -) - -(define-function pad_template_get_type - (c-name "gst_pad_template_get_type") - (return-type "GType") -) - -(define-function pad_template_new - (c-name "gst_pad_template_new") - (is-constructor-of "GstPadTemplate") - (return-type "GstPadTemplate*") - (parameters - '("const-gchar*" "name_template") - '("GstPadDirection" "direction") - '("GstPadPresence" "presence") - '("GstCaps*" "caps") - ) -) - -(define-method get - (of-object "GstStaticPadTemplate") - (c-name "gst_static_pad_template_get") - (return-type "GstPadTemplate*") -) - -(define-method get_caps - (of-object "GstPadTemplate") - (c-name "gst_pad_template_get_caps") - (return-type "const-GstCaps*") -) - -(define-method get_caps_by_name - (of-object "GstPadTemplate") - (c-name "gst_pad_template_get_caps_by_name") - (return-type "const-GstCaps*") - (parameters - '("const-gchar*" "name") - ) -) - -(define-function ghost_pad_save_thyself - (c-name "gst_ghost_pad_save_thyself") - (return-type "xmlNodePtr") - (parameters - '("GstPad*" "pad") - '("xmlNodePtr" "parent") - ) -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstparse.h - -(define-function parse_error_quark - (c-name "gst_parse_error_quark") - (return-type "GQuark") -) - -(define-function parse_launch - (c-name "gst_parse_launch") - (return-type "GstElement*") - (parameters - '("const-gchar*" "pipeline_description") - '("GError**" "error") - ) -) - -(define-function parse_launchv - (c-name "gst_parse_launchv") - (return-type "GstElement*") - (parameters - '("const-gchar**" "argv") - '("GError**" "error") - ) -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstpipeline.h - -(define-function pipeline_get_type - (c-name "gst_pipeline_get_type") - (return-type "GType") -) - -(define-function pipeline_new - (c-name "gst_pipeline_new") - (is-constructor-of "GstPipeline") - (return-type "GstElement*") - (parameters - '("const-gchar*" "name") - ) -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstpluginfeature.h - -(define-function plugin_feature_get_type - (c-name "gst_plugin_feature_get_type") - (return-type "GType") -) - -(define-method ensure_loaded - (of-object "GstPluginFeature") - (c-name "gst_plugin_feature_ensure_loaded") - (return-type "gboolean") -) - -(define-method unload_thyself - (of-object "GstPluginFeature") - (c-name "gst_plugin_feature_unload_thyself") - (return-type "none") -) - -(define-method type_name_filter - (of-object "GstPluginFeature") - (c-name "gst_plugin_feature_type_name_filter") - (return-type "gboolean") - (parameters - '("GstTypeNameData*" "data") - ) -) - -(define-method set_rank - (of-object "GstPluginFeature") - (c-name "gst_plugin_feature_set_rank") - (return-type "none") - (parameters - '("guint" "rank") - ) -) - -(define-method set_name - (of-object "GstPluginFeature") - (c-name "gst_plugin_feature_set_name") - (return-type "none") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method get_rank - (of-object "GstPluginFeature") - (c-name "gst_plugin_feature_get_rank") - (return-type "guint") -) - -(define-method get_name - (of-object "GstPluginFeature") - (c-name "gst_plugin_feature_get_name") - (return-type "const-gchar*") -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstplugin.h - -(define-function plugin_error_quark - (c-name "gst_plugin_error_quark") - (return-type "GQuark") -) - -(define-function plugin_get_type - (c-name "gst_plugin_get_type") - (return-type "GType") -) - -(define-function _gst_plugin_initialize - (c-name "_gst_plugin_initialize") - (return-type "none") -) - -(define-function _gst_plugin_register_static - (c-name "_gst_plugin_register_static") - (return-type "none") - (parameters - '("GstPluginDesc*" "desc") - ) -) - -(define-method get_name - (of-object "GstPlugin") - (c-name "gst_plugin_get_name") - (return-type "const-gchar*") -) - -(define-method get_description - (of-object "GstPlugin") - (c-name "gst_plugin_get_description") - (return-type "const-gchar*") -) - -(define-method get_filename - (of-object "GstPlugin") - (c-name "gst_plugin_get_filename") - (return-type "const-gchar*") -) - -(define-method get_license - (of-object "GstPlugin") - (c-name "gst_plugin_get_license") - (return-type "const-gchar*") -) - -(define-method get_package - (of-object "GstPlugin") - (c-name "gst_plugin_get_package") - (return-type "const-gchar*") -) - -(define-method get_origin - (of-object "GstPlugin") - (c-name "gst_plugin_get_origin") - (return-type "const-gchar*") -) - -(define-method get_module - (of-object "GstPlugin") - (c-name "gst_plugin_get_module") - (return-type "GModule*") -) - -(define-method is_loaded - (of-object "GstPlugin") - (c-name "gst_plugin_is_loaded") - (return-type "gboolean") -) - -(define-method feature_filter - (of-object "GstPlugin") - (c-name "gst_plugin_feature_filter") - (return-type "GList*") - (parameters - '("GstPluginFeatureFilter" "filter") - '("gboolean" "first") - '("gpointer" "user_data") - ) -) - -(define-function plugin_list_feature_filter - (c-name "gst_plugin_list_feature_filter") - (return-type "GList*") - (parameters - '("GList*" "list") - '("GstPluginFeatureFilter" "filter") - '("gboolean" "first") - '("gpointer" "user_data") - ) -) - -(define-method name_filter - (of-object "GstPlugin") - (c-name "gst_plugin_name_filter") - (return-type "gboolean") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method get_feature_list - (of-object "GstPlugin") - (c-name "gst_plugin_get_feature_list") - (return-type "GList*") -) - -(define-method find_feature - (of-object "GstPlugin") - (c-name "gst_plugin_find_feature") - (return-type "GstPluginFeature*") - (parameters - '("const-gchar*" "name") - '("GType" "type") - ) -) - -(define-function plugin_load_file - (c-name "gst_plugin_load_file") - (return-type "GstPlugin*") - (parameters - '("const-gchar*" "filename") - '("GError**" "error") - ) -) - -(define-method unload_plugin - (of-object "GstPlugin") - (c-name "gst_plugin_unload_plugin") - (return-type "gboolean") -) - -(define-method add_feature - (of-object "GstPlugin") - (c-name "gst_plugin_add_feature") - (return-type "none") - (parameters - '("GstPluginFeature*" "feature") - ) -) - -(define-function plugin_load - (c-name "gst_plugin_load") - (return-type "gboolean") - (parameters - '("const-gchar*" "name") - ) -) - -(define-function library_load - (c-name "gst_library_load") - (return-type "gboolean") - (parameters - '("const-gchar*" "name") - ) -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstprobe.h - -(define-function probe_new - (c-name "gst_probe_new") - (is-constructor-of "GstProbe") - (return-type "GstProbe*") - (parameters - '("gboolean" "single_shot") - '("GstProbeCallback" "callback") - '("gpointer" "user_data") - ) -) - -(define-method destroy - (of-object "GstProbe") - (c-name "gst_probe_destroy") - (return-type "none") -) - -(define-method perform - (of-object "GstProbe") - (c-name "gst_probe_perform") - (return-type "gboolean") - (parameters - '("GstData**" "data") - ) -) - -(define-function probe_dispatcher_new - (c-name "gst_probe_dispatcher_new") - (is-constructor-of "GstProbeDispatcher") - (return-type "GstProbeDispatcher*") -) - -(define-method destroy - (of-object "GstProbeDispatcher") - (c-name "gst_probe_dispatcher_destroy") - (return-type "none") -) - -(define-method init - (of-object "GstProbeDispatcher") - (c-name "gst_probe_dispatcher_init") - (return-type "none") -) - -(define-method set_active - (of-object "GstProbeDispatcher") - (c-name "gst_probe_dispatcher_set_active") - (return-type "none") - (parameters - '("gboolean" "active") - ) -) - -(define-method add_probe - (of-object "GstProbeDispatcher") - (c-name "gst_probe_dispatcher_add_probe") - (return-type "none") - (parameters - '("GstProbe*" "probe") - ) -) - -(define-method remove_probe - (of-object "GstProbeDispatcher") - (c-name "gst_probe_dispatcher_remove_probe") - (return-type "none") - (parameters - '("GstProbe*" "probe") - ) -) - -(define-method dispatch - (of-object "GstProbeDispatcher") - (c-name "gst_probe_dispatcher_dispatch") - (return-type "gboolean") - (parameters - '("GstData**" "data") - ) -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstquery.h - -(define-function _gst_query_type_initialize - (c-name "_gst_query_type_initialize") - (return-type "none") -) - -(define-function query_type_register - (c-name "gst_query_type_register") - (return-type "GstQueryType") - (parameters - '("const-gchar*" "nick") - '("const-gchar*" "description") - ) -) - -(define-function query_type_get_by_nick - (c-name "gst_query_type_get_by_nick") - (return-type "GstQueryType") - (parameters - '("const-gchar*" "nick") - ) -) - -(define-method s_contains - (of-object "GstQueryType") - (c-name "gst_query_types_contains") - (return-type "gboolean") - (parameters - '("GstQueryType" "type") - ) -) - -(define-method get_details - (of-object "GstQueryType") - (c-name "gst_query_type_get_details") - (return-type "const-GstQueryTypeDefinition*") -) - -(define-function query_type_get_definitions - (c-name "gst_query_type_get_definitions") - (return-type "const-GList*") -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstqueue.h - -(define-function queue_get_type - (c-name "gst_queue_get_type") - (return-type "GType") -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstregistry.h - -(define-function registry_get_type - (c-name "gst_registry_get_type") - (return-type "GType") -) - -(define-method load - (of-object "GstRegistry") - (c-name "gst_registry_load") - (return-type "gboolean") -) - -(define-method is_loaded - (of-object "GstRegistry") - (c-name "gst_registry_is_loaded") - (return-type "gboolean") -) - -(define-method save - (of-object "GstRegistry") - (c-name "gst_registry_save") - (return-type "gboolean") -) - -(define-method rebuild - (of-object "GstRegistry") - (c-name "gst_registry_rebuild") - (return-type "gboolean") -) - -(define-method unload - (of-object "GstRegistry") - (c-name "gst_registry_unload") - (return-type "gboolean") -) - -(define-method add_path - (of-object "GstRegistry") - (c-name "gst_registry_add_path") - (return-type "none") - (parameters - '("const-gchar*" "path") - ) -) - -(define-method get_path_list - (of-object "GstRegistry") - (c-name "gst_registry_get_path_list") - (return-type "GList*") -) - -(define-method clear_paths - (of-object "GstRegistry") - (c-name "gst_registry_clear_paths") - (return-type "none") -) - -(define-method add_plugin - (of-object "GstRegistry") - (c-name "gst_registry_add_plugin") - (return-type "gboolean") - (parameters - '("GstPlugin*" "plugin") - ) -) - -(define-method remove_plugin - (of-object "GstRegistry") - (c-name "gst_registry_remove_plugin") - (return-type "none") - (parameters - '("GstPlugin*" "plugin") - ) -) - -(define-method plugin_filter - (of-object "GstRegistry") - (c-name "gst_registry_plugin_filter") - (return-type "GList*") - (parameters - '("GstPluginFilter" "filter") - '("gboolean" "first") - '("gpointer" "user_data") - ) -) - -(define-method feature_filter - (of-object "GstRegistry") - (c-name "gst_registry_feature_filter") - (return-type "GList*") - (parameters - '("GstPluginFeatureFilter" "filter") - '("gboolean" "first") - '("gpointer" "user_data") - ) -) - -(define-method find_plugin - (of-object "GstRegistry") - (c-name "gst_registry_find_plugin") - (return-type "GstPlugin*") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method find_feature - (of-object "GstRegistry") - (c-name "gst_registry_find_feature") - (return-type "GstPluginFeature*") - (parameters - '("const-gchar*" "name") - '("GType" "type") - ) -) - -(define-method load_plugin - (of-object "GstRegistry") - (c-name "gst_registry_load_plugin") - (return-type "GstRegistryReturn") - (parameters - '("GstPlugin*" "plugin") - ) -) - -(define-method unload_plugin - (of-object "GstRegistry") - (c-name "gst_registry_unload_plugin") - (return-type "GstRegistryReturn") - (parameters - '("GstPlugin*" "plugin") - ) -) - -(define-method update_plugin - (of-object "GstRegistry") - (c-name "gst_registry_update_plugin") - (return-type "GstRegistryReturn") - (parameters - '("GstPlugin*" "plugin") - ) -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstregistrypool.h - -(define-function registry_pool_list - (c-name "gst_registry_pool_list") - (return-type "GList*") -) - -(define-method pool_add - (of-object "GstRegistry") - (c-name "gst_registry_pool_add") - (return-type "none") - (parameters - '("guint" "priority") - ) -) - -(define-method pool_remove - (of-object "GstRegistry") - (c-name "gst_registry_pool_remove") - (return-type "none") -) - -(define-function registry_pool_add_plugin - (c-name "gst_registry_pool_add_plugin") - (return-type "none") - (parameters - '("GstPlugin*" "plugin") - ) -) - -(define-function registry_pool_load_all - (c-name "gst_registry_pool_load_all") - (return-type "none") -) - -(define-function registry_pool_plugin_filter - (c-name "gst_registry_pool_plugin_filter") - (return-type "GList*") - (parameters - '("GstPluginFilter" "filter") - '("gboolean" "first") - '("gpointer" "user_data") - ) -) - -(define-function registry_pool_feature_filter - (c-name "gst_registry_pool_feature_filter") - (return-type "GList*") - (parameters - '("GstPluginFeatureFilter" "filter") - '("gboolean" "first") - '("gpointer" "user_data") - ) -) - -(define-function registry_pool_plugin_list - (c-name "gst_registry_pool_plugin_list") - (return-type "GList*") -) - -(define-function registry_pool_feature_list - (c-name "gst_registry_pool_feature_list") - (return-type "GList*") - (parameters - '("GType" "type") - ) -) - -(define-function registry_pool_find_plugin - (c-name "gst_registry_pool_find_plugin") - (return-type "GstPlugin*") - (parameters - '("const-gchar*" "name") - ) -) - -(define-function registry_pool_find_feature - (c-name "gst_registry_pool_find_feature") - (return-type "GstPluginFeature*") - (parameters - '("const-gchar*" "name") - '("GType" "type") - ) -) - -(define-function registry_pool_get_prefered - (c-name "gst_registry_pool_get_prefered") - (return-type "GstRegistry*") - (parameters - '("GstRegistryFlags" "flags") - ) -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstscheduler.h - -(define-function scheduler_get_type - (c-name "gst_scheduler_get_type") - (return-type "GType") -) - -(define-method setup - (of-object "GstScheduler") - (c-name "gst_scheduler_setup") - (return-type "none") -) - -(define-method reset - (of-object "GstScheduler") - (c-name "gst_scheduler_reset") - (return-type "none") -) - -(define-method add_element - (of-object "GstScheduler") - (c-name "gst_scheduler_add_element") - (return-type "none") - (parameters - '("GstElement*" "element") - ) -) - -(define-method remove_element - (of-object "GstScheduler") - (c-name "gst_scheduler_remove_element") - (return-type "none") - (parameters - '("GstElement*" "element") - ) -) - -(define-method add_scheduler - (of-object "GstScheduler") - (c-name "gst_scheduler_add_scheduler") - (return-type "none") - (parameters - '("GstScheduler*" "sched2") - ) -) - -(define-method remove_scheduler - (of-object "GstScheduler") - (c-name "gst_scheduler_remove_scheduler") - (return-type "none") - (parameters - '("GstScheduler*" "sched2") - ) -) - -(define-method state_transition - (of-object "GstScheduler") - (c-name "gst_scheduler_state_transition") - (return-type "GstElementStateReturn") - (parameters - '("GstElement*" "element") - '("gint" "transition") - ) -) - -(define-method scheduling_change - (of-object "GstScheduler") - (c-name "gst_scheduler_scheduling_change") - (return-type "none") - (parameters - '("GstElement*" "element") - ) -) - -(define-method lock_element - (of-object "GstScheduler") - (c-name "gst_scheduler_lock_element") - (return-type "none") - (parameters - '("GstElement*" "element") - ) -) - -(define-method unlock_element - (of-object "GstScheduler") - (c-name "gst_scheduler_unlock_element") - (return-type "none") - (parameters - '("GstElement*" "element") - ) -) - -(define-method yield - (of-object "GstScheduler") - (c-name "gst_scheduler_yield") - (return-type "gboolean") - (parameters - '("GstElement*" "element") - ) -) - -(define-method interrupt - (of-object "GstScheduler") - (c-name "gst_scheduler_interrupt") - (return-type "gboolean") - (parameters - '("GstElement*" "element") - ) -) - -(define-method error - (of-object "GstScheduler") - (c-name "gst_scheduler_error") - (return-type "none") - (parameters - '("GstElement*" "element") - ) -) - -(define-method pad_link - (of-object "GstScheduler") - (c-name "gst_scheduler_pad_link") - (return-type "none") - (parameters - '("GstPad*" "srcpad") - '("GstPad*" "sinkpad") - ) -) - -(define-method pad_unlink - (of-object "GstScheduler") - (c-name "gst_scheduler_pad_unlink") - (return-type "none") - (parameters - '("GstPad*" "srcpad") - '("GstPad*" "sinkpad") - ) -) - -(define-method pad_select - (of-object "GstScheduler") - (c-name "gst_scheduler_pad_select") - (return-type "GstPad*") - (parameters - '("GList*" "padlist") - ) -) - -(define-method clock_wait - (of-object "GstScheduler") - (c-name "gst_scheduler_clock_wait") - (return-type "GstClockReturn") - (parameters - '("GstElement*" "element") - '("GstClockID" "id") - '("GstClockTimeDiff*" "jitter") - ) -) - -(define-method iterate - (of-object "GstScheduler") - (c-name "gst_scheduler_iterate") - (return-type "gboolean") -) - -(define-method use_clock - (of-object "GstScheduler") - (c-name "gst_scheduler_use_clock") - (return-type "none") - (parameters - '("GstClock*" "clock") - ) -) - -(define-method set_clock - (of-object "GstScheduler") - (c-name "gst_scheduler_set_clock") - (return-type "none") - (parameters - '("GstClock*" "clock") - ) -) - -(define-method get_clock - (of-object "GstScheduler") - (c-name "gst_scheduler_get_clock") - (return-type "GstClock*") -) - -(define-method auto_clock - (of-object "GstScheduler") - (c-name "gst_scheduler_auto_clock") - (return-type "none") -) - -(define-method show - (of-object "GstScheduler") - (c-name "gst_scheduler_show") - (return-type "none") -) - -(define-function scheduler_factory_get_type - (c-name "gst_scheduler_factory_get_type") - (return-type "GType") -) - -(define-function scheduler_factory_new - (c-name "gst_scheduler_factory_new") - (is-constructor-of "GstSchedulerFactory") - (return-type "GstSchedulerFactory*") - (parameters - '("const-gchar*" "name") - '("const-gchar*" "longdesc") - '("GType" "type") - ) -) - -(define-method destroy - (of-object "GstSchedulerFactory") - (c-name "gst_scheduler_factory_destroy") - (return-type "none") -) - -(define-function scheduler_factory_find - (c-name "gst_scheduler_factory_find") - (return-type "GstSchedulerFactory*") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method create - (of-object "GstSchedulerFactory") - (c-name "gst_scheduler_factory_create") - (return-type "GstScheduler*") - (parameters - '("GstElement*" "parent") - ) -) - -(define-function scheduler_factory_make - (c-name "gst_scheduler_factory_make") - (return-type "GstScheduler*") - (parameters - '("const-gchar*" "name") - '("GstElement*" "parent") - ) -) - -(define-function scheduler_factory_set_default_name - (c-name "gst_scheduler_factory_set_default_name") - (return-type "none") - (parameters - '("const-gchar*" "name") - ) -) - -(define-function scheduler_factory_get_default_name - (c-name "gst_scheduler_factory_get_default_name") - (return-type "const-gchar*") -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gststructure.h - -(define-function structure_get_type - (c-name "gst_structure_get_type") - (return-type "GType") -) - -(define-function _gst_structure_initialize - (c-name "_gst_structure_initialize") - (return-type "none") -) - -(define-function structure_empty_new - (c-name "gst_structure_empty_new") - (is-constructor-of "GstStructureEmpty") - (return-type "GstStructure*") - (parameters - '("const-gchar*" "name") - ) -) - -(define-function structure_id_empty_new - (c-name "gst_structure_id_empty_new") - (is-constructor-of "GstStructureIdEmpty") - (return-type "GstStructure*") - (parameters - '("GQuark" "quark") - ) -) - -(define-function structure_new - (c-name "gst_structure_new") - (is-constructor-of "GstStructure") - (return-type "GstStructure*") - (parameters - '("const-gchar*" "name") - '("const-gchar*" "firstfield") - ) - (varargs #t) -) - -(define-function structure_new_valist - (c-name "gst_structure_new_valist") - (return-type "GstStructure*") - (parameters - '("const-gchar*" "name") - '("const-gchar*" "firstfield") - '("va_list" "varargs") - ) -) - -(define-method copy - (of-object "GstStructure") - (c-name "gst_structure_copy") - (return-type "GstStructure*") -) - -(define-method free - (of-object "GstStructure") - (c-name "gst_structure_free") - (return-type "none") -) - -(define-method get_name - (of-object "GstStructure") - (c-name "gst_structure_get_name") - (return-type "const-gchar*") -) - -(define-method set_name - (of-object "GstStructure") - (c-name "gst_structure_set_name") - (return-type "none") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method id_set_value - (of-object "GstStructure") - (c-name "gst_structure_id_set_value") - (return-type "none") - (parameters - '("GQuark" "field") - '("const-GValue*" "value") - ) -) - -(define-method set_value - (of-object "GstStructure") - (c-name "gst_structure_set_value") - (return-type "none") - (parameters - '("const-gchar*" "fieldname") - '("const-GValue*" "value") - ) -) - -(define-method set - (of-object "GstStructure") - (c-name "gst_structure_set") - (return-type "none") - (parameters - '("const-gchar*" "fieldname") - ) - (varargs #t) -) - -(define-method set_valist - (of-object "GstStructure") - (c-name "gst_structure_set_valist") - (return-type "none") - (parameters - '("const-gchar*" "fieldname") - '("va_list" "varargs") - ) -) - -(define-method id_get_value - (of-object "GstStructure") - (c-name "gst_structure_id_get_value") - (return-type "const-GValue*") - (parameters - '("GQuark" "field") - ) -) - -(define-method get_value - (of-object "GstStructure") - (c-name "gst_structure_get_value") - (return-type "const-GValue*") - (parameters - '("const-gchar*" "fieldname") - ) -) - -(define-method remove_field - (of-object "GstStructure") - (c-name "gst_structure_remove_field") - (return-type "none") - (parameters - '("const-gchar*" "fieldname") - ) -) - -(define-method remove_fields - (of-object "GstStructure") - (c-name "gst_structure_remove_fields") - (return-type "none") - (parameters - '("const-gchar*" "fieldname") - ) - (varargs #t) -) - -(define-method remove_fields_valist - (of-object "GstStructure") - (c-name "gst_structure_remove_fields_valist") - (return-type "none") - (parameters - '("const-gchar*" "fieldname") - '("va_list" "varargs") - ) -) - -(define-method remove_all_fields - (of-object "GstStructure") - (c-name "gst_structure_remove_all_fields") - (return-type "none") -) - -(define-method get_field_type - (of-object "GstStructure") - (c-name "gst_structure_get_field_type") - (return-type "GType") - (parameters - '("const-gchar*" "fieldname") - ) -) - -(define-method foreach - (of-object "GstStructure") - (c-name "gst_structure_foreach") - (return-type "gboolean") - (parameters - '("GstStructureForeachFunc" "func") - '("gpointer" "user_data") - ) -) - -(define-method n_fields - (of-object "GstStructure") - (c-name "gst_structure_n_fields") - (return-type "gint") -) - -(define-method has_field - (of-object "GstStructure") - (c-name "gst_structure_has_field") - (return-type "gboolean") - (parameters - '("const-gchar*" "fieldname") - ) -) - -(define-method has_field_typed - (of-object "GstStructure") - (c-name "gst_structure_has_field_typed") - (return-type "gboolean") - (parameters - '("const-gchar*" "fieldname") - '("GType" "type") - ) -) - -(define-method get_boolean - (of-object "GstStructure") - (c-name "gst_structure_get_boolean") - (return-type "gboolean") - (parameters - '("const-gchar*" "fieldname") - '("gboolean*" "value") - ) -) - -(define-method get_int - (of-object "GstStructure") - (c-name "gst_structure_get_int") - (return-type "gboolean") - (parameters - '("const-gchar*" "fieldname") - '("gint*" "value") - ) -) - -(define-method get_fourcc - (of-object "GstStructure") - (c-name "gst_structure_get_fourcc") - (return-type "gboolean") - (parameters - '("const-gchar*" "fieldname") - '("guint32*" "value") - ) -) - -(define-method get_double - (of-object "GstStructure") - (c-name "gst_structure_get_double") - (return-type "gboolean") - (parameters - '("const-gchar*" "fieldname") - '("gdouble*" "value") - ) -) - -(define-method get_string - (of-object "GstStructure") - (c-name "gst_structure_get_string") - (return-type "const-gchar*") - (parameters - '("const-gchar*" "fieldname") - ) -) - -(define-method to_string - (of-object "GstStructure") - (c-name "gst_structure_to_string") - (return-type "gchar*") -) - -(define-function structure_from_string - (c-name "gst_structure_from_string") - (return-type "GstStructure*") - (parameters - '("const-gchar*" "string") - '("gchar**" "end") - ) -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstsystemclock.h - -(define-function system_clock_get_type - (c-name "gst_system_clock_get_type") - (return-type "GType") -) - -(define-function system_clock_obtain - (c-name "gst_system_clock_obtain") - (return-type "GstClock*") -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gsttag.h - -(define-function _gst_tag_initialize - (c-name "_gst_tag_initialize") - (return-type "none") -) - -(define-function tag_list_get_type - (c-name "gst_tag_list_get_type") - (return-type "GType") -) - -(define-function tag_register - (c-name "gst_tag_register") - (return-type "none") - (parameters - '("gchar*" "name") - '("GstTagFlag" "flag") - '("GType" "type") - '("gchar*" "nick") - '("gchar*" "blurb") - '("GstTagMergeFunc" "func") - ) -) - -(define-function tag_merge_use_first - (c-name "gst_tag_merge_use_first") - (return-type "none") - (parameters - '("GValue*" "dest") - '("const-GValue*" "src") - ) -) - -(define-function tag_merge_strings_with_comma - (c-name "gst_tag_merge_strings_with_comma") - (return-type "none") - (parameters - '("GValue*" "dest") - '("const-GValue*" "src") - ) -) - -(define-function tag_exists - (c-name "gst_tag_exists") - (return-type "gboolean") - (parameters - '("const-gchar*" "tag") - ) -) - -(define-function tag_get_type - (c-name "gst_tag_get_type") - (return-type "GType") - (parameters - '("const-gchar*" "tag") - ) -) - -(define-function tag_get_nick - (c-name "gst_tag_get_nick") - (return-type "const-gchar*") - (parameters - '("const-gchar*" "tag") - ) -) - -(define-function tag_get_description - (c-name "gst_tag_get_description") - (return-type "const-gchar*") - (parameters - '("const-gchar*" "tag") - ) -) - -(define-function tag_is_fixed - (c-name "gst_tag_is_fixed") - (return-type "gboolean") - (parameters - '("const-gchar*" "tag") - ) -) - -(define-function tag_list_new - (c-name "gst_tag_list_new") - (is-constructor-of "GstTagList") - (return-type "GstTagList*") -) - -(define-function is_tag_list - (c-name "gst_is_tag_list") - (return-type "gboolean") - (parameters - '("gconstpointer" "p") - ) -) - -(define-method copy - (of-object "GstTagList") - (c-name "gst_tag_list_copy") - (return-type "GstTagList*") -) - -(define-method insert - (of-object "GstTagList") - (c-name "gst_tag_list_insert") - (return-type "none") - (parameters - '("const-GstTagList*" "from") - '("GstTagMergeMode" "mode") - ) -) - -(define-method merge - (of-object "GstTagList") - (c-name "gst_tag_list_merge") - (return-type "GstTagList*") - (parameters - '("const-GstTagList*" "list2") - '("GstTagMergeMode" "mode") - ) -) - -(define-method free - (of-object "GstTagList") - (c-name "gst_tag_list_free") - (return-type "none") -) - -(define-method get_tag_size - (of-object "GstTagList") - (c-name "gst_tag_list_get_tag_size") - (return-type "guint") - (parameters - '("const-gchar*" "tag") - ) -) - -(define-method add - (of-object "GstTagList") - (c-name "gst_tag_list_add") - (return-type "none") - (parameters - '("GstTagMergeMode" "mode") - '("const-gchar*" "tag") - ) - (varargs #t) -) - -(define-method add_values - (of-object "GstTagList") - (c-name "gst_tag_list_add_values") - (return-type "none") - (parameters - '("GstTagMergeMode" "mode") - '("const-gchar*" "tag") - ) - (varargs #t) -) - -(define-method add_valist - (of-object "GstTagList") - (c-name "gst_tag_list_add_valist") - (return-type "none") - (parameters - '("GstTagMergeMode" "mode") - '("const-gchar*" "tag") - '("va_list" "var_args") - ) -) - -(define-method add_valist_values - (of-object "GstTagList") - (c-name "gst_tag_list_add_valist_values") - (return-type "none") - (parameters - '("GstTagMergeMode" "mode") - '("const-gchar*" "tag") - '("va_list" "var_args") - ) -) - -(define-method remove_tag - (of-object "GstTagList") - (c-name "gst_tag_list_remove_tag") - (return-type "none") - (parameters - '("const-gchar*" "tag") - ) -) - -(define-method foreach - (of-object "GstTagList") - (c-name "gst_tag_list_foreach") - (return-type "none") - (parameters - '("GstTagForeachFunc" "func") - '("gpointer" "user_data") - ) -) - -(define-method get_value_index - (of-object "GstTagList") - (c-name "gst_tag_list_get_value_index") - (return-type "const-GValue*") - (parameters - '("const-gchar*" "tag") - '("guint" "index") - ) -) - -(define-function tag_list_copy_value - (c-name "gst_tag_list_copy_value") - (return-type "gboolean") - (parameters - '("GValue*" "dest") - '("const-GstTagList*" "list") - '("const-gchar*" "tag") - ) -) - -(define-method get_char - (of-object "GstTagList") - (c-name "gst_tag_list_get_char") - (return-type "gboolean") - (parameters - '("const-gchar*" "tag") - '("gchar*" "value") - ) -) - -(define-method get_char_index - (of-object "GstTagList") - (c-name "gst_tag_list_get_char_index") - (return-type "gboolean") - (parameters - '("const-gchar*" "tag") - '("guint" "index") - '("gchar*" "value") - ) -) - -(define-method get_uchar - (of-object "GstTagList") - (c-name "gst_tag_list_get_uchar") - (return-type "gboolean") - (parameters - '("const-gchar*" "tag") - '("guchar*" "value") - ) -) - -(define-method get_uchar_index - (of-object "GstTagList") - (c-name "gst_tag_list_get_uchar_index") - (return-type "gboolean") - (parameters - '("const-gchar*" "tag") - '("guint" "index") - '("guchar*" "value") - ) -) - -(define-method get_boolean - (of-object "GstTagList") - (c-name "gst_tag_list_get_boolean") - (return-type "gboolean") - (parameters - '("const-gchar*" "tag") - '("gboolean*" "value") - ) -) - -(define-method get_boolean_index - (of-object "GstTagList") - (c-name "gst_tag_list_get_boolean_index") - (return-type "gboolean") - (parameters - '("const-gchar*" "tag") - '("guint" "index") - '("gboolean*" "value") - ) -) - -(define-method get_int - (of-object "GstTagList") - (c-name "gst_tag_list_get_int") - (return-type "gboolean") - (parameters - '("const-gchar*" "tag") - '("gint*" "value") - ) -) - -(define-method get_int_index - (of-object "GstTagList") - (c-name "gst_tag_list_get_int_index") - (return-type "gboolean") - (parameters - '("const-gchar*" "tag") - '("guint" "index") - '("gint*" "value") - ) -) - -(define-method get_uint - (of-object "GstTagList") - (c-name "gst_tag_list_get_uint") - (return-type "gboolean") - (parameters - '("const-gchar*" "tag") - '("guint*" "value") - ) -) - -(define-method get_uint_index - (of-object "GstTagList") - (c-name "gst_tag_list_get_uint_index") - (return-type "gboolean") - (parameters - '("const-gchar*" "tag") - '("guint" "index") - '("guint*" "value") - ) -) - -(define-method get_long - (of-object "GstTagList") - (c-name "gst_tag_list_get_long") - (return-type "gboolean") - (parameters - '("const-gchar*" "tag") - '("glong*" "value") - ) -) - -(define-method get_long_index - (of-object "GstTagList") - (c-name "gst_tag_list_get_long_index") - (return-type "gboolean") - (parameters - '("const-gchar*" "tag") - '("guint" "index") - '("glong*" "value") - ) -) - -(define-method get_ulong - (of-object "GstTagList") - (c-name "gst_tag_list_get_ulong") - (return-type "gboolean") - (parameters - '("const-gchar*" "tag") - '("gulong*" "value") - ) -) - -(define-method get_ulong_index - (of-object "GstTagList") - (c-name "gst_tag_list_get_ulong_index") - (return-type "gboolean") - (parameters - '("const-gchar*" "tag") - '("guint" "index") - '("gulong*" "value") - ) -) - -(define-method get_int64 - (of-object "GstTagList") - (c-name "gst_tag_list_get_int64") - (return-type "gboolean") - (parameters - '("const-gchar*" "tag") - '("gint64*" "value") - ) -) - -(define-method get_int64_index - (of-object "GstTagList") - (c-name "gst_tag_list_get_int64_index") - (return-type "gboolean") - (parameters - '("const-gchar*" "tag") - '("guint" "index") - '("gint64*" "value") - ) -) - -(define-method get_uint64 - (of-object "GstTagList") - (c-name "gst_tag_list_get_uint64") - (return-type "gboolean") - (parameters - '("const-gchar*" "tag") - '("guint64*" "value") - ) -) - -(define-method get_uint64_index - (of-object "GstTagList") - (c-name "gst_tag_list_get_uint64_index") - (return-type "gboolean") - (parameters - '("const-gchar*" "tag") - '("guint" "index") - '("guint64*" "value") - ) -) - -(define-method get_float - (of-object "GstTagList") - (c-name "gst_tag_list_get_float") - (return-type "gboolean") - (parameters - '("const-gchar*" "tag") - '("gfloat*" "value") - ) -) - -(define-method get_float_index - (of-object "GstTagList") - (c-name "gst_tag_list_get_float_index") - (return-type "gboolean") - (parameters - '("const-gchar*" "tag") - '("guint" "index") - '("gfloat*" "value") - ) -) - -(define-method get_double - (of-object "GstTagList") - (c-name "gst_tag_list_get_double") - (return-type "gboolean") - (parameters - '("const-gchar*" "tag") - '("gdouble*" "value") - ) -) - -(define-method get_double_index - (of-object "GstTagList") - (c-name "gst_tag_list_get_double_index") - (return-type "gboolean") - (parameters - '("const-gchar*" "tag") - '("guint" "index") - '("gdouble*" "value") - ) -) - -(define-method get_string - (of-object "GstTagList") - (c-name "gst_tag_list_get_string") - (return-type "gboolean") - (parameters - '("const-gchar*" "tag") - '("gchar**" "value") - ) -) - -(define-method get_string_index - (of-object "GstTagList") - (c-name "gst_tag_list_get_string_index") - (return-type "gboolean") - (parameters - '("const-gchar*" "tag") - '("guint" "index") - '("gchar**" "value") - ) -) - -(define-method get_pointer - (of-object "GstTagList") - (c-name "gst_tag_list_get_pointer") - (return-type "gboolean") - (parameters - '("const-gchar*" "tag") - '("gpointer*" "value") - ) -) - -(define-method get_pointer_index - (of-object "GstTagList") - (c-name "gst_tag_list_get_pointer_index") - (return-type "gboolean") - (parameters - '("const-gchar*" "tag") - '("guint" "index") - '("gpointer*" "value") - ) -) - -(define-function event_new_tag - (c-name "gst_event_new_tag") - (return-type "GstEvent*") - (parameters - '("GstTagList*" "list") - ) -) - -(define-method tag_get_list - (of-object "GstEvent") - (c-name "gst_event_tag_get_list") - (return-type "GstTagList*") -) - -;; Added python method -(define-method keys - (of-object "GstTagList") - (c-name "pygst_tag_list_keys") -) - -(define-method has_key - (of-object "GstTagList") - (c-name "pygst_tag_list_has_key") - (parameters '("gchar*" "key")) -) - -(define-method get - (of-object "GstTagList") - (c-name "pygst_tag_list_get") - (parameters '("gchar*" "key")) -) - -;; From /opt/gnome/include/gstreamer-0.7/gst/gsttaginterface.h - -(define-function tag_setter_get_type - (c-name "gst_tag_setter_get_type") - (return-type "GType") -) - -(define-method merge - (of-object "GstTagSetter") - (c-name "gst_tag_setter_merge") - (return-type "none") - (parameters - '("const-GstTagList*" "list") - '("GstTagMergeMode" "mode") - ) -) - -(define-method add - (of-object "GstTagSetter") - (c-name "gst_tag_setter_add") - (return-type "none") - (parameters - '("GstTagMergeMode" "mode") - '("const-gchar*" "tag") - ) - (varargs #t) -) - -(define-method add_values - (of-object "GstTagSetter") - (c-name "gst_tag_setter_add_values") - (return-type "none") - (parameters - '("GstTagMergeMode" "mode") - '("const-gchar*" "tag") - ) - (varargs #t) -) - -(define-method add_valist - (of-object "GstTagSetter") - (c-name "gst_tag_setter_add_valist") - (return-type "none") - (parameters - '("GstTagMergeMode" "mode") - '("const-gchar*" "tag") - '("va_list" "var_args") - ) -) - -(define-method add_valist_values - (of-object "GstTagSetter") - (c-name "gst_tag_setter_add_valist_values") - (return-type "none") - (parameters - '("GstTagMergeMode" "mode") - '("const-gchar*" "tag") - '("va_list" "var_args") - ) -) - -(define-method get_list - (of-object "GstTagSetter") - (c-name "gst_tag_setter_get_list") - (return-type "const-GstTagList*") -) - -(define-method set_merge_mode - (of-object "GstTagSetter") - (c-name "gst_tag_setter_set_merge_mode") - (return-type "none") - (parameters - '("GstTagMergeMode" "mode") - ) -) - -(define-method get_merge_mode - (of-object "GstTagSetter") - (c-name "gst_tag_setter_get_merge_mode") - (return-type "GstTagMergeMode") -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstthread.h - -(define-function thread_get_type - (c-name "gst_thread_get_type") - (return-type "GType") -) - -(define-function thread_new - (c-name "gst_thread_new") - (is-constructor-of "GstThread") - (return-type "GstElement*") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method set_priority - (of-object "GstThread") - (c-name "gst_thread_set_priority") - (return-type "none") - (parameters - '("GThreadPriority" "priority") - ) -) - -(define-function thread_get_current - (c-name "gst_thread_get_current") - (return-type "GstThread*") -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gsttrace.h - -(define-function trace_new - (c-name "gst_trace_new") - (is-constructor-of "GstTrace") - (return-type "GstTrace*") - (parameters - '("gchar*" "filename") - '("gint" "size") - ) -) - -(define-method destroy - (of-object "GstTrace") - (c-name "gst_trace_destroy") - (return-type "none") -) - -(define-method flush - (of-object "GstTrace") - (c-name "gst_trace_flush") - (return-type "none") -) - -(define-method text_flush - (of-object "GstTrace") - (c-name "gst_trace_text_flush") - (return-type "none") -) - -(define-method set_default - (of-object "GstTrace") - (c-name "gst_trace_set_default") - (return-type "none") -) - -(define-method _add_entry - (of-object "GstTrace") - (c-name "_gst_trace_add_entry") - (return-type "none") - (parameters - '("guint32" "seq") - '("guint32" "data") - '("gchar*" "msg") - ) -) - -(define-function trace_read_tsc - (c-name "gst_trace_read_tsc") - (return-type "none") - (parameters - '("gint64*" "dst") - ) -) - -(define-function alloc_trace_available - (c-name "gst_alloc_trace_available") - (return-type "gboolean") -) - -(define-function alloc_trace_list - (c-name "gst_alloc_trace_list") - (return-type "const-GList*") -) - -(define-function _gst_alloc_trace_register - (c-name "_gst_alloc_trace_register") - (return-type "GstAllocTrace*") - (parameters - '("const-gchar*" "name") - ) -) - -(define-function alloc_trace_live_all - (c-name "gst_alloc_trace_live_all") - (return-type "int") -) - -(define-function alloc_trace_print_all - (c-name "gst_alloc_trace_print_all") - (return-type "none") -) - -(define-function alloc_trace_set_flags_all - (c-name "gst_alloc_trace_set_flags_all") - (return-type "none") - (parameters - '("GstAllocTraceFlags" "flags") - ) -) - -(define-function alloc_trace_get - (c-name "gst_alloc_trace_get") - (return-type "GstAllocTrace*") - (parameters - '("const-gchar*" "name") - ) -) - -(define-method print - (of-object "GstAllocTrace") - (c-name "gst_alloc_trace_print") - (return-type "none") -) - -(define-method set_flags - (of-object "GstAllocTrace") - (c-name "gst_alloc_trace_set_flags") - (return-type "none") - (parameters - '("GstAllocTraceFlags" "flags") - ) -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gsttrashstack.h - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gsttypefind.h - -(define-method peek - (of-object "GstTypeFind") - (c-name "gst_type_find_peek") - (return-type "guint8*") - (parameters - '("gint64" "offset") - '("guint" "size") - ) -) - -(define-method suggest - (of-object "GstTypeFind") - (c-name "gst_type_find_suggest") - (return-type "none") - (parameters - '("guint" "probability") - '("const-GstCaps*" "caps") - ) -) - -(define-method get_length - (of-object "GstTypeFind") - (c-name "gst_type_find_get_length") - (return-type "guint64") -) - -(define-function type_find_register - (c-name "gst_type_find_register") - (return-type "gboolean") - (parameters - '("GstPlugin*" "plugin") - '("const-gchar*" "name") - '("guint" "rank") - '("GstTypeFindFunction" "func") - '("gchar**" "extensions") - '("const-GstCaps*" "possible_caps") - '("gpointer" "data") - ) -) - -(define-function type_find_factory_get_type - (c-name "gst_type_find_factory_get_type") - (return-type "GType") -) - -(define-function type_find_factory_get_list - (c-name "gst_type_find_factory_get_list") - (return-type "GList*") -) - -(define-method get_extensions - (of-object "GstTypeFindFactory") - (c-name "gst_type_find_factory_get_extensions") - (return-type "gchar**") -) - -(define-method get_caps - (of-object "GstTypeFindFactory") - (c-name "gst_type_find_factory_get_caps") - (return-type "const-GstCaps*") -) - -(define-method call_function - (of-object "GstTypeFindFactory") - (c-name "gst_type_find_factory_call_function") - (return-type "none") - (parameters - '("GstTypeFind*" "find") - ) -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gsttypes.h - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gsturi.h - -(define-function uri_protocol_is_valid - (c-name "gst_uri_protocol_is_valid") - (return-type "gboolean") - (parameters - '("const-gchar*" "protocol") - ) -) - -(define-function uri_is_valid - (c-name "gst_uri_is_valid") - (return-type "gboolean") - (parameters - '("const-gchar*" "uri") - ) -) - -(define-function uri_get_protocol - (c-name "gst_uri_get_protocol") - (return-type "gchar*") - (parameters - '("const-gchar*" "uri") - ) -) - -(define-function uri_get_location - (c-name "gst_uri_get_location") - (return-type "gchar*") - (parameters - '("const-gchar*" "uri") - ) -) - -(define-function uri_construct - (c-name "gst_uri_construct") - (return-type "gchar*") - (parameters - '("const-gchar*" "protocol") - '("const-gchar*" "location") - ) -) - -(define-function element_make_from_uri - (c-name "gst_element_make_from_uri") - (return-type "GstElement*") - (parameters - '("const-GstURIType" "type") - '("const-gchar*" "uri") - '("const-gchar*" "elementname") - ) -) - -(define-function uri_handler_get_type - (c-name "gst_uri_handler_get_type") - (return-type "GType") -) - -(define-method get_uri_type - (of-object "GstURIHandler") - (c-name "gst_uri_handler_get_uri_type") - (return-type "guint") -) - -(define-method get_protocols - (of-object "GstURIHandler") - (c-name "gst_uri_handler_get_protocols") - (return-type "gchar**") -) - -(define-method get_uri - (of-object "GstURIHandler") - (c-name "gst_uri_handler_get_uri") - (return-type "const-gchar*") -) - -(define-method set_uri - (of-object "GstURIHandler") - (c-name "gst_uri_handler_set_uri") - (return-type "gboolean") - (parameters - '("const-gchar*" "uri") - ) -) - -(define-method new_uri - (of-object "GstURIHandler") - (c-name "gst_uri_handler_new_uri") - (return-type "none") - (parameters - '("const-gchar*" "uri") - ) -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gsturitype.h - -(define-function uri_get_uri_type - (c-name "gst_uri_get_uri_type") - (return-type "GType") -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstutils.h - -(define-function util_set_value_from_string - (c-name "gst_util_set_value_from_string") - (return-type "none") - (parameters - '("GValue*" "value") - '("const-gchar*" "value_str") - ) -) - -(define-function util_set_object_arg - (c-name "gst_util_set_object_arg") - (return-type "none") - (parameters - '("GObject*" "object") - '("const-gchar*" "name") - '("const-gchar*" "value") - ) -) - -(define-function util_dump_mem - (c-name "gst_util_dump_mem") - (return-type "none") - (parameters - '("guchar*" "mem") - '("guint" "size") - ) -) - -(define-function print_pad_caps - (c-name "gst_print_pad_caps") - (return-type "none") - (parameters - '("GString*" "buf") - '("gint" "indent") - '("GstPad*" "pad") - ) -) - -(define-function print_element_args - (c-name "gst_print_element_args") - (return-type "none") - (parameters - '("GString*" "buf") - '("gint" "indent") - '("GstElement*" "element") - ) -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstvalue.h - -(define-function value_list_prepend_value - (c-name "gst_value_list_prepend_value") - (return-type "none") - (parameters - '("GValue*" "value") - '("const-GValue*" "prepend_value") - ) -) - -(define-function value_list_append_value - (c-name "gst_value_list_append_value") - (return-type "none") - (parameters - '("GValue*" "value") - '("const-GValue*" "append_value") - ) -) - -(define-function value_list_get_size - (c-name "gst_value_list_get_size") - (return-type "guint") - (parameters - '("const-GValue*" "value") - ) -) - -(define-function value_list_get_value - (c-name "gst_value_list_get_value") - (return-type "const-GValue*") - (parameters - '("const-GValue*" "value") - '("guint" "index") - ) -) - -(define-function value_list_concat - (c-name "gst_value_list_concat") - (return-type "none") - (parameters - '("GValue*" "dest") - '("const-GValue*" "value1") - '("const-GValue*" "value2") - ) -) - -(define-function value_set_fourcc - (c-name "gst_value_set_fourcc") - (return-type "none") - (parameters - '("GValue*" "value") - '("guint32" "fourcc") - ) -) - -(define-function value_get_fourcc - (c-name "gst_value_get_fourcc") - (return-type "guint32") - (parameters - '("const-GValue*" "value") - ) -) - -(define-function value_set_int_range - (c-name "gst_value_set_int_range") - (return-type "none") - (parameters - '("GValue*" "value") - '("int" "start") - '("int" "end") - ) -) - -(define-function value_get_int_range_min - (c-name "gst_value_get_int_range_min") - (return-type "int") - (parameters - '("const-GValue*" "value") - ) -) - -(define-function value_get_int_range_max - (c-name "gst_value_get_int_range_max") - (return-type "int") - (parameters - '("const-GValue*" "value") - ) -) - -(define-function value_set_double_range - (c-name "gst_value_set_double_range") - (return-type "none") - (parameters - '("GValue*" "value") - '("double" "start") - '("double" "end") - ) -) - -(define-function value_get_double_range_min - (c-name "gst_value_get_double_range_min") - (return-type "double") - (parameters - '("const-GValue*" "value") - ) -) - -(define-function value_get_double_range_max - (c-name "gst_value_get_double_range_max") - (return-type "double") - (parameters - '("const-GValue*" "value") - ) -) - -(define-function value_get_caps - (c-name "gst_value_get_caps") - (return-type "const-GstCaps*") - (parameters - '("const-GValue*" "value") - ) -) - -(define-function value_set_caps - (c-name "gst_value_set_caps") - (return-type "none") - (parameters - '("GValue*" "value") - '("const-GstCaps*" "caps") - ) -) - -(define-function value_can_compare - (c-name "gst_value_can_compare") - (return-type "gboolean") - (parameters - '("const-GValue*" "value1") - '("const-GValue*" "value2") - ) -) - -(define-function value_compare - (c-name "gst_value_compare") - (return-type "int") - (parameters - '("const-GValue*" "value1") - '("const-GValue*" "value2") - ) -) - -(define-function value_can_union - (c-name "gst_value_can_union") - (return-type "gboolean") - (parameters - '("const-GValue*" "value1") - '("const-GValue*" "value2") - ) -) - -(define-function value_union - (c-name "gst_value_union") - (return-type "gboolean") - (parameters - '("GValue*" "dest") - '("const-GValue*" "value1") - '("const-GValue*" "value2") - ) -) - -(define-function value_register_union_func - (c-name "gst_value_register_union_func") - (return-type "none") - (parameters - '("GType" "type1") - '("GType" "type2") - '("GstValueUnionFunc" "func") - ) -) - -(define-function value_can_intersect - (c-name "gst_value_can_intersect") - (return-type "gboolean") - (parameters - '("const-GValue*" "value1") - '("const-GValue*" "value2") - ) -) - -(define-function value_intersect - (c-name "gst_value_intersect") - (return-type "gboolean") - (parameters - '("GValue*" "dest") - '("const-GValue*" "value1") - '("const-GValue*" "value2") - ) -) - -(define-function value_register_intersect_func - (c-name "gst_value_register_intersect_func") - (return-type "none") - (parameters - '("GType" "type1") - '("GType" "type2") - '("GstValueIntersectFunc" "func") - ) -) - -(define-function value_register - (c-name "gst_value_register") - (return-type "none") - (parameters - '("const-GstValueTable*" "table") - ) -) - -(define-function value_init_and_copy - (c-name "gst_value_init_and_copy") - (return-type "none") - (parameters - '("GValue*" "dest") - '("const-GValue*" "src") - ) -) - -(define-function _gst_value_initialize - (c-name "_gst_value_initialize") - (return-type "none") -) - -(define-function value_serialize - (c-name "gst_value_serialize") - (return-type "gchar*") - (parameters - '("const-GValue*" "value") - ) -) - -(define-function value_deserialize - (c-name "gst_value_deserialize") - (return-type "gboolean") - (parameters - '("GValue*" "dest") - '("const-gchar*" "src") - ) -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstversion.h - -(define-function version - (c-name "gst_version") - (return-type "none") - (parameters - '("guint*" "major") - '("guint*" "minor") - '("guint*" "micro") - ) -) - - - -;; From /opt/gnome/include/gstreamer-0.7/gst/gstxml.h - -(define-function xml_get_type - (c-name "gst_xml_get_type") - (return-type "GType") -) - -(define-function xml_write - (c-name "gst_xml_write") - (return-type "xmlDocPtr") - (parameters - '("GstElement*" "element") - ) -) - -(define-function xml_write_file - (c-name "gst_xml_write_file") - (return-type "gint") - (parameters - '("GstElement*" "element") - '("FILE*" "out") - ) -) - -(define-function xml_new - (c-name "gst_xml_new") - (is-constructor-of "GstXml") - (return-type "GstXML*") -) - -(define-method parse_doc - (of-object "GstXML") - (c-name "gst_xml_parse_doc") - (return-type "gboolean") - (parameters - '("xmlDocPtr" "doc") - '("const-guchar*" "root") - ) -) - -(define-method parse_file - (of-object "GstXML") - (c-name "gst_xml_parse_file") - (return-type "gboolean") - (parameters - '("const-guchar*" "fname") - '("const-guchar*" "root") - ) -) - -(define-method parse_memory - (of-object "GstXML") - (c-name "gst_xml_parse_memory") - (return-type "gboolean") - (parameters - '("guchar*" "buffer") - '("guint" "size") - '("const-gchar*" "root") - ) -) - -(define-method get_element - (of-object "GstXML") - (c-name "gst_xml_get_element") - (return-type "GstElement*") - (parameters - '("const-guchar*" "name") - ) -) - -(define-method get_topelements - (of-object "GstXML") - (c-name "gst_xml_get_topelements") - (return-type "GList*") -) - -(define-function xml_make_element - (c-name "gst_xml_make_element") - (return-type "GstElement*") - (parameters - '("xmlNodePtr" "cur") - '("GstObject*" "parent") - ) -) - - -;; -;; Accelerate common GstBin iterate loop -;; - -(define-function iterate_bin_all - (c-name "iterate_bin_all") - (return-type "none") - (parameters - '("GstBin*" "bin") - ) -) - -(define-function add_iterate_bin - (c-name "add_iterate_bin") - (return-type "guint") - (parameters - '("GstBin*" "bin") - ) -) - -(define-function remove_iterate_bin - (c-name "remove_iterate_bin") - (return-type "none") - (parameters - '("guint" "id") - ) -) - -;; -;; HACK -;; - -;(define-method get_data -; (of-object "GstBuffer") -; (c-name "gst_buffer_get_data") -; (return-type "char*") -;) - -;(define-method set_data -; (of-object "GstBuffer") -; (c-name "gst_buffer_set_data") -; (return-type "none") -; (parameters -; '("char*" "data") -; ) -;) - diff --git a/gstreamer/gstreamermodule.c b/gstreamer/gstreamermodule.c deleted file mode 100644 index 30508fa545..0000000000 --- a/gstreamer/gstreamermodule.c +++ /dev/null @@ -1,82 +0,0 @@ -/* -*- Mode: C; c-basic-offset: 4 -*- */ -/* gst-python - * Copyright (C) 2002 David I. Lehn - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Library General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Library General Public License for more details. - * - * You should have received a copy of the GNU Library General Public - * License along with this library; if not, write to the - * Free Software Foundation, Inc., 59 Temple Place - Suite 330, - * Boston, MA 02111-1307, USA. - * - * Author: David I. Lehn - */ - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - -/* include this first, before NO_IMPORT_PYGOBJECT is defined */ -#include -#include - -void pygst_register_classes (PyObject *d); -void pygst_add_constants(PyObject *module, const gchar *strip_prefix); - -extern PyMethodDef pygst_functions[]; - -DL_EXPORT(void) -init_gst (void) -{ - PyObject *m, *d; - PyObject *av; - int argc, i; - char **argv; - - init_pygobject (); - - /* pull in arguments */ - av = PySys_GetObject ("argv"); - if (av != NULL) { - argc = PyList_Size (av); - argv = g_new (char *, argc); - for (i = 0; i < argc; i++) - argv[i] = g_strdup (PyString_AsString (PyList_GetItem (av, i))); - } else { - argc = 0; - argv = NULL; - } - - if (!gst_init_check (&argc, &argv)) { - if (argv != NULL) { - for (i = 0; i < argc; i++) - g_free (argv[i]); - g_free (argv); - } - PyErr_SetString (PyExc_RuntimeError, "can't initialize module gst"); - } - if (argv != NULL) { - PySys_SetArgv (argc, argv); - for (i = 0; i < argc; i++) - g_free (argv[i]); - g_free (argv); - } - - m = Py_InitModule ("gst._gst", pygst_functions); - d = PyModule_GetDict (m); - - pygst_register_classes (d); - pygst_add_constants (m, "GST_"); - - if (PyErr_Occurred ()) { - Py_FatalError ("can't initialize module gst"); - } -}