2002-10-04 05:40:37 +00:00
|
|
|
;;
|
|
|
|
;; 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")
|
|
|
|
)
|
|
|
|
|
2003-02-05 15:53:58 +00:00
|
|
|
;;
|
|
|
|
;; 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")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
2002-05-10 03:59:33 +00:00
|
|
|
;;
|
|
|
|
;; HACK
|
|
|
|
;;
|
|
|
|
|
2002-10-04 05:40:37 +00:00
|
|
|
(define-method get_data
|
|
|
|
(of-object "GstBuffer")
|
2002-05-10 03:59:33 +00:00
|
|
|
(c-name "gst_buffer_get_data")
|
|
|
|
(return-type "char*")
|
|
|
|
)
|
|
|
|
|
2002-10-04 05:40:37 +00:00
|
|
|
(define-method set_data
|
|
|
|
(of-object "GstBuffer")
|
2002-05-10 03:59:33 +00:00
|
|
|
(c-name "gst_buffer_set_data")
|
|
|
|
(return-type "none")
|
|
|
|
(parameters
|
|
|
|
'("char*" "data")
|
|
|
|
)
|
|
|
|
)
|
2003-10-04 13:18:56 +00:00
|
|
|
|
|
|
|
;;
|
|
|
|
;; Element constructor override; uses a nonexistant make_element
|
|
|
|
;; which is defined in gstreamer.overrides
|
|
|
|
;;
|
Mass change to support compiling for both 0.6 and 0.7. Common support is now in common.{defs,override,c,h}. Specifi...
Original commit message from CVS:
Mass change to support compiling for both 0.6 and 0.7. Common support is now
in common.{defs,override,c,h}. Specific version support is in
{0.6,0.7}.{defs,override,c,h}. The common and version specific files are
merged and/or used as needed.
common.override: add gst_version
2003-10-10 04:21:21 +00:00
|
|
|
|
2003-10-04 13:18:56 +00:00
|
|
|
(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")
|
|
|
|
)
|
|
|
|
)
|