Updated core API additions

Original commit message from CVS:
* configure.ac:
* gst/Makefile.am:
* gst/gst-0.10.20.ignore:
* gst/gst-0.10.22.ignore:
* gst/gst-types.defs:
* gst/gst.defs:
* gst/gstversion.override.in:
Updated core API additions
This commit is contained in:
Edward Hervey 2008-12-30 19:20:31 +00:00
parent fcf0d4fa2c
commit e9d605a75c
9 changed files with 348 additions and 1 deletions

View file

@ -1,3 +1,14 @@
2008-12-30 Edward Hervey <edward.hervey@collabora.co.uk>
* configure.ac:
* gst/Makefile.am:
* gst/gst-0.10.20.ignore:
* gst/gst-0.10.22.ignore:
* gst/gst-types.defs:
* gst/gst.defs:
* gst/gstversion.override.in:
Updated core API additions
2008-12-09 Alessandro Decina <alessandro.decina@collabora.co.uk>
* gst/__init__.py:

2
common

@ -1 +1 @@
Subproject commit a8728f3f810904c94f0b6678a7633d551514f335
Subproject commit 5dc8ae302733ce1aae5b1aaa613ce77a8ae4b3d9

View file

@ -152,6 +152,13 @@ then
IGNORE_GST_0_10_21=""
fi
if test $GST_MINOR_VERSION -lt "22"
then
IGNORE_GST_0_10_22="gst-0.10.22.ignore"
else
IGNORE_GST_0_10_22=""
fi
dnl plugins base
if test $GST_PB_MINOR_VERSION -lt "14"
then
@ -183,6 +190,7 @@ else
IGNORE_GST_0_10_18=""
IGNORE_GST_0_10_20=""
IGNORE_GST_0_10_21=""
IGNORE_GST_0_10_22=""
IGNORE_GST_PB_0_10_14=""
IGNORE_GST_PB_0_10_16=""
IGNORE_GST_PB_0_10_18=""
@ -196,6 +204,7 @@ AC_SUBST(IGNORE_GST_0_10_16)
AC_SUBST(IGNORE_GST_0_10_18)
AC_SUBST(IGNORE_GST_0_10_20)
AC_SUBST(IGNORE_GST_0_10_21)
AC_SUBST(IGNORE_GST_0_10_22)
AC_SUBST(IGNORE_GST_PB_0_10_14)
AC_SUBST(IGNORE_GST_PB_0_10_16)
AC_SUBST(IGNORE_GST_PB_0_10_18)

View file

@ -32,6 +32,7 @@ versioned_overrides = \
gst-0.10.18.ignore \
gst-0.10.20.ignore \
gst-0.10.21.ignore \
gst-0.10.22.ignore \
gst-pb-0.10.14.ignore \
gst-pb-0.10.16.ignore \
gst-pb-0.10.18.ignore \

View file

@ -9,8 +9,26 @@ ignore
gst_parse_context_free
gst_parse_launch_full
gst_parse_launchv_full
gst_preset_get_preset_names
gst_preset_get_property_names
gst_preset_load_preset
gst_preset_save_preset
gst_preset_rename_preset
gst_preset_delete_preset
gst_preset_set_meta
gst_preset_get_meta
gst_query_new_buffering
gst_query_set_buffering_percent
gst_query_parse_buffering_percent
gst_query_set_buffering_stats
gst_query_parse_buffering_stats
gst_query_set_buffering_range
gst_query_parse_buffering_range
gst_type_find_suggest_simple
gst_bin_find_unlinked_pad
%%
ignore-type
GstParseFlags
GstBufferingMode
GstPreset
%%

18
gst/gst-0.10.22.ignore Normal file
View file

@ -0,0 +1,18 @@
%%
ignore
gst_bin_recalculate_latency
gst_event_get_seqnum
gst_event_set_seqnum
gst_message_set_seqnum
gst_message_new_structure_change
gst_message_parse_structure_change
gst_query_new_uri
gst_query_parse_uri
gst_query_set_uri
gst_tag_setter_reset_tags
gst_util_seqnum_next
gst_util_seqnum_compare
%%
ignore-type
GstStructureChangeType
%%

View file

