mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +00:00
gst/: Make it compilable on Python 2.4 and Python 2.5
Original commit message from CVS: * gst/common.h: * gst/gsttaglist.override: Make it compilable on Python 2.4 and Python 2.5
This commit is contained in:
parent
1b1b56c762
commit
2d61ba0895
3 changed files with 17 additions and 5 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2007-03-18 Johan Dahlin <jdahlin@async.com.br>
|
||||||
|
|
||||||
|
* gst/common.h:
|
||||||
|
* gst/gsttaglist.override:
|
||||||
|
|
||||||
|
Make it compilable on Python 2.4 and Python 2.5
|
||||||
|
|
||||||
2007-03-18 Johan Dahlin <jdahlin@async.com.br>
|
2007-03-18 Johan Dahlin <jdahlin@async.com.br>
|
||||||
|
|
||||||
reviewed by: Edward Hervey <edward@fluendo.com>
|
reviewed by: Edward Hervey <edward@fluendo.com>
|
||||||
|
|
|
@ -35,6 +35,11 @@
|
||||||
typedef destructor freefunc;
|
typedef destructor freefunc;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if PY_VERSION_HEX < 0x02050000
|
||||||
|
#define ssizeargfunc intargfunc
|
||||||
|
#define ssizessizeargfunc intintargfunc
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
PyGObject *pad;
|
PyGObject *pad;
|
||||||
GClosure *link_function;
|
GClosure *link_function;
|
||||||
|
|
|
@ -129,13 +129,13 @@ _wrap_gst_tag_list_contains(PyGObject *self, PyObject *py_key)
|
||||||
static PySequenceMethods _wrap_gst_tag_list_tp_as_sequence = {
|
static PySequenceMethods _wrap_gst_tag_list_tp_as_sequence = {
|
||||||
(inquiry)NULL,
|
(inquiry)NULL,
|
||||||
(binaryfunc)NULL,
|
(binaryfunc)NULL,
|
||||||
(intargfunc)NULL,
|
(ssizeargfunc)NULL,
|
||||||
(intargfunc)NULL,
|
(ssizeargfunc)NULL,
|
||||||
(intintargfunc)NULL,
|
(ssizessizeargfunc)NULL,
|
||||||
(intobjargproc)NULL,
|
(intobjargproc)NULL,
|
||||||
(intintobjargproc)NULL,
|
(intintobjargproc)NULL,
|
||||||
(objobjproc)_wrap_gst_tag_list_contains,
|
(objobjproc)_wrap_gst_tag_list_contains,
|
||||||
(binaryfunc)NULL,
|
(binaryfunc)NULL,
|
||||||
(intargfunc)NULL,
|
(ssizeargfunc)NULL,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue