mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
Original commit message from CVS: * Makefile.am: add gstinterfaces dir * configure.ac: get interfaces include dirs * gstreamer/.cvsignore: add .py[co] * gstreamer/0.6.defs: * gstreamer/0.6.override: * gstreamer/0.7.defs: * gstreamer/0.7.override: * gstreamer/common.defs: * gstreamer/common.override: rearrange code for both 0.6 and 0.7 support * gstreamer/Makefile.am: add -fno-strict-aliasing due to python issues * gstinterfaces/.cvsignore: * gstinterfaces/0.7.c: * gstinterfaces/0.7.defs: * gstinterfaces/0.7.h: * gstinterfaces/0.7.override: * gstinterfaces/Makefile.am: * gstinterfaces/__init__.py: * gstinterfaces/arg-types.py: * gstinterfaces/common.c: * gstinterfaces/common.defs: * gstinterfaces/common.h: * gstinterfaces/common.override: * gstinterfaces/gstinterfacesmodule.c: messy start of interfaces handling
83 lines
1.3 KiB
Text
83 lines
1.3 KiB
Text
;;
|
|
;; Boxed types
|
|
;;
|
|
|
|
(define-boxed Buffer
|
|
(in-module "Gst")
|
|
(c-name "GstBuffer")
|
|
(gtype-id "GST_TYPE_BUFFER")
|
|
)
|
|
|
|
(define-boxed Caps
|
|
(in-module "Gst")
|
|
(c-name "GstCaps")
|
|
(gtype-id "GST_TYPE_CAPS")
|
|
)
|
|
|
|
(define-boxed Event
|
|
(in-module "Gst")
|
|
(c-name "GstEvent")
|
|
(gtype-id "GST_TYPE_EVENT")
|
|
)
|
|
|
|
;;
|
|
;; 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")
|
|
)
|
|
)
|
|
|
|
;;
|
|
;; Element constructor override; uses a nonexistant make_element
|
|
;; which is defined in gstreamer.overrides
|
|
;;
|
|
|
|
(define-function gst_element_factory_make_element
|
|
(is-constructor-of "GstElement")
|
|
(c-name "gst_element_factory_make_element")
|
|
(return-type "GstElement*")
|
|
(parameters
|
|
'("const-gchar*" "elementname")
|
|
'("const-gchar*" "name")
|
|
)
|
|
)
|