@ -592,6 +592,7 @@
'("accurate" "GST_SEEK_FLAG_ACCURATE")
'("key-unit" "GST_SEEK_FLAG_KEY_UNIT")
'("segment" "GST_SEEK_FLAG_SEGMENT")
'("skip" "GST_SEEK_FLAG_SKIP")
)
)
@ -773,6 +774,16 @@
)
)
(define-enum StructureChangeType
(in-module "Gst")
(c-name "GstStructureChangeType")
(gtype-id "GST_TYPE_STRUCTURE_CHANGE_TYPE")
(values
'("link" "GST_STRUCTURE_CHANGE_TYPE_PAD_LINK")
'("unlink" "GST_STRUCTURE_CHANGE_TYPE_PAD_UNLINK")
)
)
(define-flags MiniObjectFlags
(in-module "Gst")
(c-name "GstMiniObjectFlags")
@ -954,6 +965,8 @@
'("convert" "GST_QUERY_CONVERT")
'("formats" "GST_QUERY_FORMATS")
'("buffering" "GST_QUERY_BUFFERING")
'("custom" "GST_QUERY_CUSTOM")
'("uri" "GST_QUERY_URI")
)
)
@ -1114,3 +1127,8 @@
(vtable "GstImplementsInterfaceClass")
)
(define-interface Preset
(in-module "Gst")
(c-name "GstPreset")
(gtype-id "GST_TYPE_PRESET")
)

View file

