gstreamer/gst/interfaces.defs
Edward Hervey 31033595e4 gst/arg-types.py: GstMiniObject used as virtual methods parameters should be unreffed before calling the method and t...
Original commit message from CVS:
* gst/arg-types.py:
GstMiniObject used as virtual methods parameters should be unreffed
before calling the method and the ref-ed.
Added Params and Returns for const-gchar*, GType and gulong so the
code generator can generate more virtual methods handlers/proxys.
* gst/gst-types.defs:
* gst/gst.defs:
* gst/interfaces.defs:
Added vtable and virtual method definition for interfaces so we can properly use virtual
methods from those interfaces in python.
2006-04-28 15:07:41 +00:00

786 lines
16 KiB
Scheme

;; -*- scheme -*-
(include "xoverlay.defs")
;; object definitions ...
;;
;; interface definitions ...
;;
(define-interface ColorBalance
(in-module "Gst")
(c-name "GstColorBalance")
(gtype-id "GST_TYPE_COLOR_BALANCE")
(vtable "GstColorBalanceClass")
)
(define-object ColorBalanceChannel
(in-module "Gst")
(parent "GstObject")
(c-name "GstColorBalanceChannel")
(gtype-id "GST_TYPE_COLOR_BALANCE_CHANNEL")
(fields
'("gchar*" "label")
'("gint" "min_value")
'("gint" "max_value")
)
)
(define-interface Mixer
(in-module "Gst")
(c-name "GstMixer")
(gtype-id "GST_TYPE_MIXER")
(fields
'("GstMixerType" "mixer_type")
)
(vtable "GstMixerClass")
)
(define-object MixerTrack
(in-module "Gst")
(parent "GObject")
(c-name "GstMixerTrack")
(gtype-id "GST_TYPE_MIXER_TRACK")
(fields
'("gchar*" "label")
'("GstMixerTrackFlags" "flags")
'("gint" "num_channels")
'("gint" "min_volume")
'("gint" "max_volume")
)
)
(define-object MixerOptions
(in-module "Gst")
(parent "GstMixerTrack")
(c-name "GstMixerOptions")
(gtype-id "GST_TYPE_MIXER_OPTIONS")
)
(define-interface Navigation
(in-module "Gst")
(c-name "GstNavigation")
(gtype-id "GST_TYPE_NAVIGATION")
(vtable "GstNavigationInterface")
)
(define-interface PropertyProbe
(in-module "Gst")
(c-name "GstPropertyProbe")
(gtype-id "GST_TYPE_PROPERTY_PROBE")
(vtable "GstPropertyProbeInterface")
)
(define-interface Tuner
(in-module "Gst")
(c-name "GstTuner")
(gtype-id "GST_TYPE_TUNER")
(vtable "GstTunerClass")
)
(define-object TunerChannel
(in-module "Gst")
(parent "GstObject")
(c-name "GstTunerChannel")
(gtype-id "GST_TYPE_TUNER_CHANNEL")
(fields
'("gchar*" "label")
'("GstTunerChannelFlags" "flags")
'("gfloat" "freq_multiplicator")
'("gulong" "min_frequency")
'("gulong" "max_frequency")
'("gint" "min_signal")
'("gint" "max_signal"))
)
(define-object TunerNorm
(in-module "Gst")
(parent "GstObject")
(c-name "GstTunerNorm")
(gtype-id "GST_TYPE_TUNER_NORM")
(fields
'("gchar*" "label")
'("GValue*" "framerate"))
)
;; Enumerations and flags ...
(define-enum ColorBalanceType
(in-module "Gst")
(c-name "GstColorBalanceType")
(gtype-id "GST_TYPE_COLOR_BALANCE_TYPE")
(values
'("hardware" "GST_COLOR_BALANCE_HARDWARE")
'("software" "GST_COLOR_BALANCE_SOFTWARE")
)
)
(define-enum MixerType
(in-module "Gst")
(c-name "GstMixerType")
(gtype-id "GST_TYPE_MIXER_TYPE")
(values
'("hardware" "GST_MIXER_HARDWARE")
'("software" "GST_MIXER_SOFTWARE")
)
)
(define-flags MixerTrackFlags
(in-module "Gst")
(c-name "GstMixerTrackFlags")
(gtype-id "GST_TYPE_MIXER_TRACK_FLAGS")
(values
'("input" "GST_MIXER_TRACK_INPUT")
'("output" "GST_MIXER_TRACK_OUTPUT")
'("mute" "GST_MIXER_TRACK_MUTE")
'("record" "GST_MIXER_TRACK_RECORD")
'("master" "GST_MIXER_TRACK_MASTER")
'("software" "GST_MIXER_TRACK_SOFTWARE")
)
)
(define-flags TunerChannelFlags
(in-module "Gst")
(c-name "GstTunerChannelFlags")
(gtype-id "GST_TYPE_TUNER_CHANNEL_FLAGS")
(values
'("input" "GST_TUNER_CHANNEL_INPUT")
'("output" "GST_TUNER_CHANNEL_OUTPUT")
'("frequency" "GST_TUNER_CHANNEL_FREQUENCY")
'("audio" "GST_TUNER_CHANNEL_AUDIO")
)
)
;; From /opt/gnome/include/gstreamer-0.7/gst/colorbalance/colorbalance.h
(define-function gst_color_balance_get_type
(c-name "gst_color_balance_get_type")
(return-type "GType")
)
(define-method list_colorbalance_channels
(of-object "GstColorBalance")
(c-name "gst_color_balance_list_channels")
(return-type "const-GList*")
)
(define-method set_value
(of-object "GstColorBalance")
(c-name "gst_color_balance_set_value")
(return-type "none")
(parameters
'("GstColorBalanceChannel*" "channel")
'("gint" "value")
)
)
(define-method get_value
(of-object "GstColorBalance")
(c-name "gst_color_balance_get_value")
(return-type "gint")
(parameters
'("GstColorBalanceChannel*" "channel")
)
)
(define-method value_changed
(of-object "GstColorBalance")
(c-name "gst_color_balance_value_changed")
(return-type "none")
(parameters
'("GstColorBalanceChannel*" "channel")
'("gint" "value")
)
)
(define-virtual list_channels
(of-object "GstColorBalance")
(return-type "const-GList*")
)
(define-virtual set_value
(of-object "GstColorBalance")
(return-type "none")
(parameters
'("GstColorBalanceChannel*" "channel")
'("gint" "value")
)
)
(define-virtual get_value
(of-object "GstColorBalance")
(return-type "gint")
(parameters
'("GstColorBalanceChannel*" "channel")
)
)
;; From /opt/gnome/include/gstreamer-0.7/gst/mixer/mixer.h
(define-function gst_mixer_get_type
(c-name "gst_mixer_get_type")
(return-type "GType")
)
(define-method list_tracks
(of-object "GstMixer")
(c-name "gst_mixer_list_tracks")
(return-type "const-GList*")
)
(define-method set_volume
(of-object "GstMixer")
(c-name "gst_mixer_set_volume")
(return-type "none")
(parameters
'("GstMixerTrack*" "track")
'("gint*" "volumes")
)
)
(define-method get_volume
(of-object "GstMixer")
(c-name "gst_mixer_get_volume")
(return-type "none")
(parameters
'("GstMixerTrack*" "track")
'("gint*" "volumes")
)
)
(define-method set_mute
(of-object "GstMixer")
(c-name "gst_mixer_set_mute")
(return-type "none")
(parameters
'("GstMixerTrack*" "track")
'("gboolean" "mute")
)
)
(define-method set_record
(of-object "GstMixer")
(c-name "gst_mixer_set_record")
(return-type "none")
(parameters
'("GstMixerTrack*" "track")
'("gboolean" "record")
)
)
(define-method set_option
(of-object "GstMixer")
(c-name "gst_mixer_set_option")
(return-type "none")
(parameters
'("GstMixerOptions*" "opts")
'("gchar*" "value")
)
)
(define-method get_option
(of-object "GstMixer")
(c-name "gst_mixer_get_option")
(return-type "const-gchar*")
(parameters
'("GstMixerOptions*" "opts")
)
)
(define-method mute_toggled
(of-object "GstMixer")
(c-name "gst_mixer_mute_toggled")
(return-type "none")
(parameters
'("GstMixerTrack*" "track")
'("gboolean" "mute")
)
)
(define-method record_toggled
(of-object "GstMixer")
(c-name "gst_mixer_record_toggled")
(return-type "none")
(parameters
'("GstMixerTrack*" "track")
'("gboolean" "record")
)
)
(define-method volume_changed
(of-object "GstMixer")
(c-name "gst_mixer_volume_changed")
(return-type "none")
(parameters
'("GstMixerTrack*" "track")
'("gint*" "volumes")
)
)
(define-method option_changed
(of-object "GstMixer")
(c-name "gst_mixer_option_changed")
(return-type "none")
(parameters
'("GstMixerOptions*" "opts")
'("gchar*" "value")
)
)
(define-virtual list_tracks
(of-object "GstMixer")
(return-type "const-GList*")
)
(define-virtual set_volume
(of-object "GstMixer")
(return-type "none")
(parameters
'("GstMixerTrack*" "track")
'("gint*" "volumes")
)
)
(define-virtual get_volume
(of-object "GstMixer")
(return-type "none")
(parameters
'("GstMixerTrack*" "track")
'("gint*" "volumes")
)
)
(define-virtual set_mute
(of-object "GstMixer")
(return-type "none")
(parameters
'("GstMixerTrack*" "track")
'("gboolean" "mute")
)
)
(define-virtual set_record
(of-object "GstMixer")
(return-type "none")
(parameters
'("GstMixerTrack*" "track")
'("gboolean" "record")
)
)
;; From ../gst-plugins-base/gst-libs/gst/interfaces/mixeroptions.h
(define-function gst_mixer_options_get_type
(c-name "gst_mixer_options_get_type")
(return-type "GType")
)
(define-method get_values
(of-object "GstMixerOptions")
(c-name "gst_mixer_options_get_values")
(return-type "GList*")
)
;; From /opt/gnome/include/gstreamer-0.7/gst/navigation/navigation.h
(define-function gst_navigation_get_type
(c-name "gst_navigation_get_type")
(return-type "GType")
)
(define-method send_event
(of-object "GstNavigation")
(c-name "gst_navigation_send_event")
(return-type "none")
(parameters
'("GstStructure*" "structure")
)
)
(define-method send_key_event
(of-object "GstNavigation")
(c-name "gst_navigation_send_key_event")
(return-type "none")
(parameters
'("const-char*" "event")
'("const-char*" "key")
)
)
(define-method send_mouse_event
(of-object "GstNavigation")
(c-name "gst_navigation_send_mouse_event")
(return-type "none")
(parameters
'("const-char*" "event")
'("int" "button")
'("double" "x")
'("double" "y")
)
)
(define-virtual send_event
(of-object "GstNavigation")
(return-type "none")
(parameters
'("GstStructure*" "structure")
)
)
;; From /opt/gnome/include/gstreamer-0.7/gst/propertyprobe/propertyprobe.h
(define-function gst_property_probe_get_type
(c-name "gst_property_probe_get_type")
(return-type "GType")
)
(define-method get_properties
(of-object "GstPropertyProbe")
(c-name "gst_property_probe_get_properties")
(return-type "const-GList*")
)
(define-method get_property
(of-object "GstPropertyProbe")
(c-name "gst_property_probe_get_property")
(return-type "const-GParamSpec*")
(parameters
'("const-gchar*" "name")
)
)
(define-method probe_property
(of-object "GstPropertyProbe")
(c-name "gst_property_probe_probe_property")
(return-type "none")
(parameters
'("const-GParamSpec*" "pspec")
)
)
(define-method probe_property_name
(of-object "GstPropertyProbe")
(c-name "gst_property_probe_probe_property_name")
(return-type "none")
(parameters
'("const-gchar*" "name")
)
)
(define-method needs_probe
(of-object "GstPropertyProbe")
(c-name "gst_property_probe_needs_probe")
(return-type "gboolean")
(parameters
'("const-GParamSpec*" "pspec")
)
)
(define-method needs_probe_name
(of-object "GstPropertyProbe")
(c-name "gst_property_probe_needs_probe_name")
(return-type "gboolean")
(parameters
'("const-gchar*" "name")
)
)
(define-method get_values
(of-object "GstPropertyProbe")
(c-name "gst_property_probe_get_values")
(return-type "GValueArray*")
(parameters
'("const-GParamSpec*" "pspec")
)
)
(define-method get_values_name
(of-object "GstPropertyProbe")
(c-name "gst_property_probe_get_values_name")
(return-type "GValueArray*")
(parameters
'("const-gchar*" "name")
)
)
(define-method probe_and_get_values
(of-object "GstPropertyProbe")
(c-name "gst_property_probe_probe_and_get_values")
(return-type "GValueArray*")
(parameters
'("const-GParamSpec*" "pspec")
)
)
(define-method probe_and_get_values_name
(of-object "GstPropertyProbe")
(c-name "gst_property_probe_probe_and_get_values_name")
(return-type "GValueArray*")
(parameters
'("const-gchar*" "name")
)
)
(define-virtual get_properties
(of-object "GstPropertyProbe")
(return-type "const-GList*")
)
(define-virtual needs_probe
(of-object "GstPropertyProbe")
(return-type "gboolean")
(parameters
'("guint" "prop_id")
'("const-GParamSpec*" "pspec")
)
)
(define-virtual probe_property
(of-object "GstPropertyProbe")
(return-type "none")
(parameters
'("guint" "prop_id")
'("const-GParamSpec*" "pspec")
)
)
(define-virtual get_values
(of-object "GstPropertyProbe")
(return-type "GValueArray*")
(parameters
'("guint" "prop_id")
'("const-GParamSpec*" "pspec")
)
)
;; From /opt/gnome/include/gstreamer-0.7/gst/tuner/tuner.h
(define-function gst_tuner_get_type
(c-name "gst_tuner_get_type")
(return-type "GType")
)
(define-method list_channels
(of-object "GstTuner")
(c-name "gst_tuner_list_channels")
(return-type "const-GList*")
)
(define-method set_channel
(of-object "GstTuner")
(c-name "gst_tuner_set_channel")
(return-type "none")
(parameters
'("GstTunerChannel*" "channel")
)
)
(define-method get_channel
(of-object "GstTuner")
(c-name "gst_tuner_get_channel")
(return-type "GstTunerChannel*")
)
(define-method list_norms
(of-object "GstTuner")
(c-name "gst_tuner_list_norms")
(return-type "const-GList*")
)
(define-method set_norm
(of-object "GstTuner")
(c-name "gst_tuner_set_norm")
(return-type "none")
(parameters
'("GstTunerNorm*" "channel")
)
)
(define-method get_norm
(of-object "GstTuner")
(c-name "gst_tuner_get_norm")
(return-type "GstTunerNorm*")
)
(define-method set_frequency
(of-object "GstTuner")
(c-name "gst_tuner_set_frequency")
(return-type "none")
(parameters
'("GstTunerChannel*" "channel")
'("gulong" "frequency")
)
)
(define-method get_frequency
(of-object "GstTuner")
(c-name "gst_tuner_get_frequency")
(return-type "gulong")
(parameters
'("GstTunerChannel*" "channel")
)
)
(define-method signal_strength
(of-object "GstTuner")
(c-name "gst_tuner_signal_strength")
(return-type "gint")
(parameters
'("GstTunerChannel*" "channel")
)
)
(define-method find_norm_by_name
(of-object "GstTuner")
(c-name "gst_tuner_find_norm_by_name")
(return-type "GstTunerNorm*")
(parameters
'("gchar*" "norm")
)
)
(define-method find_channel_by_name
(of-object "GstTuner")
(c-name "gst_tuner_find_channel_by_name")
(return-type "GstTunerChannel*")
(parameters
'("gchar*" "channel")
)
)
(define-method channel_changed
(of-object "GstTuner")
(c-name "gst_tuner_channel_changed")
(return-type "none")
(parameters
'("GstTunerChannel*" "channel")
)
)
(define-method norm_changed
(of-object "GstTuner")
(c-name "gst_tuner_norm_changed")
(return-type "none")
(parameters
'("GstTunerNorm*" "norm")
)
)
(define-method frequency_changed
(of-object "GstTuner")
(c-name "gst_tuner_frequency_changed")
(return-type "none")
(parameters
'("GstTunerChannel*" "channel")
'("gulong" "frequency")
)
)
(define-method signal_changed
(of-object "GstTuner")
(c-name "gst_tuner_signal_changed")
(return-type "none")
(parameters
'("GstTunerChannel*" "channel")
'("gint" "signal")
)
)
(define-virtual list_channels
(of-object "GstTuner")
(return-type "const-GList*")
)
(define-virtual set_channel
(of-object "GstTuner")
(return-type "none")
(parameters
'("GstTunerChannel*" "channel")
)
)
(define-virtual get_channel
(of-object "GstTuner")
(return-type "GstTunerChannel*")
)
(define-virtual list_norms
(of-object "GstTuner")
(return-type "const-GList*")
)
(define-virtual set_norm
(of-object "GstTuner")
(return-type "none")
(parameters
'("GstTunerNorm*" "channel")
)
)
(define-virtual get_norm
(of-object "GstTuner")
(return-type "GstTunerNorm*")
)
(define-virtual set_frequency
(of-object "GstTuner")
(return-type "none")
(parameters
'("GstTunerChannel*" "channel")
'("gulong" "frequency")
)
)
(define-virtual get_frequency
(of-object "GstTuner")
(return-type "gulong")
(parameters
'("GstTunerChannel*" "channel")
)
)
(define-virtual signal_strength
(of-object "GstTuner")
(return-type "gint")
(parameters
'("GstTunerChannel*" "channel")
)
)
;; From /opt/gnome/include/gstreamer-0.7/gst/xwindowlistener/xwindowlistener.h
(define-function gst_x_window_listener_get_type
(c-name "gst_x_window_listener_get_type")
(return-type "GType")
)
(define-function gst_x_window_listener_new
(c-name "gst_x_window_listener_new")
(is-constructor-of "GstXWindowListener")
(return-type "GstXWindowListener*")
(parameters
'("gchar*" "display")
'("MapWindowFunc" "map_window_func")
'("SetWindowFunc" "set_window_func")
'("gpointer" "private_data")
)
)
(define-method set_xid
(of-object "GstXWindowListener")
(c-name "gst_x_window_listener_set_xid")
(return-type "none")
(parameters
'("XID" "id")
)
)