+2007-11-08 Edward Hervey <bilboed@bilboed.com>
+
+ * gst/base.defs:
+ * gst/gst-0.10.15.ignore:
+ * gst/gst.defs:
+ * gst/gst.override:
+ * gst/gstmodule.c: (init_gst):
+ Update API changes for core+base pre-releases
+
2007-11-05 Johan Dahlin <johan@gnome.org>
* gstoptionmodule.c:
(return-type "GstClockTimeDiff")
)
+(define-method get_last_buffer
+ (of-object "GstBaseSink")
+ (c-name "gst_base_sink_get_last_buffer")
+ (return-type "GstBuffer*")
+)
+
(define-method query_latency
(of-object "GstBaseSink")
(c-name "gst_base_sink_query_latency")
(return-type "GstClockTime")
)
+(define-method wait_eos
+ (of-object "GstBaseSink")
+ (c-name "gst_base_sink_wait_eos")
+ (return-type "GstFlowReturn")
+ (parameters
+ '("GstClockTime" "time")
+ '("GstClockTimeDiff*" "jitter")
+ )
+)
+
(define-virtual get_caps
(of-object "GstBaseSink")
(return-type "GstCaps*")
gst_pad_peer_query
gst_registry_add_path
gst_structure_get_uint
+ gst_bus_pop_filtered
+ gst_bus_timed_pop_filtered
+ gst_base_sink_get_last_buffer
+ GstURIHandler__do_get_protocols_full
+ GstURIHandler__proxy_do_get_protocols_full
+ GstURIHandler__do_get_type_full
+ GstURIHandler__proxy_do_get_type_full
%%
ignore-type
GstLFOControlSource
(caller-owns-return #t)
)
+(define-method pop_filtered
+ (of-object "GstBus")
+ (c-name "gst_bus_pop_filtered")
+ (return-type "GstMessage*")
+ (caller-owns-return #t)
+ (parameters
+ '("GstMessageType" "types")
+ )
+)
+
(define-method timed_pop
(of-object "GstBus")
(c-name "gst_bus_timed_pop")
)
)
+(define-method timed_pop_filtered
+ (of-object "GstBus")
+ (c-name "gst_bus_timed_pop_filtered")
+ (return-type "GstMessage*")
+ (caller-owns-return #t)
+ (parameters
+ '("GstClockTime" "timeout")
+ '("GstMessageType" "types")
+ )
+)
+
(define-method set_flushing
(of-object "GstBus")
(c-name "gst_bus_set_flushing")
*_ref
*_unref
*_deinit
- *_full
gst_class_*
gst_init*
gst_interface_*
return retval;
}
+%%
+override GstURIHandler__do_get_type_full
+static PyObject *
+_wrap_GstURIHandler__do_get_type_full(PyObject *cls, PyObject *args, PyObject *kwargs)
+{
+ GstURIHandlerInterface *iface;
+ static char *kwlist[] = { "self", "type", NULL };
+ PyGObject *self;
+ PyObject *py_type = NULL;
+ GType type;
+ guint ret;
+
+ if (!PyArg_ParseTupleAndKeywords(args, kwargs,"O!O:GstURIHandler.get_type_full", kwlist, &PyGstURIHandler_Type, &self, &py_type))
+ return NULL;
+ if ((type = pyg_type_from_object(py_type)) == 0)
+ return NULL;
+ iface = g_type_interface_peek(g_type_class_peek(pyg_type_from_object(cls)), GST_TYPE_URI_HANDLER);
+ if (iface->get_type_full)
+ ret = iface->get_type_full(type);
+ else {
+ PyErr_SetString(PyExc_NotImplementedError, "interface method GstURIHandler.get_type_full not implemented");
+ return NULL;
+ }
+ return PyLong_FromUnsignedLong(ret);
+}
+%%
+override GstURIHandler__do_get_protocols_full
+static PyObject *
+_wrap_GstURIHandler__do_get_protocols_full(PyObject *cls, PyObject *args, PyObject *kwargs)
+{
+ GstURIHandlerInterface *iface;
+ static char *kwlist[] = { "self", "type", NULL };
+ PyGObject *self;
+ PyObject *py_type = NULL;
+ GType type;
+ gchar **ret;
+
+ if (!PyArg_ParseTupleAndKeywords(args, kwargs,"O!O:GstURIHandler.get_protocols_full", kwlist, &PyGstURIHandler_Type, &self, &py_type))
+ return NULL;
+ if ((type = pyg_type_from_object(py_type)) == 0)
+ return NULL;
+ iface = g_type_interface_peek(g_type_class_peek(pyg_type_from_object(cls)), GST_TYPE_URI_HANDLER);
+ if (iface->get_protocols_full)
+ ret = iface->get_protocols_full(type);
+ else {
+ PyErr_SetString(PyExc_NotImplementedError, "interface method GstURIHandler.get_protocols_full not implemented");
+ return NULL;
+ }
+ if (ret) {
+ guint size = g_strv_length(ret);
+ PyObject *py_ret = PyTuple_New(size);
+ gint i;
+ for (i = 0; i < size; i++)
+ PyTuple_SetItem(py_ret, i,
+ PyString_FromString(ret[i]));
+ return py_ret;
+ }
+ return PyTuple_New (0);
+
+}
%%
override g_error_new kwargs
PyModule_AddStringConstant (m, "TAG_LICENSE_URI", GST_TAG_LICENSE_URI);
#if ((GST_VERSION_MICRO >= 15) || (GST_VERSION_MICRO == 14 && GST_VERSION_NANO > 0))
PyModule_AddStringConstant (m, "TAG_COMPOSER", GST_TAG_COMPOSER);
+ PyModule_AddStringConstant (m, "TAG_ARTIST_SORTNAME", GST_TAG_ARTIST_SORTNAME);
+ PyModule_AddStringConstant (m, "TAG_ALBUM_SORTNAME", GST_TAG_ALBUM_SORTNAME);
+ PyModule_AddStringConstant (m, "TAG_TITLE_SORTNAME", GST_TAG_TITLE_SORTNAME);
#endif
#endif
#endif