@ -219,6 +219,12 @@
)
)
(define-method recalculate_latency
(of-object "GstBin")
(c-name "gst_bin_recalculate_latency")
(return-type "gboolean")
)
(define-virtual add_element
(of-object "GstBin")
(return-type "gboolean")
@ -1988,6 +1994,21 @@
)
)
(define-method get_seqnum
(of-object "GstEvent")
(c-name "gst_event_get_seqnum")
(return-type "guint32")
)
(define-method set_seqnum
(of-object "GstEvent")
(c-name "gst_event_set_seqnum")
(return-type "none")
(parameters
'("guint32" "seqnum")
)
)
(define-function event_new_flush_start
(c-name "gst_event_new_flush_start")
(return-type "GstEvent*")
@ -2990,6 +3011,15 @@
(return-type "GQuark")
)
(define-method set_seqnum
(of-object "GstMessage")
(c-name "gst_message_set_seqnum")
(return-type "none")
(parameters
'("guint32" "seqnum")
)
)
(define-function message_new_eos
(c-name "gst_message_new_eos")
(return-type "GstMessage*")
@ -3184,6 +3214,29 @@
)
)
(define-function message_new_structure_change
(c-name "gst_message_new_structure_change")
(return-type "GstMessage*")
(caller-owns-return #t)
(parameters
'("GstObject*" "src")
'("GstStructureChangeType" "type")
'("GstElement*" "owner")
'("gboolean" "busy")
)
)
(define-method parse_structure_change
(of-object "GstMessage")
(c-name "gst_message_parse_structure_change")
(return-type "none")
(parameters
'("GstStructureChangeType*" "type")
'("GstElement**" "owner")
'("gboolean*" "busy")
)
)
(define-function message_new_custom
(c-name "gst_message_new_custom")
(return-type "GstMessage*")
@ -4902,6 +4955,83 @@
)
)
;; From gstpreset.h
(define-function gst_preset_get_type
(c-name "gst_preset_get_type")
(return-type "GType")
)
(define-method get_preset_names
(of-object "GstPreset")
(c-name "gst_preset_get_preset_names")
(return-type "gchar**")
)
(define-method get_property_names
(of-object "GstPreset")
(c-name "gst_preset_get_property_names")
(return-type "gchar**")
)
(define-method load_preset
(of-object "GstPreset")
(c-name "gst_preset_load_preset")
(return-type "gboolean")
(parameters
'("const-gchar*" "name")
)
)
(define-method save_preset
(of-object "GstPreset")
(c-name "gst_preset_save_preset")
(return-type "gboolean")
(parameters
'("const-gchar*" "name")
)
)
(define-method rename_preset
(of-object "GstPreset")
(c-name "gst_preset_rename_preset")
(return-type "gboolean")
(parameters
'("const-gchar*" "old_name")
'("const-gchar*" "new_name")
)
)
(define-method delete_preset
(of-object "GstPreset")
(c-name "gst_preset_delete_preset")
(return-type "gboolean")
(parameters
'("const-gchar*" "name")
)
)
(define-method set_meta
(of-object "GstPreset")
(c-name "gst_preset_set_meta")
(return-type "gboolean")
(parameters
'("const-gchar*" "name")
'("const-gchar*" "tag")
'("const-gchar*" "value")
)
)
(define-method get_meta
(of-object "GstPreset")
(c-name "gst_preset_get_meta")
(return-type "gboolean")
(parameters
'("const-gchar*" "name")
'("const-gchar*" "tag")
'("gchar**" "value")
)
)
;; From ../gstreamer/gst/gstquery.h
@ -5208,6 +5338,106 @@
)
)
(define-function query_new_buffering
(c-name "gst_query_new_buffering")
(return-type "GstQuery*")
(caller-owns-return #t)
(parameters
'("GstFormat" "format")
)
)
(define-method set_buffering_percent
(of-object "GstQuery")
(c-name "gst_query_set_buffering_percent")
(return-type "none")
(parameters
'("gboolean" "busy")
'("gint" "percent")
)
)
(define-method parse_buffering_percent
(of-object "GstQuery")
(c-name "gst_query_parse_buffering_percent")
(return-type "none")
(parameters
'("gboolean*" "busy")
'("gint*" "percent")
)
)
(define-method set_buffering_stats
(of-object "GstQuery")
(c-name "gst_query_set_buffering_stats")
(return-type "none")
(parameters
'("GstBufferingMode" "mode")
'("gint" "avg_in")
'("gint" "avg_out")
'("gint64" "buffering_left")
)
)
(define-method parse_buffering_stats
(of-object "GstQuery")
(c-name "gst_query_parse_buffering_stats")
(return-type "none")
(parameters
'("GstBufferingMode*" "mode")
'("gint*" "avg_in")
'("gint*" "avg_out")
'("gint64*" "buffering_left")
)
)
(define-method set_buffering_range
(of-object "GstQuery")
(c-name "gst_query_set_buffering_range")
(return-type "none")
(parameters
'("GstFormat" "format")
'("gint64" "start")
'("gint64" "stop")
'("gint64" "estimated_total")
)
)
(define-method parse_buffering_range
(of-object "GstQuery")
(c-name "gst_query_parse_buffering_range")
(return-type "none")
(parameters
'("GstFormat*" "format")
'("gint64*" "start")
'("gint64*" "stop")
'("gint64*" "estimated_total")
)
)
(define-function query_new_uri
(c-name "gst_query_new_uri")
(caller-owns-return #t)
(return-type "GstQuery*")
)
(define-method parse_uri
(of-object "GstQuery")
(c-name "gst_query_parse_uri")
(return-type "none")
(parameters
'("gchar**" "uri")
)
)
(define-method set_uri
(of-object "GstQuery")
(c-name "gst_query_set_uri")
(return-type "none")
(parameters
'("const-gchar*" "uri")
)
)
;; From ../gstreamer/gst/gstregistry.h
@ -6497,6 +6727,12 @@
(return-type "GType")
)
(define-method reset_tags
(of-object "GstTagSetter")
(c-name "gst_tag_setter_reset_tags")
(return-type "none")
)
(define-method merge_tags
(of-object "GstTagSetter")
(c-name "gst_tag_setter_merge_tags")
@ -6752,6 +6988,18 @@
)
)
(define-method suggest_simple
(of-object "GstTypeFind")
(c-name "gst_type_find_suggest_simple")
(return-type "none")
(parameters
'("guint" "probability")
'("const-char*" "media_type")
'("const-char*" "fieldname")
)
(varargs #t)
)
(define-method get_length
(of-object "GstTypeFind")
(c-name "gst_type_find_get_length")
@ -7012,6 +7260,20 @@
)
)
(define-function util_seqnum_next
(c-name "gst_util_seqnum_next")
(return-type "guint32")
)
(define-function util_seqnum_compare
(c-name "gst_util_seqnum_compare")
(return-type "gint32")
(parameters
'("guint32" "s1")
'("guint32" "s2")
)
)
(define-function print_pad_caps
(c-name "gst_print_pad_caps")
(return-type "none")
@ -7362,6 +7624,15 @@
(varargs #t)
)
(define-method find_unlinked_pad
(of-object "GstBin")
(c-name "gst_bin_find_unlinked_pad")
(return-type "GstPad*")
(parameters
'("GstPadDirection" "direction")
)
)
(define-method find_unconnected_pad
(of-object "GstBin")
(c-name "gst_bin_find_unconnected_pad")

View file

@ -10,5 +10,6 @@ include
@IGNORE_GST_PB_0_10_18@
@IGNORE_GST_0_10_20@
@IGNORE_GST_0_10_21@
@IGNORE_GST_0_10_22@
@IGNORE_GST_LOADSAVE@
%%