diff --git a/docs/gstreamer-audio/docs.md b/docs/gstreamer-audio/docs.md index 31e480149..e021d0152 100644 --- a/docs/gstreamer-audio/docs.md +++ b/docs/gstreamer-audio/docs.md @@ -172,11 +172,11 @@ not allowed in negotiated caps. It is not allowed in any situation other than the one mentioned below to have less bits set in the channel mask than the number of channels. -`AudioChannelPosition::Mono` can only be used with a single mono channel that +[`Mono`](Self::Mono) can only be used with a single mono channel that has no direction information and would be mixed into all directional channels. This is expressed in caps by having a single channel and no channel mask. -`AudioChannelPosition::None` can only be used if all channels have this position. +[`None`](Self::None) can only be used if all channels have this position. This is expressed in caps by having a channel mask with no bits set. As another special case it is allowed to have two channels without a channel mask. @@ -279,7 +279,7 @@ base class of its expectation w.r.t. buffer handling. though they may or may not correspond to 1 (or more) audio format frame. * Input frame is provided to subclass' `handle_frame`. * If codec processing results in decoded data, subclass should call - `AudioDecoder::finish_frame` to have decoded data pushed + [`finish_frame`](Self::finish_frame) to have decoded data pushed downstream. * Just prior to actually pushing a buffer downstream, it is passed to `pre_push`. Subclass should either use this callback @@ -299,7 +299,7 @@ Subclass is responsible for providing pad template caps for source and sink pads. The pads need to be named "sink" and "src". It also needs to set the fixed caps on srcpad, when the format is ensured. This is typically when base class calls subclass' `set_format` function, though -it might be delayed until calling `AudioDecoder::finish_frame`. +it might be delayed until calling [`finish_frame`](Self::finish_frame). In summary, above process should have subclass concentrating on codec data processing while leaving other matters to base class, @@ -334,7 +334,7 @@ Things that subclass need to take care of: expectations in context. * Accept data in `handle_frame` and provide encoded results to - `AudioDecoder::finish_frame`. If it is prepared to perform + [`finish_frame`](Self::finish_frame). If it is prepared to perform PLC, it should also accept NULL data in `handle_frame` and provide for data for indicated duration. @@ -693,7 +693,7 @@ Subclass is responsible for providing pad template caps for source and sink pads. The pads need to be named "sink" and "src". It also needs to set the fixed caps on srcpad, when the format is ensured. This is typically when base class calls subclass' `set_format` function, though -it might be delayed until calling `AudioEncoder::finish_frame`. +it might be delayed until calling [`finish_frame`](Self::finish_frame). In summary, above process should have subclass concentrating on codec data processing while leaving other matters to base class, @@ -1470,17 +1470,17 @@ This interface is implemented by elements that provide a stream volume. Examples such elements are `volume` and `playbin`. Applications can use this interface to get or set the current stream volume. For this -the "volume" `gobject::Object` property can be used or the helper functions `StreamVolume::set_volume` +the "volume" `glib::object::Object` property can be used or the helper functions `StreamVolume::set_volume` and `StreamVolume::get_volume`. This volume is always a linear factor, i.e. 0.0 is muted 1.0 is 100%. For showing the volume in a GUI it might make sense to convert it to a different format by using `StreamVolume::convert_volume`. Volume sliders should usually use a cubic volume. -Separate from the volume the stream can also be muted by the "mute" `gobject::Object` property or +Separate from the volume the stream can also be muted by the "mute" `glib::object::Object` property or `StreamVolume::set_mute` and `StreamVolume::get_mute`. Elements that provide some kind of stream volume should implement the "volume" and -"mute" `gobject::Object` properties and handle setting and getting of them properly. +"mute" `glib::object::Object` properties and handle setting and getting of them properly. The volume property is defined to be a linear volume factor. # Implements diff --git a/docs/gstreamer-base/docs.md b/docs/gstreamer-base/docs.md index 7d1d58f19..00f64ecfa 100644 --- a/docs/gstreamer-base/docs.md +++ b/docs/gstreamer-base/docs.md @@ -7,7 +7,7 @@ a file. So if you have undefined buffer sizes and require a specific size, this object is for you. An adapter is created with `Adapter::new`. It can be freed again with -`gobject::ObjectExt::unref`. +`glib::object::ObjectExt::unref`. The theory of operation is like this: All buffers received are put into the adapter using `Adapter::push` and the data is then read back @@ -105,7 +105,7 @@ buffer pushed in it. [`glib::object::ObjectExt`](../glib/object/trait.ObjectExt.html) -Creates a new `Adapter`. Free with `gobject::ObjectExt::unref`. +Creates a new `Adapter`. Free with `glib::object::ObjectExt::unref`. # Returns diff --git a/docs/gstreamer-controller/docs.md b/docs/gstreamer-controller/docs.md index e6ae0ac66..d0157a45a 100644 --- a/docs/gstreamer-controller/docs.md +++ b/docs/gstreamer-controller/docs.md @@ -15,7 +15,7 @@ Trait containing all `ARGBControlBinding` methods. [`ARGBControlBinding`](struct.ARGBControlBinding.html) Create a new control-binding that attaches the given `gst::ControlSource` to the -`gobject::Object` property. +`glib::object::Object` property. ## `object` the object of the property ## `property_name` @@ -63,7 +63,7 @@ Trait containing all `DirectControlBinding` methods. [`DirectControlBinding`](struct.DirectControlBinding.html) Create a new control-binding that attaches the `gst::ControlSource` to the -`gobject::Object` property. It will map the control source range [0.0 ... 1.0] to +`glib::object::Object` property. It will map the control source range [0.0 ... 1.0] to the full target property range, and clip all values outside this range. ## `object` the object of the property @@ -77,7 +77,7 @@ the control source the new `DirectControlBinding` Create a new control-binding that attaches the `gst::ControlSource` to the -`gobject::Object` property. It will directly map the control source values to the +`glib::object::Object` property. It will directly map the control source values to the target property range without any transformations. ## `object` the object of the property @@ -94,7 +94,7 @@ the new `DirectControlBinding` control points. It supports several interpolation modes and property types. To use `InterpolationControlSource` get a new instance by calling -`InterpolationControlSource::new`, bind it to a `gobject::ParamSpec` and set some +`InterpolationControlSource::new`, bind it to a `glib::object::ParamSpec` and set some control points by calling `TimedValueControlSourceExt::set`. All functions are MT-safe. @@ -132,7 +132,7 @@ monotonic cubic interpolation, will not waveforms as control values. To use `LFOControlSource` get a new instance by calling -`LFOControlSource::new`, bind it to a `gobject::ParamSpec` and set the relevant +`LFOControlSource::new`, bind it to a `glib::object::ParamSpec` and set the relevant properties. All functions are MT-safe. @@ -317,7 +317,7 @@ The removed `gst::TimedValue` control points. It allows for a tolerance on the time-stamps. To use `TriggerControlSource` get a new instance by calling -`TriggerControlSource::new`, bind it to a `gobject::ParamSpec` and set some +`TriggerControlSource::new`, bind it to a `glib::object::ParamSpec` and set some control points by calling `TimedValueControlSourceExt::set`. All functions are MT-safe. diff --git a/docs/gstreamer-editing-services/docs.md b/docs/gstreamer-editing-services/docs.md index 640f49dfd..4b4d6a5ca 100644 --- a/docs/gstreamer-editing-services/docs.md +++ b/docs/gstreamer-editing-services/docs.md @@ -328,7 +328,7 @@ The `Extractable` object type that can be extracted from the asset. The ID of the asset. This should be unique amongst all assets with the same `Asset:extractable-type`. Depending on the associated `Extractable` implementation, this id may convey some information -about the `gobject::Object` that should be extracted. Note that, as such, the +about the `glib::object::Object` that should be extracted. Note that, as such, the ID will have an expected format, and you can not choose this value arbitrarily. By default, this will be set to the type name of the `Asset:extractable-type`, but you should check the documentation @@ -338,7 +338,7 @@ default behaviour. The ID of the asset. This should be unique amongst all assets with the same `Asset:extractable-type`. Depending on the associated `Extractable` implementation, this id may convey some information -about the `gobject::Object` that should be extracted. Note that, as such, the +about the `glib::object::Object` that should be extracted. Note that, as such, the ID will have an expected format, and you can not choose this value arbitrarily. By default, this will be set to the type name of the `Asset:extractable-type`, but you should check the documentation @@ -368,8 +368,8 @@ will *still* point to this other asset. So you should check the `Asset:proxy` property of `target`-proxy before assuming it is the current default proxy for the target. -Note that the `gobject::Object::notify` for this property is emitted after -the `Asset:proxy` `gobject::Object::notify` for the corresponding (if any) +Note that the `glib::object::Object::notify` for this property is emitted after +the `Asset:proxy` `glib::object::Object::notify` for the corresponding (if any) asset it is now the proxy of/no longer the proxy of. A `BaseEffect` is some operation that applies an effect to the data @@ -1145,7 +1145,7 @@ Feature: `v1_18` The layer this clip lies in. -If you want to connect to this property's `gobject::Object::notify` signal, +If you want to connect to this property's `glib::object::Object::notify` signal, you should connect to it with `g_signal_connect_after` since the signal emission may be stopped internally. @@ -1502,7 +1502,7 @@ pipeline description. Example: "videobalance saturation=1.5 hue=+0.5" -A `gobject::Object` that implements the `Extractable` interface can be +A `glib::object::Object` that implements the `Extractable` interface can be extracted from a `Asset` using `AssetExt::extract`. Each extractable type will have its own way of interpreting the @@ -3257,7 +3257,7 @@ Gets the property of a child of the element. `property_name` can either be in the format "prop-name" or "TypeName::prop-name", where "prop-name" is the name of the property -to get (as used in `gobject::ObjectExt::get`), and "TypeName" is the type name of +to get (as used in `glib::object::ObjectExt::get`), and "TypeName" is the type name of the child (as returned by G_OBJECT_TYPE_NAME()). The latter format is useful when two children of different types share the same property name. @@ -3403,14 +3403,14 @@ returned array # Returns An array of -`gobject::ParamSpec` corresponding to the child properties of `self`, or `None` if +`glib::object::ParamSpec` corresponding to the child properties of `self`, or `None` if something went wrong. Looks up a child property of the element. `prop_name` can either be in the format "prop-name" or "TypeName::prop-name", where "prop-name" is the name of the property -to look up (as used in `gobject::ObjectExt::get`), and "TypeName" is the type name +to look up (as used in `glib::object::ObjectExt::get`), and "TypeName" is the type name of the child (as returned by G_OBJECT_TYPE_NAME()). The latter format is useful when two children of different types share the same property name. @@ -3543,7 +3543,7 @@ Sets the property of a child of the element. `property_name` can either be in the format "prop-name" or "TypeName::prop-name", where "prop-name" is the name of the property -to set (as used in `gobject::ObjectExt::set`), and "TypeName" is the type name of +to set (as used in `glib::object::ObjectExt::set`), and "TypeName" is the type name of the child (as returned by G_OBJECT_TYPE_NAME()). The latter format is useful when two children of different types share the same property name. @@ -3737,7 +3737,7 @@ The specification for the property that has been unregistered Emitted when a child of the element has one of its registered properties set. See `TimelineElementExt::add_child_property`. -Note that unlike `gobject::Object::notify`, a child property name can not be +Note that unlike `glib::object::Object::notify`, a child property name can not be used as a signal detail. ## `prop_object` The child whose property has been set @@ -4311,7 +4311,7 @@ The name of the first property to get In general, a copy is made of the property contents and the caller is responsible for freeing the memory by calling -`gobject::Value::unset`. +`glib::object::Value::unset`. Gets a property of a GstElement contained in `self`. @@ -4338,7 +4338,7 @@ Gets a property of a child of `self`. Use `TimelineElementExt::get_child_property_by_pspec` ## `pspec` -The `gobject::ParamSpec` that specifies the property you want to get +The `glib::object::ParamSpec` that specifies the property you want to get ## `value` return location for the value @@ -4445,7 +4445,7 @@ Feature: `v1_18` `true` if `element` is a core track element. -Gets an array of `gobject::ParamSpec`* for all configurable properties of the +Gets an array of `glib::object::ParamSpec`* for all configurable properties of the children of `self`. # Deprecated @@ -4456,7 +4456,7 @@ return location for the length of the returned array # Returns -An array of `gobject::ParamSpec`* which should be freed after use or +An array of `glib::object::ParamSpec`* which should be freed after use or `None` if something went wrong. Looks up which `element` and `pspec` would be effected by the given `name`. If various @@ -4551,7 +4551,7 @@ Sets a property of a child of `self`. Use `ges_timeline_element_set_child_property_by_spec` ## `pspec` -The `gobject::ParamSpec` that specifies the property you want to set +The `glib::object::ParamSpec` that specifies the property you want to set ## `value` The value @@ -4745,10 +4745,10 @@ correspond to the type of data that the element can produce or process. Types of content handled by a track. If the content is not one of -`TrackType::Audio`, `TrackType::Video` or `TrackType::Text`, -the user of the `Track` must set the type to `TrackType::Custom`. +[`Audio`](Self::Audio), [`Video`](Self::Video) or [`Text`](Self::Text), +the user of the `Track` must set the type to [`Custom`](Self::Custom). -`TrackType::Unknown` is for internal purposes and should not be used +[`Unknown`](Self::Unknown) is for internal purposes and should not be used by users A track of unknown type (i.e. invalid) diff --git a/docs/gstreamer-gl/docs.md b/docs/gstreamer-gl/docs.md index 67271b94a..afb7061fb 100644 --- a/docs/gstreamer-gl/docs.md +++ b/docs/gstreamer-gl/docs.md @@ -597,7 +597,7 @@ a comparison function to run The first `GLWindow` that causes a match from `compare_func` -Overrides the `GLContext` creation mechanism. +Overrides the [`crate::GLContext`] (XXX: @-reference does not belong to GLDisplayExt!) creation mechanism. It can be called in any thread and it is emitted with display's object lock held. ## `context` @@ -1352,7 +1352,7 @@ The OpenGL texture target that an OpenGL texture can be bound to. The `gst_gl_value_set_texture_target_from_mask`, `gst_gl_value_get_texture_target_mask`, and `gst_gl_value_set_texture_target` functions can be used for handling texture -targets with `gobject::Value`'s when e.g. dealing with `gst::Caps`. +targets with `glib::object::Value`'s when e.g. dealing with `gst::Caps`. no texture target diff --git a/docs/gstreamer-net/docs.md b/docs/gstreamer-net/docs.md index b96e9fc2b..7b848ceb1 100644 --- a/docs/gstreamer-net/docs.md +++ b/docs/gstreamer-net/docs.md @@ -20,7 +20,7 @@ A `NetClientClock` and `NtpClock` is typically set on a `gst::Pipeline` with `gst::Pipeline::use_clock`. If you set a `gst::Bus` on the clock via the "bus" object property, it will -send `gst::MessageType::Element` messages with an attached `gst::Structure` containing +send [`crate::gst::MessageType::Element`] (XXX: @-reference does not belong to NetClientClock!) messages with an attached `gst::Structure` containing statistics about clock accuracy and network traffic. # Implements diff --git a/docs/gstreamer-player/docs.md b/docs/gstreamer-player/docs.md index 738129151..c33943a50 100644 --- a/docs/gstreamer-player/docs.md +++ b/docs/gstreamer-player/docs.md @@ -140,7 +140,7 @@ A Function to get current audio `PlayerAudioInfo` instance. current audio track. -The caller should free it with `gobject::ObjectExt::unref` +The caller should free it with `glib::object::ObjectExt::unref` A Function to get current subtitle `PlayerSubtitleInfo` instance. @@ -148,7 +148,7 @@ A Function to get current subtitle `PlayerSubtitleInfo` instance. current subtitle track. -The caller should free it with `gobject::ObjectExt::unref` +The caller should free it with `glib::object::ObjectExt::unref` A Function to get current video `PlayerVideoInfo` instance. @@ -156,7 +156,7 @@ A Function to get current video `PlayerVideoInfo` instance. current video track. -The caller should free it with `gobject::ObjectExt::unref` +The caller should free it with `glib::object::ObjectExt::unref` # Returns @@ -177,7 +177,7 @@ A Function to get the current media info `PlayerMediaInfo` instance. media info instance. -The caller should free it with `gobject::ObjectExt::unref` +The caller should free it with `glib::object::ObjectExt::unref` Retrieve the current value of the indicated `type_`. diff --git a/docs/gstreamer-rtsp-server/docs.md b/docs/gstreamer-rtsp-server/docs.md index c0cd19fa6..fe6fdad6b 100644 --- a/docs/gstreamer-rtsp-server/docs.md +++ b/docs/gstreamer-rtsp-server/docs.md @@ -219,14 +219,14 @@ Get the `gio::TlsCertificate` used for negotiating TLS `self`. # Returns -the `gio::TlsCertificate` of `self`. `gobject::ObjectExt::unref` after +the `gio::TlsCertificate` of `self`. `glib::object::ObjectExt::unref` after usage. Get the `gio::TlsDatabase` used for verifying client certificate. # Returns -the `gio::TlsDatabase` of `self`. `gobject::ObjectExt::unref` after +the `gio::TlsDatabase` of `self`. `glib::object::ObjectExt::unref` after usage. Parse the contents of the file at `path` and enable the privileges @@ -346,7 +346,7 @@ Get the `RTSPAuth` used as the authentication manager of `self`. # Returns the `RTSPAuth` of `self`. -`gobject::ObjectExt::unref` after usage. +`glib::object::ObjectExt::unref` after usage. Get the `gst_rtsp::RTSPConnection` of `self`. @@ -393,7 +393,7 @@ Get the `RTSPThreadPool` used as the thread pool of `self`. # Returns -the `RTSPThreadPool` of `self`. `gobject::ObjectExt::unref` after +the `RTSPThreadPool` of `self`. `glib::object::ObjectExt::unref` after usage. Let the client handle `message`. @@ -754,7 +754,7 @@ Get the `RTSPAddressPool` used as the address pool of `self`. # Returns the `RTSPAddressPool` of `self`. -`gobject::ObjectExt::unref` after usage. +`glib::object::ObjectExt::unref` after usage. Get the base_time that is used by the pipeline in `self`. @@ -1328,7 +1328,7 @@ Get the `RTSPAddressPool` used as the address pool of `self`. # Returns -the `RTSPAddressPool` of `self`. `gobject::ObjectExt::unref` after +the `RTSPAddressPool` of `self`. `glib::object::ObjectExt::unref` after usage. Get the kernel UDP buffer size. @@ -1664,7 +1664,7 @@ the amount of `path` matched # Returns the `RTSPMediaFactory` for `path`. -`gobject::ObjectExt::unref` after usage. +`glib::object::ObjectExt::unref` after usage. Remove the `RTSPMediaFactory` associated with `path` in `self`. ## `path` @@ -1791,7 +1791,7 @@ Get the `RTSPAuth` used as the authentication manager of `self`. # Returns -the `RTSPAuth` of `self`. `gobject::ObjectExt::unref` after +the `RTSPAuth` of `self`. `glib::object::ObjectExt::unref` after usage. The maximum amount of queued requests for the server. @@ -1819,7 +1819,7 @@ Get the `RTSPMountPoints` used as the mount points of `self`. # Returns -the `RTSPMountPoints` of `self`. `gobject::ObjectExt::unref` after +the `RTSPMountPoints` of `self`. `glib::object::ObjectExt::unref` after usage. Get the service on which the server will accept connections. @@ -1832,14 +1832,14 @@ Get the `RTSPSessionPool` used as the session pool of `self`. # Returns -the `RTSPSessionPool` used for sessions. `gobject::ObjectExt::unref` after +the `RTSPSessionPool` used for sessions. `glib::object::ObjectExt::unref` after usage. Get the `RTSPThreadPool` used as the thread pool of `self`. # Returns -the `RTSPThreadPool` of `self`. `gobject::ObjectExt::unref` after +the `RTSPThreadPool` of `self`. `glib::object::ObjectExt::unref` after usage. Configure `self` to accept connections on the given address. @@ -2018,7 +2018,7 @@ a `RTSPMedia` # Returns -a new `RTSPSessionMedia` object. +a new [`crate::RTSPSessionMedia`] (XXX: @-reference does not belong to RTSPSessionExt!) object. Get the amount of milliseconds till the session will expire. @@ -2187,7 +2187,7 @@ Create a new `RTSPSessionPool` instance. # Returns -A new `RTSPSessionPool`. `gobject::ObjectExt::unref` after +A new `RTSPSessionPool`. `glib::object::ObjectExt::unref` after usage. Inspect all the sessions in `self` and remove the sessions that are inactive @@ -2243,7 +2243,7 @@ the session id # Returns the `RTSPSession` with `sessionid` -or `None` when the session did not exist. `gobject::ObjectExt::unref` after usage. +or `None` when the session did not exist. `glib::object::ObjectExt::unref` after usage. Get the maximum allowed number of sessions in `self`. 0 means an unlimited amount of sessions. @@ -2359,7 +2359,7 @@ Get the `RTSPAddressPool` used as the address pool of `self`. # Returns the `RTSPAddressPool` of `self`. -`gobject::ObjectExt::unref` after usage. +`glib::object::ObjectExt::unref` after usage. Get the size of the UDP transmission buffer (in bytes) diff --git a/docs/gstreamer-video/docs.md b/docs/gstreamer-video/docs.md index 5232726d8..3776bfda1 100644 --- a/docs/gstreamer-video/docs.md +++ b/docs/gstreamer-video/docs.md @@ -175,7 +175,7 @@ CEA-608 as byte pairs. Note that this format is not recommended since is does not specify to which field the caption comes from and therefore assumes it comes from the first field (and that there is no information - on the second field). Use `VideoCaptionType::Cea708Raw` + on the second field). Use [`Cea708Raw`](Self::Cea708Raw) if you wish to store CEA-608 from two fields and prefix each byte pair with 0xFC for the first field and 0xFD for the second field. @@ -275,8 +275,8 @@ Decoders and encoders will receive such a state through their respective `set_format` vmethods. Decoders and encoders can set the downstream state, by using the -`VideoDecoder::set_output_state`() or -`VideoEncoder::set_output_state`() methods. +[`crate::VideoDecoder::set_output_state`] (XXX: @-reference does not belong to VideoCodecState!)() or +[`crate::VideoEncoder::set_output_state`] (XXX: @-reference does not belong to VideoCodecState!)() methods. Increases the refcount of the given state by one. @@ -387,9 +387,9 @@ follows: The ownership of the frame is given to the `handle_frame` callback. * If codec processing results in decoded data, the subclass should call - `VideoDecoder::finish_frame` to have decoded data pushed. + [`finish_frame`](Self::finish_frame) to have decoded data pushed. downstream. Otherwise, the subclass must call - `VideoDecoder::drop_frame`, to allow the base class to do timestamp + [`drop_frame`](Self::drop_frame), to allow the base class to do timestamp and offset tracking, and possibly to requeue the frame for a later attempt in the case of reverse playback. @@ -420,8 +420,8 @@ source and sink pads. The pads need to be named "sink" and "src". It also needs to provide information about the output caps, when they are known. This may be when the base class calls the subclass' `set_format` function, though it might be during decoding, before calling -`VideoDecoder::finish_frame`. This is done via -`VideoDecoder::set_output_state` +[`finish_frame`](Self::finish_frame). This is done via +[`set_output_state`](Self::set_output_state) The subclass is also responsible for providing (presentation) timestamps (likely based on corresponding input ones). If that is not applicable @@ -432,7 +432,7 @@ if specifically requested by the subclass, as full-fledged support should rather be left to upstream demuxer, parser or alike. This simple approach caters for seeking and duration reporting using estimated input bitrates. To enable it, a subclass should call -`VideoDecoderExt::set_estimate_rate` to enable handling of incoming +[`crate::VideoDecoderExt::set_estimate_rate`] (XXX: @-reference does not belong to VideoDecoder!) to enable handling of incoming byte-streams. The base class provides some support for reverse playback, in particular @@ -448,15 +448,15 @@ The bare minimum that a functional subclass needs to implement is: * Provide pad templates * Inform the base class of output caps via - `VideoDecoder::set_output_state` + [`set_output_state`](Self::set_output_state) * Parse input data, if it is not considered packetized from upstream Data will be provided to `parse` which should invoke - `VideoDecoderExt::add_to_frame` and `VideoDecoder::have_frame` to + [`crate::VideoDecoderExt::add_to_frame`] (XXX: @-reference does not belong to VideoDecoder!) and [`have_frame`](Self::have_frame) to separate the data belonging to each video frame. * Accept data in `handle_frame` and provide decoded results to - `VideoDecoder::finish_frame`, or call `VideoDecoder::drop_frame`. + [`finish_frame`](Self::finish_frame), or call [`drop_frame`](Self::drop_frame). This is an Abstract Base Class, you cannot instantiate it. @@ -836,7 +836,7 @@ GstVideoEncoder and subclass should cooperate as follows. this to subclass' `handle_frame`. * If codec processing results in encoded data, subclass should call - `VideoEncoder::finish_frame` to have encoded data pushed + [`finish_frame`](Self::finish_frame) to have encoded data pushed downstream. * If implemented, baseclass calls subclass `pre_push` just prior to @@ -855,14 +855,14 @@ GstVideoEncoder and subclass should cooperate as follows. Subclass is responsible for providing pad template caps for source and sink pads. The pads need to be named "sink" and "src". It should also be able to provide fixed src pad caps in `getcaps` by the time it calls -`VideoEncoder::finish_frame`. +[`finish_frame`](Self::finish_frame). Things that subclass need to take care of: * Provide pad templates * Provide source pad caps before pushing the first buffer * Accept data in `handle_frame` and provide encoded results to - `VideoEncoder::finish_frame`. + [`finish_frame`](Self::finish_frame). The `VideoEncoder:qos` property will enable the Quality-of-Service @@ -1107,7 +1107,7 @@ from the next call to `VideoEncoder::finish_frame`(). ## `caps` the `gst::Caps` to use for the output ## `reference` -An optional reference `VideoCodecState` +An optional reference [`crate::VideoCodecState`] (XXX: @-reference does not belong to VideoEncoderExt!) # Returns @@ -1334,9 +1334,9 @@ planar 4:4:4 YUV, 12 bits per channel (Since: 1.12) 10-bit grayscale, packed into 32bit words (2 bits padding) (Since: 1.14) -10-bit variant of `VideoFormat::Nv12`, packed into 32bit words (MSB 2 bits padding) (Since: 1.14) +10-bit variant of [`Nv12`](Self::Nv12), packed into 32bit words (MSB 2 bits padding) (Since: 1.14) -10-bit variant of `VideoFormat::Nv16`, packed into 32bit words (MSB 2 bits padding) (Since: 1.14) +10-bit variant of [`Nv16`](Self::Nv16), packed into 32bit words (MSB 2 bits padding) (Since: 1.14) Fully packed variant of NV12_10LE32 (Since: 1.16) @@ -1639,7 +1639,7 @@ For frame-packed The video stream contains both mono and multiview portions, signalled on each buffer by the - absence or presence of the `VideoBufferFlags::MultipleView` + absence or presence of the [`crate::VideoBufferFlags::MultipleView`] (XXX: @-reference does not belong to VideoMultiviewFlags!) buffer flag. `VideoMultiviewFramePacking` represents the subset of `VideoMultiviewMode` @@ -2132,7 +2132,7 @@ The highest property ID. ## `property_id` The property ID ## `value` -The `gobject::Value` to be set +The `glib::object::Value` to be set # Returns diff --git a/docs/gstreamer/docs.md b/docs/gstreamer/docs.md index 1153fd08f..eb1a0523b 100644 --- a/docs/gstreamer/docs.md +++ b/docs/gstreamer/docs.md @@ -1320,7 +1320,7 @@ flag indicating that buffer meta should be flag indicating that buffer memory should be reffed and appended to already existing memory. Unless the memory is marked as NO_SHARE, no actual copy of the memory is made but it is simply reffed. - Add `BufferCopyFlags::Deep` to force a real copy. + Add [`Deep`](Self::Deep) to force a real copy. flag indicating that buffer memory should be merged @@ -2739,7 +2739,7 @@ a newly allocated `Caps` Modes of caps intersection -`CapsIntersectMode::ZigZag` tries to preserve overall order of both caps +[`ZigZag`](Self::ZigZag) tries to preserve overall order of both caps by iterating on the caps' structures as the following matrix shows: ```text @@ -2753,7 +2753,7 @@ Used when there is no explicit precedence of one caps over the other. e.g. tee's sink pad getcaps function, it will probe its src pad peers' for their caps and intersect them with this mode. -`CapsIntersectMode::First` is useful when an element wants to preserve +[`First`](Self::First) is useful when an element wants to preserve another element's caps priority order when intersecting with its own caps. Example: If caps1 is [A, B, C] and caps2 is [E, B, D, A], the result would be [A, B], maintaining the first caps priority on the intersection. @@ -2837,11 +2837,11 @@ the number of child objects MT safe. Gets a single property using the GstChildProxy mechanism. -You are responsible for freeing it by calling `gobject::Value::unset` +You are responsible for freeing it by calling `glib::object::Value::unset` ## `name` name of the property ## `value` -a `gobject::Value` that should take the result. +a `glib::object::Value` that should take the result. Gets properties of the parent object and its children. ## `first_property_name` @@ -2849,16 +2849,16 @@ name of the first property to get ## `var_args` return location for the first property, followed optionally by more name/return location pairs, followed by `None` -Looks up which object and `gobject::ParamSpec` would be effected by the given `name`. +Looks up which object and `glib::object::ParamSpec` would be effected by the given `name`. MT safe. ## `name` name of the property to look up ## `target` -pointer to a `gobject::Object` that +pointer to a `glib::object::Object` that takes the real object to set property on ## `pspec` -pointer to take the `gobject::ParamSpec` +pointer to take the `glib::object::ParamSpec` describing the property # Returns @@ -2875,7 +2875,7 @@ Sets a single property using the GstChildProxy mechanism. ## `name` name of the property to set ## `value` -new `gobject::Value` for the property +new `glib::object::Value` for the property Sets properties of the parent object and its children. ## `first_property_name` @@ -2885,13 +2885,13 @@ value for the first property, followed optionally by more name/value pairs, foll Will be emitted after the `object` was added to the `child_proxy`. ## `object` -the `gobject::Object` that was added +the `glib::object::Object` that was added ## `name` the name of the new child Will be emitted after the `object` was removed from the `child_proxy`. ## `object` -the `gobject::Object` that was removed +the `glib::object::Object` that was removed ## `name` the name of the old child @@ -3612,7 +3612,7 @@ Trait containing all `ControlBinding` methods. Gets a number of `GValues` for the given controlled property starting at the requested time. The array `values` need to hold enough space for `n_values` of -`gobject::Value`. +`glib::object::Value`. This function is useful if one wants to e.g. draw a graph of the control curve or apply a control curve sample by sample. @@ -7129,7 +7129,7 @@ undefined format the default format of the pad/element. This can be samples for raw audio, frames/fields for raw video (some, but not all, - elements support this; use `Format::Time` if you don't have a good + elements support this; use [`Time`](Self::Time) if you don't have a good reason to query for samples/frames) bytes @@ -7809,7 +7809,7 @@ Creates a new instant-rate-request message. Elements handling the instant-rate-change event must post this message. The message is handled at the pipeline, and allows the pipeline to select the running time when the rate change should happen and to send an -`EventType::InstantRateSyncTime` event to notify the elements +[`crate::EventType::InstantRateSyncTime`] (XXX: @-reference does not belong to Message!) event to notify the elements in the pipeline. Feature: `v1_18` @@ -8553,7 +8553,7 @@ the duration of the buffer that Extract the QoS stats representing the history of the current continuous pipeline playback period. -When `format` is `Format::Undefined` both `dropped` and `processed` are +When `format` is [`crate::Format::Undefined`] (XXX: @-reference does not belong to Message!) both `dropped` and `processed` are invalid. Values of -1 for either `processed` or `dropped` mean unknown values. MT safe. @@ -8811,7 +8811,7 @@ the group id Set the QoS stats representing the history of the current continuous pipeline playback period. -When `format` is `Format::Undefined` both `dropped` and `processed` are +When `format` is [`crate::Format::Undefined`] (XXX: @-reference does not belong to Message!) both `dropped` and `processed` are invalid. Values of -1 for either `processed` or `dropped` mean unknown values. MT safe. @@ -8914,18 +8914,18 @@ pointer to a `Message` that will `Object` provides a root for the object hierarchy tree filed in by the GStreamer library. It is currently a thin wrapper on top of -`gobject::InitiallyUnowned`. It is an abstract class that is not very usable on its own. +`glib::object::InitiallyUnowned`. It is an abstract class that is not very usable on its own. `Object` gives us basic refcounting, parenting functionality and locking. Most of the functions are just extended for special GStreamer needs and can be -found under the same name in the base class of `Object` which is `gobject::Object` -(e.g. `gobject::ObjectExt::ref` becomes `GstObjectExt::ref`). +found under the same name in the base class of `Object` which is `glib::object::Object` +(e.g. `glib::object::ObjectExt::ref` becomes `GstObjectExt::ref`). -Since `Object` derives from `gobject::InitiallyUnowned`, it also inherits the +Since `Object` derives from `glib::object::InitiallyUnowned`, it also inherits the floating reference. Be aware that functions such as `GstBinExt::add` and `ElementExt::add_pad` take ownership of the floating reference. -In contrast to `gobject::Object` instances, `Object` adds a name property. The functions +In contrast to `glib::object::Object` instances, `Object` adds a name property. The functions `Object::set_name` and `GstObjectExt::get_name` are used to set/get the name of the object. @@ -9000,11 +9000,11 @@ using g_print. MT safe. This function grabs and releases `object`'s LOCK for getting its path string. ## `object` -the `gobject::Object` that signalled the notify. +the `glib::object::Object` that signalled the notify. ## `orig` a `Object` that initiated the notify. ## `pspec` -a `gobject::ParamSpec` of the property. +a `glib::object::ParamSpec` of the property. ## `excluded_props` a set of user-specified properties to exclude or `None` to show @@ -9019,7 +9019,7 @@ the floating flag while leaving the reference count unchanged. If the object is not floating, then this call adds a new normal reference increasing the reference count by one. -For more background on "floating references" please see the `gobject::Object` +For more background on "floating references" please see the `glib::object::Object` documentation. ## `object` a `Object` to sink @@ -9088,7 +9088,7 @@ the control rate in nanoseconds Gets a number of `GValues` for the given controlled property starting at the requested time. The array `values` need to hold enough space for `n_values` of -`gobject::Value`. +`glib::object::Value`. This function is useful if one wants to e.g. draw a graph of the control curve or apply a control curve sample by sample. @@ -9339,13 +9339,13 @@ the object that originated the signal the property that changed The parent of the object. Please note, that when changing the 'parent' -property, we don't emit `gobject::Object::notify` and `Object::deep-notify` +property, we don't emit `glib::object::Object::notify` and `Object::deep-notify` signals due to locking issues. In some cases one can use `Bin::element-added` or `Bin::element-removed` signals on the parent to achieve a similar effect. The parent of the object. Please note, that when changing the 'parent' -property, we don't emit `gobject::Object::notify` and `Object::deep-notify` +property, we don't emit `glib::object::Object::notify` and `Object::deep-notify` signals due to locking issues. In some cases one can use `Bin::element-added` or `Bin::element-removed` signals on the parent to achieve a similar effect. @@ -10635,9 +10635,9 @@ the default accept-caps handler will use offset to define more flags -The amount of checking to be done when linking pads. `PadLinkCheck::Caps` -and `PadLinkCheck::TemplateCaps` are mutually exclusive. If both are -specified, expensive but safe `PadLinkCheck::Caps` are performed. +The amount of checking to be done when linking pads. [`Caps`](Self::Caps) +and [`TemplateCaps`](Self::TemplateCaps) are mutually exclusive. If both are +specified, expensive but safe [`Caps`](Self::Caps) are performed. > Only disable some of the checks if you are 100% certain you know the link > will not fail because of hierarchy/caps compatibility failures. If uncertain, @@ -10651,7 +10651,7 @@ Check the pads have same parents/grandparents. pads are in the same bin. Check if the pads are compatible by using - their template caps. This is much faster than `PadLinkCheck::Caps`, but + their template caps. This is much faster than [`Caps`](Self::Caps), but would be unsafe e.g. if one pad has `GST_CAPS_ANY`. Check if the pads are compatible by comparing the @@ -10727,7 +10727,7 @@ Data has been handled in the probe and will not be Since: 1.6 The different probing types that can occur. When either one of -`PadProbeType::Idle` or `PadProbeType::Block` is used, the probe will be a +[`Idle`](Self::Idle) or [`Block`](Self::Block) is used, the probe will be a blocking probe. invalid probe type @@ -10746,8 +10746,8 @@ probe upstream events probe flush events. This probe has to be explicitly enabled and is not included in the - @`PadProbeType::EventDownstream` or - @`PadProbeType::EventUpstream` probe types. + @[`EventDownstream`](Self::EventDownstream) or + @[`EventUpstream`](Self::EventUpstream) probe types. probe downstream queries @@ -11566,7 +11566,7 @@ Trait containing all `PluginFeature` methods. [`DeviceProviderFactory`](struct.DeviceProviderFactory.html), [`ElementFactory`](struct.ElementFactory.html), [`PluginFeature`](struct.PluginFeature.html), [`TypeFindFactory`](struct.TypeFindFactory.html) -Copies the list of features. Caller should call `PluginFeature::list_free` +Copies the list of features. Caller should call [`list_free`](Self::list_free) when done with the list. ## `list` list @@ -11830,7 +11830,7 @@ with `Promise::reply`. The exact value returned is defined by the API contract of the producer and `None` may be a valid reply. `Promise::interrupt` is for the consumer to indicate to the producer that the value is not needed anymore and producing -that value can stop. The `PromiseResult::Expired` state set by a call +that value can stop. The [`crate::PromiseResult::Expired`] (XXX: @-reference does not belong to Promise!) state set by a call to `Promise::expire` indicates to the consumer that a value will never be produced and is intended to be called by a third party that implements some notion of message handling such as `Bus`. @@ -12739,7 +12739,7 @@ in the `formats` array must be equal to `n_formats`. the number of formats to set. ## `formats` an array containing `n_formats` - `Format` values. + [`crate::Format`] (XXX: @-reference does not belong to Query!) values. Answer a latency query by setting the requested values in the given format. ## `live` @@ -12844,7 +12844,7 @@ will choose this element over an alternative one with the same function. These constants serve as a rough guidance for defining the rank of a `PluginFeature`. Any value is valid, including values bigger than -`Rank::Primary`. +[`Primary`](Self::Primary). will be chosen last or not at all @@ -13779,7 +13779,7 @@ reset the pipeline running_time to the segment perform skip playback (Since: 1.6) Deprecated backward compatibility flag, replaced - by `SegmentFlags::Trickmode` + by [`Trickmode`](Self::Trickmode) send SEGMENT_DONE instead of EOS @@ -13897,7 +13897,7 @@ they should make sure to go back to real 'PAUSED' state (prerolling for example) state change from PLAYING to PLAYING. (Since: 1.14) The possible return values from a state change function such as -`Element::set_state`. Only `StateChangeReturn::Failure` is a real failure. +`Element::set_state`. Only [`Failure`](Self::Failure) is a real failure. the state change failed @@ -14545,17 +14545,17 @@ the name of the first field to read because the field requested did not exist, or was of a type other than the type specified), otherwise `true`. -This is useful in language bindings where unknown `gobject::Value` types are not +This is useful in language bindings where unknown `glib::object::Value` types are not supported. This function will convert the `GST_TYPE_ARRAY` into a newly -allocated `gobject::ValueArray` and return it through `array`. Be aware that this is -slower then getting the `gobject::Value` directly. +allocated `glib::object::ValueArray` and return it through `array`. Be aware that this is +slower then getting the `glib::object::Value` directly. Feature: `v1_12` ## `fieldname` the name of a field ## `array` -a pointer to a `gobject::ValueArray` +a pointer to a `glib::object::ValueArray` # Returns @@ -14667,7 +14667,7 @@ the name of the field # Returns -the `gobject::Value` of the field +the `glib::object::Value` of the field Read the GstFlagSet flags and mask out of the structure into the provided pointers. @@ -14728,17 +14728,17 @@ a pointer to a `gint64` to set with `fieldname` or the existing field did not contain a `gint64`, this function returns `false`. -This is useful in language bindings where unknown `gobject::Value` types are not +This is useful in language bindings where unknown `glib::object::Value` types are not supported. This function will convert the `GST_TYPE_LIST` into a newly allocated GValueArray and return it through `array`. Be aware that this is -slower then getting the `gobject::Value` directly. +slower then getting the `glib::object::Value` directly. Feature: `v1_12` ## `fieldname` the name of a field ## `array` -a pointer to a `gobject::ValueArray` +a pointer to a `glib::object::ValueArray` # Returns @@ -14818,7 +14818,7 @@ the name of the field to get # Returns -the `gobject::Value` corresponding to the field with the given +the `glib::object::Value` corresponding to the field with the given name. Check if `self` contains a field named `fieldname`. @@ -14889,7 +14889,7 @@ the `glib::Quark` of the field to get # Returns -the `gobject::Value` corresponding to the field with the given +the `glib::object::Value` corresponding to the field with the given name identifier. Check if `self` contains a field named `field`. @@ -15021,26 +15021,26 @@ the name of the field to set This is useful in language bindings where unknown GValue types are not supported. This function will convert a `array` to `GST_TYPE_ARRAY` and set the field specified by `fieldname`. Be aware that this is slower then using -`GST_TYPE_ARRAY` in a `gobject::Value` directly. +`GST_TYPE_ARRAY` in a `glib::object::Value` directly. Feature: `v1_12` ## `fieldname` the name of a field ## `array` -a pointer to a `gobject::ValueArray` +a pointer to a `glib::object::ValueArray` This is useful in language bindings where unknown GValue types are not supported. This function will convert a `array` to `GST_TYPE_LIST` and set the field specified by `fieldname`. Be aware that this is slower then using -`GST_TYPE_LIST` in a `gobject::Value` directly. +`GST_TYPE_LIST` in a `glib::object::Value` directly. Feature: `v1_12` ## `fieldname` the name of a field ## `array` -a pointer to a `gobject::ValueArray` +a pointer to a `glib::object::ValueArray` Sets the name of the structure to the given `name`. The string provided is copied before being used. It must not be empty, start with a @@ -15757,9 +15757,9 @@ a newly-allocated string, or `None` in case of Copies the contents for the given tag into the value, merging multiple values into one if multiple values are associated with the tag. -You must `gobject::Value::unset` the value after use. +You must `glib::object::Value::unset` the value after use. ## `dest` -uninitialized `gobject::Value` to copy into +uninitialized `glib::object::Value` to copy into ## `list` list to get the tag from ## `tag` diff --git a/gstreamer-app/src/auto/app_sink.rs b/gstreamer-app/src/auto/app_sink.rs index 0947847c0..6a4e5954d 100644 --- a/gstreamer-app/src/auto/app_sink.rs +++ b/gstreamer-app/src/auto/app_sink.rs @@ -23,7 +23,7 @@ impl AppSink { #[cfg(any(feature = "v1_12", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] #[doc(alias = "gst_app_sink_get_buffer_list_support")] - pub fn get_buffer_list_support(&self) -> bool { + pub fn is_buffer_list_support(&self) -> bool { unsafe { from_glib(ffi::gst_app_sink_get_buffer_list_support( self.to_glib_none().0, @@ -32,27 +32,27 @@ impl AppSink { } #[doc(alias = "gst_app_sink_get_caps")] - pub fn get_caps(&self) -> Option { + pub fn caps(&self) -> Option { unsafe { from_glib_full(ffi::gst_app_sink_get_caps(self.to_glib_none().0)) } } #[doc(alias = "gst_app_sink_get_drop")] - pub fn get_drop(&self) -> bool { + pub fn is_drop(&self) -> bool { unsafe { from_glib(ffi::gst_app_sink_get_drop(self.to_glib_none().0)) } } #[doc(alias = "gst_app_sink_get_emit_signals")] - pub fn get_emit_signals(&self) -> bool { + pub fn emits_signals(&self) -> bool { unsafe { from_glib(ffi::gst_app_sink_get_emit_signals(self.to_glib_none().0)) } } #[doc(alias = "gst_app_sink_get_max_buffers")] - pub fn get_max_buffers(&self) -> u32 { + pub fn max_buffers(&self) -> u32 { unsafe { ffi::gst_app_sink_get_max_buffers(self.to_glib_none().0) } } #[doc(alias = "gst_app_sink_get_wait_on_eos")] - pub fn get_wait_on_eos(&self) -> bool { + pub fn is_wait_on_eos(&self) -> bool { unsafe { from_glib(ffi::gst_app_sink_get_wait_on_eos(self.to_glib_none().0)) } } @@ -153,7 +153,8 @@ impl AppSink { } } - pub fn get_property_buffer_list(&self) -> bool { + #[doc(alias = "get_property_buffer_list")] + pub fn is_buffer_list(&self) -> bool { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -168,7 +169,8 @@ impl AppSink { } } - pub fn set_property_buffer_list(&self, buffer_list: bool) { + #[doc(alias = "set_property_buffer_list")] + pub fn set_buffer_list(&self, buffer_list: bool) { unsafe { glib::gobject_ffi::g_object_set_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, @@ -178,21 +180,6 @@ impl AppSink { } } - pub fn get_property_eos(&self) -> bool { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"eos\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `eos` getter") - .unwrap() - } - } - pub fn connect_eos(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn eos_trampoline( this: *mut ffi::GstAppSink, diff --git a/gstreamer-app/src/auto/app_src.rs b/gstreamer-app/src/auto/app_src.rs index 7372deb7b..eea544ed3 100644 --- a/gstreamer-app/src/auto/app_src.rs +++ b/gstreamer-app/src/auto/app_src.rs @@ -22,39 +22,39 @@ glib::wrapper! { impl AppSrc { #[doc(alias = "gst_app_src_get_caps")] - pub fn get_caps(&self) -> Option { + pub fn caps(&self) -> Option { unsafe { from_glib_full(ffi::gst_app_src_get_caps(self.to_glib_none().0)) } } #[doc(alias = "gst_app_src_get_current_level_bytes")] - pub fn get_current_level_bytes(&self) -> u64 { + pub fn current_level_bytes(&self) -> u64 { unsafe { ffi::gst_app_src_get_current_level_bytes(self.to_glib_none().0) } } #[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] #[doc(alias = "gst_app_src_get_duration")] - pub fn get_duration(&self) -> gst::ClockTime { + pub fn duration(&self) -> gst::ClockTime { unsafe { from_glib(ffi::gst_app_src_get_duration(self.to_glib_none().0)) } } #[doc(alias = "gst_app_src_get_emit_signals")] - pub fn get_emit_signals(&self) -> bool { + pub fn emits_signals(&self) -> bool { unsafe { from_glib(ffi::gst_app_src_get_emit_signals(self.to_glib_none().0)) } } #[doc(alias = "gst_app_src_get_max_bytes")] - pub fn get_max_bytes(&self) -> u64 { + pub fn max_bytes(&self) -> u64 { unsafe { ffi::gst_app_src_get_max_bytes(self.to_glib_none().0) } } #[doc(alias = "gst_app_src_get_size")] - pub fn get_size(&self) -> i64 { + pub fn size(&self) -> i64 { unsafe { ffi::gst_app_src_get_size(self.to_glib_none().0) } } #[doc(alias = "gst_app_src_get_stream_type")] - pub fn get_stream_type(&self) -> AppStreamType { + pub fn stream_type(&self) -> AppStreamType { unsafe { from_glib(ffi::gst_app_src_get_stream_type(self.to_glib_none().0)) } } @@ -107,7 +107,8 @@ impl AppSrc { } } - pub fn get_property_block(&self) -> bool { + #[doc(alias = "get_property_block")] + pub fn is_block(&self) -> bool { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -122,7 +123,8 @@ impl AppSrc { } } - pub fn set_property_block(&self, block: bool) { + #[doc(alias = "set_property_block")] + pub fn set_block(&self, block: bool) { unsafe { glib::gobject_ffi::g_object_set_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, @@ -132,7 +134,8 @@ impl AppSrc { } } - pub fn get_property_format(&self) -> gst::Format { + #[doc(alias = "get_property_format")] + pub fn format(&self) -> gst::Format { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -147,7 +150,8 @@ impl AppSrc { } } - pub fn set_property_format(&self, format: gst::Format) { + #[doc(alias = "set_property_format")] + pub fn set_format(&self, format: gst::Format) { unsafe { glib::gobject_ffi::g_object_set_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, @@ -159,7 +163,8 @@ impl AppSrc { #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] - pub fn get_property_handle_segment_change(&self) -> bool { + #[doc(alias = "get_property_handle_segment_change")] + pub fn is_handle_segment_change(&self) -> bool { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -176,7 +181,8 @@ impl AppSrc { #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] - pub fn set_property_handle_segment_change(&self, handle_segment_change: bool) { + #[doc(alias = "set_property_handle_segment_change")] + pub fn set_handle_segment_change(&self, handle_segment_change: bool) { unsafe { glib::gobject_ffi::g_object_set_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, @@ -186,7 +192,8 @@ impl AppSrc { } } - pub fn get_property_is_live(&self) -> bool { + #[doc(alias = "get_property_is_live")] + pub fn is_live(&self) -> bool { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -201,7 +208,8 @@ impl AppSrc { } } - pub fn set_property_is_live(&self, is_live: bool) { + #[doc(alias = "set_property_is_live")] + pub fn set_is_live(&self, is_live: bool) { unsafe { glib::gobject_ffi::g_object_set_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, @@ -211,7 +219,8 @@ impl AppSrc { } } - pub fn get_property_max_latency(&self) -> i64 { + #[doc(alias = "get_property_max_latency")] + pub fn max_latency(&self) -> i64 { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -226,7 +235,8 @@ impl AppSrc { } } - pub fn set_property_max_latency(&self, max_latency: i64) { + #[doc(alias = "set_property_max_latency")] + pub fn set_max_latency(&self, max_latency: i64) { unsafe { glib::gobject_ffi::g_object_set_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, @@ -236,7 +246,8 @@ impl AppSrc { } } - pub fn get_property_min_latency(&self) -> i64 { + #[doc(alias = "get_property_min_latency")] + pub fn min_latency(&self) -> i64 { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -251,7 +262,8 @@ impl AppSrc { } } - pub fn set_property_min_latency(&self, min_latency: i64) { + #[doc(alias = "set_property_min_latency")] + pub fn set_min_latency(&self, min_latency: i64) { unsafe { glib::gobject_ffi::g_object_set_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, @@ -261,7 +273,8 @@ impl AppSrc { } } - pub fn get_property_min_percent(&self) -> u32 { + #[doc(alias = "get_property_min_percent")] + pub fn min_percent(&self) -> u32 { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -276,7 +289,8 @@ impl AppSrc { } } - pub fn set_property_min_percent(&self, min_percent: u32) { + #[doc(alias = "set_property_min_percent")] + pub fn set_min_percent(&self, min_percent: u32) { unsafe { glib::gobject_ffi::g_object_set_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, diff --git a/gstreamer-app/src/auto/versions.txt b/gstreamer-app/src/auto/versions.txt index 2061f177b..3895717b6 100644 --- a/gstreamer-app/src/auto/versions.txt +++ b/gstreamer-app/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) diff --git a/gstreamer-app/sys/build.rs b/gstreamer-app/sys/build.rs index d68dd0cdc..961fb48a8 100644 --- a/gstreamer-app/sys/build.rs +++ b/gstreamer-app/sys/build.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-app/sys/src/lib.rs b/gstreamer-app/sys/src/lib.rs index 0ddf058fb..632ef31e7 100644 --- a/gstreamer-app/sys/src/lib.rs +++ b/gstreamer-app/sys/src/lib.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-app/sys/tests/abi.rs b/gstreamer-app/sys/tests/abi.rs index 34d915552..2d1d8760c 100644 --- a/gstreamer-app/sys/tests/abi.rs +++ b/gstreamer-app/sys/tests/abi.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-app/sys/tests/constant.c b/gstreamer-app/sys/tests/constant.c index 4985f4b3f..01a7182ed 100644 --- a/gstreamer-app/sys/tests/constant.c +++ b/gstreamer-app/sys/tests/constant.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-app/sys/tests/layout.c b/gstreamer-app/sys/tests/layout.c index 248e1c14d..dc826fab2 100644 --- a/gstreamer-app/sys/tests/layout.c +++ b/gstreamer-app/sys/tests/layout.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-audio/src/auto/audio_base_sink.rs b/gstreamer-audio/src/auto/audio_base_sink.rs index 232ee221b..211ead514 100644 --- a/gstreamer-audio/src/auto/audio_base_sink.rs +++ b/gstreamer-audio/src/auto/audio_base_sink.rs @@ -30,19 +30,19 @@ pub trait AudioBaseSinkExt: 'static { //fn create_ringbuffer(&self) -> /*Ignored*/Option; #[doc(alias = "gst_audio_base_sink_get_alignment_threshold")] - fn get_alignment_threshold(&self) -> gst::ClockTime; + fn alignment_threshold(&self) -> gst::ClockTime; #[doc(alias = "gst_audio_base_sink_get_discont_wait")] - fn get_discont_wait(&self) -> gst::ClockTime; + fn discont_wait(&self) -> gst::ClockTime; #[doc(alias = "gst_audio_base_sink_get_drift_tolerance")] - fn get_drift_tolerance(&self) -> i64; + fn drift_tolerance(&self) -> i64; #[doc(alias = "gst_audio_base_sink_get_provide_clock")] - fn get_provide_clock(&self) -> bool; + fn is_provide_clock(&self) -> bool; //#[doc(alias = "gst_audio_base_sink_get_slave_method")] - //fn get_slave_method(&self) -> /*Ignored*/AudioBaseSinkSlaveMethod; + //fn slave_method(&self) -> /*Ignored*/AudioBaseSinkSlaveMethod; #[doc(alias = "gst_audio_base_sink_report_device_failure")] fn report_device_failure(&self); @@ -65,17 +65,23 @@ pub trait AudioBaseSinkExt: 'static { //#[doc(alias = "gst_audio_base_sink_set_slave_method")] //fn set_slave_method(&self, method: /*Ignored*/AudioBaseSinkSlaveMethod); - fn get_property_buffer_time(&self) -> i64; + #[doc(alias = "get_property_buffer_time")] + fn buffer_time(&self) -> i64; - fn set_property_buffer_time(&self, buffer_time: i64); + #[doc(alias = "set_property_buffer_time")] + fn set_buffer_time(&self, buffer_time: i64); - fn get_property_can_activate_pull(&self) -> bool; + #[doc(alias = "get_property_can_activate_pull")] + fn can_activate_pull(&self) -> bool; - fn set_property_can_activate_pull(&self, can_activate_pull: bool); + #[doc(alias = "set_property_can_activate_pull")] + fn set_can_activate_pull(&self, can_activate_pull: bool); - fn get_property_latency_time(&self) -> i64; + #[doc(alias = "get_property_latency_time")] + fn latency_time(&self) -> i64; - fn set_property_latency_time(&self, latency_time: i64); + #[doc(alias = "set_property_latency_time")] + fn set_latency_time(&self, latency_time: i64); fn connect_property_alignment_threshold_notify( &self, @@ -123,7 +129,7 @@ impl> AudioBaseSinkExt for O { // unsafe { TODO: call ffi:gst_audio_base_sink_create_ringbuffer() } //} - fn get_alignment_threshold(&self) -> gst::ClockTime { + fn alignment_threshold(&self) -> gst::ClockTime { unsafe { from_glib(ffi::gst_audio_base_sink_get_alignment_threshold( self.as_ref().to_glib_none().0, @@ -131,7 +137,7 @@ impl> AudioBaseSinkExt for O { } } - fn get_discont_wait(&self) -> gst::ClockTime { + fn discont_wait(&self) -> gst::ClockTime { unsafe { from_glib(ffi::gst_audio_base_sink_get_discont_wait( self.as_ref().to_glib_none().0, @@ -139,11 +145,11 @@ impl> AudioBaseSinkExt for O { } } - fn get_drift_tolerance(&self) -> i64 { + fn drift_tolerance(&self) -> i64 { unsafe { ffi::gst_audio_base_sink_get_drift_tolerance(self.as_ref().to_glib_none().0) } } - fn get_provide_clock(&self) -> bool { + fn is_provide_clock(&self) -> bool { unsafe { from_glib(ffi::gst_audio_base_sink_get_provide_clock( self.as_ref().to_glib_none().0, @@ -151,7 +157,7 @@ impl> AudioBaseSinkExt for O { } } - //fn get_slave_method(&self) -> /*Ignored*/AudioBaseSinkSlaveMethod { + //fn slave_method(&self) -> /*Ignored*/AudioBaseSinkSlaveMethod { // unsafe { TODO: call ffi:gst_audio_base_sink_get_slave_method() } //} @@ -205,7 +211,7 @@ impl> AudioBaseSinkExt for O { // unsafe { TODO: call ffi:gst_audio_base_sink_set_slave_method() } //} - fn get_property_buffer_time(&self) -> i64 { + fn buffer_time(&self) -> i64 { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -220,7 +226,7 @@ impl> AudioBaseSinkExt for O { } } - fn set_property_buffer_time(&self, buffer_time: i64) { + fn set_buffer_time(&self, buffer_time: i64) { unsafe { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, @@ -230,7 +236,7 @@ impl> AudioBaseSinkExt for O { } } - fn get_property_can_activate_pull(&self) -> bool { + fn can_activate_pull(&self) -> bool { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -245,7 +251,7 @@ impl> AudioBaseSinkExt for O { } } - fn set_property_can_activate_pull(&self, can_activate_pull: bool) { + fn set_can_activate_pull(&self, can_activate_pull: bool) { unsafe { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, @@ -255,7 +261,7 @@ impl> AudioBaseSinkExt for O { } } - fn get_property_latency_time(&self) -> i64 { + fn latency_time(&self) -> i64 { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -270,7 +276,7 @@ impl> AudioBaseSinkExt for O { } } - fn set_property_latency_time(&self, latency_time: i64) { + fn set_latency_time(&self, latency_time: i64) { unsafe { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, diff --git a/gstreamer-audio/src/auto/audio_base_src.rs b/gstreamer-audio/src/auto/audio_base_src.rs index 2af5fbf36..7e6a60e6c 100644 --- a/gstreamer-audio/src/auto/audio_base_src.rs +++ b/gstreamer-audio/src/auto/audio_base_src.rs @@ -30,10 +30,10 @@ pub trait AudioBaseSrcExt: 'static { //fn create_ringbuffer(&self) -> /*Ignored*/Option; #[doc(alias = "gst_audio_base_src_get_provide_clock")] - fn get_provide_clock(&self) -> bool; + fn is_provide_clock(&self) -> bool; //#[doc(alias = "gst_audio_base_src_get_slave_method")] - //fn get_slave_method(&self) -> /*Ignored*/AudioBaseSrcSlaveMethod; + //fn slave_method(&self) -> /*Ignored*/AudioBaseSrcSlaveMethod; #[doc(alias = "gst_audio_base_src_set_provide_clock")] fn set_provide_clock(&self, provide: bool); @@ -41,17 +41,23 @@ pub trait AudioBaseSrcExt: 'static { //#[doc(alias = "gst_audio_base_src_set_slave_method")] //fn set_slave_method(&self, method: /*Ignored*/AudioBaseSrcSlaveMethod); - fn get_property_actual_buffer_time(&self) -> i64; + #[doc(alias = "get_property_actual_buffer_time")] + fn actual_buffer_time(&self) -> i64; - fn get_property_actual_latency_time(&self) -> i64; + #[doc(alias = "get_property_actual_latency_time")] + fn actual_latency_time(&self) -> i64; - fn get_property_buffer_time(&self) -> i64; + #[doc(alias = "get_property_buffer_time")] + fn buffer_time(&self) -> i64; - fn set_property_buffer_time(&self, buffer_time: i64); + #[doc(alias = "set_property_buffer_time")] + fn set_buffer_time(&self, buffer_time: i64); - fn get_property_latency_time(&self) -> i64; + #[doc(alias = "get_property_latency_time")] + fn latency_time(&self) -> i64; - fn set_property_latency_time(&self, latency_time: i64); + #[doc(alias = "set_property_latency_time")] + fn set_latency_time(&self, latency_time: i64); fn connect_property_actual_buffer_time_notify( &self, @@ -89,7 +95,7 @@ impl> AudioBaseSrcExt for O { // unsafe { TODO: call ffi:gst_audio_base_src_create_ringbuffer() } //} - fn get_provide_clock(&self) -> bool { + fn is_provide_clock(&self) -> bool { unsafe { from_glib(ffi::gst_audio_base_src_get_provide_clock( self.as_ref().to_glib_none().0, @@ -97,7 +103,7 @@ impl> AudioBaseSrcExt for O { } } - //fn get_slave_method(&self) -> /*Ignored*/AudioBaseSrcSlaveMethod { + //fn slave_method(&self) -> /*Ignored*/AudioBaseSrcSlaveMethod { // unsafe { TODO: call ffi:gst_audio_base_src_get_slave_method() } //} @@ -114,7 +120,7 @@ impl> AudioBaseSrcExt for O { // unsafe { TODO: call ffi:gst_audio_base_src_set_slave_method() } //} - fn get_property_actual_buffer_time(&self) -> i64 { + fn actual_buffer_time(&self) -> i64 { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -129,7 +135,7 @@ impl> AudioBaseSrcExt for O { } } - fn get_property_actual_latency_time(&self) -> i64 { + fn actual_latency_time(&self) -> i64 { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -144,7 +150,7 @@ impl> AudioBaseSrcExt for O { } } - fn get_property_buffer_time(&self) -> i64 { + fn buffer_time(&self) -> i64 { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -159,7 +165,7 @@ impl> AudioBaseSrcExt for O { } } - fn set_property_buffer_time(&self, buffer_time: i64) { + fn set_buffer_time(&self, buffer_time: i64) { unsafe { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, @@ -169,7 +175,7 @@ impl> AudioBaseSrcExt for O { } } - fn get_property_latency_time(&self) -> i64 { + fn latency_time(&self) -> i64 { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -184,7 +190,7 @@ impl> AudioBaseSrcExt for O { } } - fn set_property_latency_time(&self, latency_time: i64) { + fn set_latency_time(&self, latency_time: i64) { unsafe { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, diff --git a/gstreamer-audio/src/auto/audio_decoder.rs b/gstreamer-audio/src/auto/audio_decoder.rs index bb9602f7b..2647c29ea 100644 --- a/gstreamer-audio/src/auto/audio_decoder.rs +++ b/gstreamer-audio/src/auto/audio_decoder.rs @@ -31,40 +31,40 @@ pub trait AudioDecoderExt: 'static { fn allocate_output_buffer(&self, size: usize) -> Result; #[doc(alias = "gst_audio_decoder_get_audio_info")] - fn get_audio_info(&self) -> Option; + fn audio_info(&self) -> Option; #[doc(alias = "gst_audio_decoder_get_delay")] - fn get_delay(&self) -> i32; + fn delay(&self) -> i32; #[doc(alias = "gst_audio_decoder_get_drainable")] - fn get_drainable(&self) -> bool; + fn is_drainable(&self) -> bool; #[doc(alias = "gst_audio_decoder_get_estimate_rate")] - fn get_estimate_rate(&self) -> i32; + fn estimate_rate(&self) -> i32; #[doc(alias = "gst_audio_decoder_get_latency")] - fn get_latency(&self) -> (gst::ClockTime, gst::ClockTime); + fn latency(&self) -> (gst::ClockTime, gst::ClockTime); #[doc(alias = "gst_audio_decoder_get_max_errors")] - fn get_max_errors(&self) -> i32; + fn max_errors(&self) -> i32; #[doc(alias = "gst_audio_decoder_get_min_latency")] - fn get_min_latency(&self) -> gst::ClockTime; + fn min_latency(&self) -> gst::ClockTime; #[doc(alias = "gst_audio_decoder_get_needs_format")] - fn get_needs_format(&self) -> bool; + fn is_needs_format(&self) -> bool; #[doc(alias = "gst_audio_decoder_get_parse_state")] - fn get_parse_state(&self) -> (bool, bool); + fn parse_state(&self) -> (bool, bool); #[doc(alias = "gst_audio_decoder_get_plc")] - fn get_plc(&self) -> bool; + fn is_plc(&self) -> bool; #[doc(alias = "gst_audio_decoder_get_plc_aware")] - fn get_plc_aware(&self) -> i32; + fn plc_aware(&self) -> i32; #[doc(alias = "gst_audio_decoder_get_tolerance")] - fn get_tolerance(&self) -> gst::ClockTime; + fn tolerance(&self) -> gst::ClockTime; #[doc(alias = "gst_audio_decoder_merge_tags")] fn merge_tags(&self, tags: Option<&gst::TagList>, mode: gst::TagMergeMode); @@ -141,7 +141,7 @@ impl> AudioDecoderExt for O { } } - fn get_audio_info(&self) -> Option { + fn audio_info(&self) -> Option { unsafe { from_glib_full(ffi::gst_audio_decoder_get_audio_info( self.as_ref().to_glib_none().0, @@ -149,11 +149,11 @@ impl> AudioDecoderExt for O { } } - fn get_delay(&self) -> i32 { + fn delay(&self) -> i32 { unsafe { ffi::gst_audio_decoder_get_delay(self.as_ref().to_glib_none().0) } } - fn get_drainable(&self) -> bool { + fn is_drainable(&self) -> bool { unsafe { from_glib(ffi::gst_audio_decoder_get_drainable( self.as_ref().to_glib_none().0, @@ -161,11 +161,11 @@ impl> AudioDecoderExt for O { } } - fn get_estimate_rate(&self) -> i32 { + fn estimate_rate(&self) -> i32 { unsafe { ffi::gst_audio_decoder_get_estimate_rate(self.as_ref().to_glib_none().0) } } - fn get_latency(&self) -> (gst::ClockTime, gst::ClockTime) { + fn latency(&self) -> (gst::ClockTime, gst::ClockTime) { unsafe { let mut min = mem::MaybeUninit::uninit(); let mut max = mem::MaybeUninit::uninit(); @@ -180,11 +180,11 @@ impl> AudioDecoderExt for O { } } - fn get_max_errors(&self) -> i32 { + fn max_errors(&self) -> i32 { unsafe { ffi::gst_audio_decoder_get_max_errors(self.as_ref().to_glib_none().0) } } - fn get_min_latency(&self) -> gst::ClockTime { + fn min_latency(&self) -> gst::ClockTime { unsafe { from_glib(ffi::gst_audio_decoder_get_min_latency( self.as_ref().to_glib_none().0, @@ -192,7 +192,7 @@ impl> AudioDecoderExt for O { } } - fn get_needs_format(&self) -> bool { + fn is_needs_format(&self) -> bool { unsafe { from_glib(ffi::gst_audio_decoder_get_needs_format( self.as_ref().to_glib_none().0, @@ -200,7 +200,7 @@ impl> AudioDecoderExt for O { } } - fn get_parse_state(&self) -> (bool, bool) { + fn parse_state(&self) -> (bool, bool) { unsafe { let mut sync = mem::MaybeUninit::uninit(); let mut eos = mem::MaybeUninit::uninit(); @@ -215,7 +215,7 @@ impl> AudioDecoderExt for O { } } - fn get_plc(&self) -> bool { + fn is_plc(&self) -> bool { unsafe { from_glib(ffi::gst_audio_decoder_get_plc( self.as_ref().to_glib_none().0, @@ -223,11 +223,11 @@ impl> AudioDecoderExt for O { } } - fn get_plc_aware(&self) -> i32 { + fn plc_aware(&self) -> i32 { unsafe { ffi::gst_audio_decoder_get_plc_aware(self.as_ref().to_glib_none().0) } } - fn get_tolerance(&self) -> gst::ClockTime { + fn tolerance(&self) -> gst::ClockTime { unsafe { from_glib(ffi::gst_audio_decoder_get_tolerance( self.as_ref().to_glib_none().0, diff --git a/gstreamer-audio/src/auto/audio_encoder.rs b/gstreamer-audio/src/auto/audio_encoder.rs index 8e8f6aa06..6ce16c3ae 100644 --- a/gstreamer-audio/src/auto/audio_encoder.rs +++ b/gstreamer-audio/src/auto/audio_encoder.rs @@ -30,37 +30,37 @@ pub trait AudioEncoderExt: 'static { fn allocate_output_buffer(&self, size: usize) -> Result; #[doc(alias = "gst_audio_encoder_get_audio_info")] - fn get_audio_info(&self) -> Option; + fn audio_info(&self) -> Option; #[doc(alias = "gst_audio_encoder_get_drainable")] - fn get_drainable(&self) -> bool; + fn is_drainable(&self) -> bool; #[doc(alias = "gst_audio_encoder_get_frame_max")] - fn get_frame_max(&self) -> i32; + fn frame_max(&self) -> i32; #[doc(alias = "gst_audio_encoder_get_frame_samples_max")] - fn get_frame_samples_max(&self) -> i32; + fn frame_samples_max(&self) -> i32; #[doc(alias = "gst_audio_encoder_get_frame_samples_min")] - fn get_frame_samples_min(&self) -> i32; + fn frame_samples_min(&self) -> i32; #[doc(alias = "gst_audio_encoder_get_hard_min")] - fn get_hard_min(&self) -> bool; + fn is_hard_min(&self) -> bool; #[doc(alias = "gst_audio_encoder_get_hard_resync")] - fn get_hard_resync(&self) -> bool; + fn is_hard_resync(&self) -> bool; #[doc(alias = "gst_audio_encoder_get_lookahead")] - fn get_lookahead(&self) -> i32; + fn lookahead(&self) -> i32; #[doc(alias = "gst_audio_encoder_get_mark_granule")] - fn get_mark_granule(&self) -> bool; + fn is_mark_granule(&self) -> bool; #[doc(alias = "gst_audio_encoder_get_perfect_timestamp")] - fn get_perfect_timestamp(&self) -> bool; + fn is_perfect_timestamp(&self) -> bool; #[doc(alias = "gst_audio_encoder_get_tolerance")] - fn get_tolerance(&self) -> gst::ClockTime; + fn tolerance(&self) -> gst::ClockTime; #[doc(alias = "gst_audio_encoder_merge_tags")] fn merge_tags(&self, tags: Option<&gst::TagList>, mode: gst::TagMergeMode); @@ -141,7 +141,7 @@ impl> AudioEncoderExt for O { } } - fn get_audio_info(&self) -> Option { + fn audio_info(&self) -> Option { unsafe { from_glib_full(ffi::gst_audio_encoder_get_audio_info( self.as_ref().to_glib_none().0, @@ -149,7 +149,7 @@ impl> AudioEncoderExt for O { } } - fn get_drainable(&self) -> bool { + fn is_drainable(&self) -> bool { unsafe { from_glib(ffi::gst_audio_encoder_get_drainable( self.as_ref().to_glib_none().0, @@ -157,19 +157,19 @@ impl> AudioEncoderExt for O { } } - fn get_frame_max(&self) -> i32 { + fn frame_max(&self) -> i32 { unsafe { ffi::gst_audio_encoder_get_frame_max(self.as_ref().to_glib_none().0) } } - fn get_frame_samples_max(&self) -> i32 { + fn frame_samples_max(&self) -> i32 { unsafe { ffi::gst_audio_encoder_get_frame_samples_max(self.as_ref().to_glib_none().0) } } - fn get_frame_samples_min(&self) -> i32 { + fn frame_samples_min(&self) -> i32 { unsafe { ffi::gst_audio_encoder_get_frame_samples_min(self.as_ref().to_glib_none().0) } } - fn get_hard_min(&self) -> bool { + fn is_hard_min(&self) -> bool { unsafe { from_glib(ffi::gst_audio_encoder_get_hard_min( self.as_ref().to_glib_none().0, @@ -177,7 +177,7 @@ impl> AudioEncoderExt for O { } } - fn get_hard_resync(&self) -> bool { + fn is_hard_resync(&self) -> bool { unsafe { from_glib(ffi::gst_audio_encoder_get_hard_resync( self.as_ref().to_glib_none().0, @@ -185,11 +185,11 @@ impl> AudioEncoderExt for O { } } - fn get_lookahead(&self) -> i32 { + fn lookahead(&self) -> i32 { unsafe { ffi::gst_audio_encoder_get_lookahead(self.as_ref().to_glib_none().0) } } - fn get_mark_granule(&self) -> bool { + fn is_mark_granule(&self) -> bool { unsafe { from_glib(ffi::gst_audio_encoder_get_mark_granule( self.as_ref().to_glib_none().0, @@ -197,7 +197,7 @@ impl> AudioEncoderExt for O { } } - fn get_perfect_timestamp(&self) -> bool { + fn is_perfect_timestamp(&self) -> bool { unsafe { from_glib(ffi::gst_audio_encoder_get_perfect_timestamp( self.as_ref().to_glib_none().0, @@ -205,7 +205,7 @@ impl> AudioEncoderExt for O { } } - fn get_tolerance(&self) -> gst::ClockTime { + fn tolerance(&self) -> gst::ClockTime { unsafe { from_glib(ffi::gst_audio_encoder_get_tolerance( self.as_ref().to_glib_none().0, diff --git a/gstreamer-audio/src/auto/audio_stream_align.rs b/gstreamer-audio/src/auto/audio_stream_align.rs index afcefd434..b824458f4 100644 --- a/gstreamer-audio/src/auto/audio_stream_align.rs +++ b/gstreamer-audio/src/auto/audio_stream_align.rs @@ -34,7 +34,7 @@ impl AudioStreamAlign { } #[doc(alias = "gst_audio_stream_align_get_alignment_threshold")] - pub fn get_alignment_threshold(&self) -> gst::ClockTime { + pub fn alignment_threshold(&self) -> gst::ClockTime { unsafe { from_glib(ffi::gst_audio_stream_align_get_alignment_threshold( mut_override(self.to_glib_none().0), @@ -43,7 +43,7 @@ impl AudioStreamAlign { } #[doc(alias = "gst_audio_stream_align_get_discont_wait")] - pub fn get_discont_wait(&self) -> gst::ClockTime { + pub fn discont_wait(&self) -> gst::ClockTime { unsafe { from_glib(ffi::gst_audio_stream_align_get_discont_wait(mut_override( self.to_glib_none().0, @@ -52,12 +52,12 @@ impl AudioStreamAlign { } #[doc(alias = "gst_audio_stream_align_get_rate")] - pub fn get_rate(&self) -> i32 { + pub fn rate(&self) -> i32 { unsafe { ffi::gst_audio_stream_align_get_rate(mut_override(self.to_glib_none().0)) } } #[doc(alias = "gst_audio_stream_align_get_samples_since_discont")] - pub fn get_samples_since_discont(&self) -> u64 { + pub fn samples_since_discont(&self) -> u64 { unsafe { ffi::gst_audio_stream_align_get_samples_since_discont(mut_override( self.to_glib_none().0, @@ -66,7 +66,7 @@ impl AudioStreamAlign { } #[doc(alias = "gst_audio_stream_align_get_timestamp_at_discont")] - pub fn get_timestamp_at_discont(&self) -> gst::ClockTime { + pub fn timestamp_at_discont(&self) -> gst::ClockTime { unsafe { from_glib(ffi::gst_audio_stream_align_get_timestamp_at_discont( mut_override(self.to_glib_none().0), diff --git a/gstreamer-audio/src/auto/stream_volume.rs b/gstreamer-audio/src/auto/stream_volume.rs index 9413aa390..c25d1dc91 100644 --- a/gstreamer-audio/src/auto/stream_volume.rs +++ b/gstreamer-audio/src/auto/stream_volume.rs @@ -35,7 +35,7 @@ pub const NONE_STREAM_VOLUME: Option<&StreamVolume> = None; pub trait StreamVolumeExt: 'static { #[doc(alias = "gst_stream_volume_get_mute")] - fn get_mute(&self) -> bool; + fn is_muted(&self) -> bool; #[doc(alias = "gst_stream_volume_get_volume")] fn get_volume(&self, format: StreamVolumeFormat) -> f64; @@ -58,7 +58,7 @@ pub trait StreamVolumeExt: 'static { } impl> StreamVolumeExt for O { - fn get_mute(&self) -> bool { + fn is_muted(&self) -> bool { unsafe { from_glib(ffi::gst_stream_volume_get_mute( self.as_ref().to_glib_none().0, diff --git a/gstreamer-audio/src/auto/versions.txt b/gstreamer-audio/src/auto/versions.txt index 2061f177b..3895717b6 100644 --- a/gstreamer-audio/src/auto/versions.txt +++ b/gstreamer-audio/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) diff --git a/gstreamer-audio/sys/build.rs b/gstreamer-audio/sys/build.rs index d68dd0cdc..961fb48a8 100644 --- a/gstreamer-audio/sys/build.rs +++ b/gstreamer-audio/sys/build.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-audio/sys/src/lib.rs b/gstreamer-audio/sys/src/lib.rs index 9ae218d52..e0c9d863c 100644 --- a/gstreamer-audio/sys/src/lib.rs +++ b/gstreamer-audio/sys/src/lib.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-audio/sys/tests/abi.rs b/gstreamer-audio/sys/tests/abi.rs index d8f43c0bb..8c36358b5 100644 --- a/gstreamer-audio/sys/tests/abi.rs +++ b/gstreamer-audio/sys/tests/abi.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-audio/sys/tests/constant.c b/gstreamer-audio/sys/tests/constant.c index bc9a868c2..99900edbf 100644 --- a/gstreamer-audio/sys/tests/constant.c +++ b/gstreamer-audio/sys/tests/constant.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-audio/sys/tests/layout.c b/gstreamer-audio/sys/tests/layout.c index b2cb7503b..400830aa0 100644 --- a/gstreamer-audio/sys/tests/layout.c +++ b/gstreamer-audio/sys/tests/layout.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-base/src/auto/aggregator.rs b/gstreamer-base/src/auto/aggregator.rs index ff68c6a54..557eefe66 100644 --- a/gstreamer-base/src/auto/aggregator.rs +++ b/gstreamer-base/src/auto/aggregator.rs @@ -33,13 +33,13 @@ pub const NONE_AGGREGATOR: Option<&Aggregator> = None; pub trait AggregatorExt: 'static { //#[doc(alias = "gst_aggregator_get_allocator")] - //fn get_allocator(&self, allocator: /*Ignored*/Option, params: /*Ignored*/gst::AllocationParams); + //fn allocator(&self, allocator: /*Ignored*/Option, params: /*Ignored*/gst::AllocationParams); #[doc(alias = "gst_aggregator_get_buffer_pool")] - fn get_buffer_pool(&self) -> Option; + fn buffer_pool(&self) -> Option; #[doc(alias = "gst_aggregator_get_latency")] - fn get_latency(&self) -> gst::ClockTime; + fn latency(&self) -> gst::ClockTime; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] @@ -69,23 +69,29 @@ pub trait AggregatorExt: 'static { #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] - fn get_property_emit_signals(&self) -> bool; + #[doc(alias = "get_property_emit_signals")] + fn emits_signals(&self) -> bool; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] - fn set_property_emit_signals(&self, emit_signals: bool); + #[doc(alias = "set_property_emit_signals")] + fn set_emit_signals(&self, emit_signals: bool); - fn get_property_start_time(&self) -> u64; + #[doc(alias = "get_property_start_time")] + fn start_time(&self) -> u64; - fn set_property_start_time(&self, start_time: u64); + #[doc(alias = "set_property_start_time")] + fn set_start_time(&self, start_time: u64); #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] - fn get_property_start_time_selection(&self) -> AggregatorStartTimeSelection; + #[doc(alias = "get_property_start_time_selection")] + fn start_time_selection(&self) -> AggregatorStartTimeSelection; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] - fn set_property_start_time_selection(&self, start_time_selection: AggregatorStartTimeSelection); + #[doc(alias = "set_property_start_time_selection")] + fn set_start_time_selection(&self, start_time_selection: AggregatorStartTimeSelection); //#[cfg(any(feature = "v1_18", feature = "dox"))] //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] @@ -119,11 +125,11 @@ pub trait AggregatorExt: 'static { } impl> AggregatorExt for O { - //fn get_allocator(&self, allocator: /*Ignored*/Option, params: /*Ignored*/gst::AllocationParams) { + //fn allocator(&self, allocator: /*Ignored*/Option, params: /*Ignored*/gst::AllocationParams) { // unsafe { TODO: call ffi:gst_aggregator_get_allocator() } //} - fn get_buffer_pool(&self) -> Option { + fn buffer_pool(&self) -> Option { unsafe { from_glib_full(ffi::gst_aggregator_get_buffer_pool( self.as_ref().to_glib_none().0, @@ -131,7 +137,7 @@ impl> AggregatorExt for O { } } - fn get_latency(&self) -> gst::ClockTime { + fn latency(&self) -> gst::ClockTime { unsafe { from_glib(ffi::gst_aggregator_get_latency( self.as_ref().to_glib_none().0, @@ -194,7 +200,7 @@ impl> AggregatorExt for O { #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] - fn get_property_emit_signals(&self) -> bool { + fn emits_signals(&self) -> bool { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -211,7 +217,7 @@ impl> AggregatorExt for O { #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] - fn set_property_emit_signals(&self, emit_signals: bool) { + fn set_emit_signals(&self, emit_signals: bool) { unsafe { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, @@ -221,7 +227,7 @@ impl> AggregatorExt for O { } } - fn get_property_start_time(&self) -> u64 { + fn start_time(&self) -> u64 { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -236,7 +242,7 @@ impl> AggregatorExt for O { } } - fn set_property_start_time(&self, start_time: u64) { + fn set_start_time(&self, start_time: u64) { unsafe { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, @@ -248,7 +254,7 @@ impl> AggregatorExt for O { #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] - fn get_property_start_time_selection(&self) -> AggregatorStartTimeSelection { + fn start_time_selection(&self) -> AggregatorStartTimeSelection { unsafe { let mut value = glib::Value::from_type(::static_type()); @@ -266,10 +272,7 @@ impl> AggregatorExt for O { #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] - fn set_property_start_time_selection( - &self, - start_time_selection: AggregatorStartTimeSelection, - ) { + fn set_start_time_selection(&self, start_time_selection: AggregatorStartTimeSelection) { unsafe { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, diff --git a/gstreamer-base/src/auto/aggregator_pad.rs b/gstreamer-base/src/auto/aggregator_pad.rs index 230b7dda8..c8246c964 100644 --- a/gstreamer-base/src/auto/aggregator_pad.rs +++ b/gstreamer-base/src/auto/aggregator_pad.rs @@ -47,11 +47,13 @@ pub trait AggregatorPadExt: 'static { #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] - fn get_property_emit_signals(&self) -> bool; + #[doc(alias = "get_property_emit_signals")] + fn emits_signals(&self) -> bool; #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] - fn set_property_emit_signals(&self, emit_signals: bool); + #[doc(alias = "set_property_emit_signals")] + fn set_emit_signals(&self, emit_signals: bool); fn connect_buffer_consumed( &self, @@ -111,7 +113,7 @@ impl> AggregatorPadExt for O { #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] - fn get_property_emit_signals(&self) -> bool { + fn emits_signals(&self) -> bool { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -128,7 +130,7 @@ impl> AggregatorPadExt for O { #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] - fn set_property_emit_signals(&self, emit_signals: bool) { + fn set_emit_signals(&self, emit_signals: bool) { unsafe { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, diff --git a/gstreamer-base/src/auto/base_parse.rs b/gstreamer-base/src/auto/base_parse.rs index 8c114f0d2..c23c3dd49 100644 --- a/gstreamer-base/src/auto/base_parse.rs +++ b/gstreamer-base/src/auto/base_parse.rs @@ -64,9 +64,11 @@ pub trait BaseParseExt: 'static { #[doc(alias = "gst_base_parse_set_ts_at_offset")] fn set_ts_at_offset(&self, offset: usize); - fn get_property_disable_passthrough(&self) -> bool; + #[doc(alias = "get_property_disable_passthrough")] + fn is_disable_passthrough(&self) -> bool; - fn set_property_disable_passthrough(&self, disable_passthrough: bool); + #[doc(alias = "set_property_disable_passthrough")] + fn set_disable_passthrough(&self, disable_passthrough: bool); fn connect_property_disable_passthrough_notify( &self, @@ -172,7 +174,7 @@ impl> BaseParseExt for O { } } - fn get_property_disable_passthrough(&self) -> bool { + fn is_disable_passthrough(&self) -> bool { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -187,7 +189,7 @@ impl> BaseParseExt for O { } } - fn set_property_disable_passthrough(&self, disable_passthrough: bool) { + fn set_disable_passthrough(&self, disable_passthrough: bool) { unsafe { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, diff --git a/gstreamer-base/src/auto/base_sink.rs b/gstreamer-base/src/auto/base_sink.rs index 912fad184..9dd0ac186 100644 --- a/gstreamer-base/src/auto/base_sink.rs +++ b/gstreamer-base/src/auto/base_sink.rs @@ -30,46 +30,46 @@ pub trait BaseSinkExt: 'static { //fn do_preroll(&self, obj: /*Ignored*/&gst::MiniObject) -> gst::FlowReturn; #[doc(alias = "gst_base_sink_get_blocksize")] - fn get_blocksize(&self) -> u32; + fn blocksize(&self) -> u32; #[cfg(any(feature = "v1_12", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] #[doc(alias = "gst_base_sink_get_drop_out_of_segment")] - fn get_drop_out_of_segment(&self) -> bool; + fn is_drop_out_of_segment(&self) -> bool; #[doc(alias = "gst_base_sink_get_last_sample")] - fn get_last_sample(&self) -> Option; + fn last_sample(&self) -> Option; #[doc(alias = "gst_base_sink_get_latency")] - fn get_latency(&self) -> gst::ClockTime; + fn latency(&self) -> gst::ClockTime; #[doc(alias = "gst_base_sink_get_max_bitrate")] - fn get_max_bitrate(&self) -> u64; + fn max_bitrate(&self) -> u64; #[doc(alias = "gst_base_sink_get_max_lateness")] - fn get_max_lateness(&self) -> i64; + fn max_lateness(&self) -> i64; #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[doc(alias = "gst_base_sink_get_processing_deadline")] - fn get_processing_deadline(&self) -> gst::ClockTime; + fn processing_deadline(&self) -> gst::ClockTime; #[doc(alias = "gst_base_sink_get_render_delay")] - fn get_render_delay(&self) -> gst::ClockTime; + fn render_delay(&self) -> gst::ClockTime; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[doc(alias = "gst_base_sink_get_stats")] - fn get_stats(&self) -> gst::Structure; + fn stats(&self) -> gst::Structure; #[doc(alias = "gst_base_sink_get_sync")] - fn get_sync(&self) -> bool; + fn is_sync(&self) -> bool; #[doc(alias = "gst_base_sink_get_throttle_time")] - fn get_throttle_time(&self) -> u64; + fn throttle_time(&self) -> u64; #[doc(alias = "gst_base_sink_get_ts_offset")] - fn get_ts_offset(&self) -> gst::ClockTimeDiff; + fn ts_offset(&self) -> gst::ClockTimeDiff; #[doc(alias = "gst_base_sink_is_async_enabled")] fn is_async_enabled(&self) -> bool; @@ -120,17 +120,23 @@ pub trait BaseSinkExt: 'static { #[doc(alias = "gst_base_sink_set_ts_offset")] fn set_ts_offset(&self, offset: gst::ClockTimeDiff); - fn get_property_async(&self) -> bool; + #[doc(alias = "get_property_async")] + fn is_async(&self) -> bool; - fn set_property_async(&self, async_: bool); + #[doc(alias = "set_property_async")] + fn set_async(&self, async_: bool); - fn get_property_enable_last_sample(&self) -> bool; + #[doc(alias = "get_property_enable_last_sample")] + fn enables_last_sample(&self) -> bool; - fn set_property_enable_last_sample(&self, enable_last_sample: bool); + #[doc(alias = "set_property_enable_last_sample")] + fn set_enable_last_sample(&self, enable_last_sample: bool); - fn get_property_qos(&self) -> bool; + #[doc(alias = "get_property_qos")] + fn is_qos(&self) -> bool; - fn set_property_qos(&self, qos: bool); + #[doc(alias = "set_property_qos")] + fn set_qos(&self, qos: bool); fn connect_property_async_notify( &self, @@ -207,13 +213,13 @@ impl> BaseSinkExt for O { // unsafe { TODO: call ffi:gst_base_sink_do_preroll() } //} - fn get_blocksize(&self) -> u32 { + fn blocksize(&self) -> u32 { unsafe { ffi::gst_base_sink_get_blocksize(self.as_ref().to_glib_none().0) } } #[cfg(any(feature = "v1_12", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] - fn get_drop_out_of_segment(&self) -> bool { + fn is_drop_out_of_segment(&self) -> bool { unsafe { from_glib(ffi::gst_base_sink_get_drop_out_of_segment( self.as_ref().to_glib_none().0, @@ -221,7 +227,7 @@ impl> BaseSinkExt for O { } } - fn get_last_sample(&self) -> Option { + fn last_sample(&self) -> Option { unsafe { from_glib_full(ffi::gst_base_sink_get_last_sample( self.as_ref().to_glib_none().0, @@ -229,7 +235,7 @@ impl> BaseSinkExt for O { } } - fn get_latency(&self) -> gst::ClockTime { + fn latency(&self) -> gst::ClockTime { unsafe { from_glib(ffi::gst_base_sink_get_latency( self.as_ref().to_glib_none().0, @@ -237,17 +243,17 @@ impl> BaseSinkExt for O { } } - fn get_max_bitrate(&self) -> u64 { + fn max_bitrate(&self) -> u64 { unsafe { ffi::gst_base_sink_get_max_bitrate(self.as_ref().to_glib_none().0) } } - fn get_max_lateness(&self) -> i64 { + fn max_lateness(&self) -> i64 { unsafe { ffi::gst_base_sink_get_max_lateness(self.as_ref().to_glib_none().0) } } #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] - fn get_processing_deadline(&self) -> gst::ClockTime { + fn processing_deadline(&self) -> gst::ClockTime { unsafe { from_glib(ffi::gst_base_sink_get_processing_deadline( self.as_ref().to_glib_none().0, @@ -255,7 +261,7 @@ impl> BaseSinkExt for O { } } - fn get_render_delay(&self) -> gst::ClockTime { + fn render_delay(&self) -> gst::ClockTime { unsafe { from_glib(ffi::gst_base_sink_get_render_delay( self.as_ref().to_glib_none().0, @@ -265,19 +271,19 @@ impl> BaseSinkExt for O { #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] - fn get_stats(&self) -> gst::Structure { + fn stats(&self) -> gst::Structure { unsafe { from_glib_full(ffi::gst_base_sink_get_stats(self.as_ref().to_glib_none().0)) } } - fn get_sync(&self) -> bool { + fn is_sync(&self) -> bool { unsafe { from_glib(ffi::gst_base_sink_get_sync(self.as_ref().to_glib_none().0)) } } - fn get_throttle_time(&self) -> u64 { + fn throttle_time(&self) -> u64 { unsafe { ffi::gst_base_sink_get_throttle_time(self.as_ref().to_glib_none().0) } } - fn get_ts_offset(&self) -> gst::ClockTimeDiff { + fn ts_offset(&self) -> gst::ClockTimeDiff { unsafe { ffi::gst_base_sink_get_ts_offset(self.as_ref().to_glib_none().0) } } @@ -390,7 +396,7 @@ impl> BaseSinkExt for O { } } - fn get_property_async(&self) -> bool { + fn is_async(&self) -> bool { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -405,7 +411,7 @@ impl> BaseSinkExt for O { } } - fn set_property_async(&self, async_: bool) { + fn set_async(&self, async_: bool) { unsafe { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, @@ -415,7 +421,7 @@ impl> BaseSinkExt for O { } } - fn get_property_enable_last_sample(&self) -> bool { + fn enables_last_sample(&self) -> bool { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -430,7 +436,7 @@ impl> BaseSinkExt for O { } } - fn set_property_enable_last_sample(&self, enable_last_sample: bool) { + fn set_enable_last_sample(&self, enable_last_sample: bool) { unsafe { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, @@ -440,7 +446,7 @@ impl> BaseSinkExt for O { } } - fn get_property_qos(&self) -> bool { + fn is_qos(&self) -> bool { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -455,7 +461,7 @@ impl> BaseSinkExt for O { } } - fn set_property_qos(&self, qos: bool) { + fn set_qos(&self, qos: bool) { unsafe { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, diff --git a/gstreamer-base/src/auto/base_src.rs b/gstreamer-base/src/auto/base_src.rs index 74ad2d01d..608e235df 100644 --- a/gstreamer-base/src/auto/base_src.rs +++ b/gstreamer-base/src/auto/base_src.rs @@ -27,16 +27,16 @@ pub const NONE_BASE_SRC: Option<&BaseSrc> = None; pub trait BaseSrcExt: 'static { //#[doc(alias = "gst_base_src_get_allocator")] - //fn get_allocator(&self, allocator: /*Ignored*/Option, params: /*Ignored*/gst::AllocationParams); + //fn allocator(&self, allocator: /*Ignored*/Option, params: /*Ignored*/gst::AllocationParams); #[doc(alias = "gst_base_src_get_blocksize")] - fn get_blocksize(&self) -> u32; + fn blocksize(&self) -> u32; #[doc(alias = "gst_base_src_get_buffer_pool")] - fn get_buffer_pool(&self) -> Option; + fn buffer_pool(&self) -> Option; #[doc(alias = "gst_base_src_get_do_timestamp")] - fn get_do_timestamp(&self) -> bool; + fn does_timestamp(&self) -> bool; #[doc(alias = "gst_base_src_is_async")] fn is_async(&self) -> bool; @@ -77,13 +77,17 @@ pub trait BaseSrcExt: 'static { #[doc(alias = "gst_base_src_set_live")] fn set_live(&self, live: bool); - fn get_property_num_buffers(&self) -> i32; + #[doc(alias = "get_property_num_buffers")] + fn num_buffers(&self) -> i32; - fn set_property_num_buffers(&self, num_buffers: i32); + #[doc(alias = "set_property_num_buffers")] + fn set_num_buffers(&self, num_buffers: i32); - fn get_property_typefind(&self) -> bool; + #[doc(alias = "get_property_typefind")] + fn is_typefind(&self) -> bool; - fn set_property_typefind(&self, typefind: bool); + #[doc(alias = "set_property_typefind")] + fn set_typefind(&self, typefind: bool); fn connect_property_blocksize_notify( &self, @@ -107,15 +111,15 @@ pub trait BaseSrcExt: 'static { } impl> BaseSrcExt for O { - //fn get_allocator(&self, allocator: /*Ignored*/Option, params: /*Ignored*/gst::AllocationParams) { + //fn allocator(&self, allocator: /*Ignored*/Option, params: /*Ignored*/gst::AllocationParams) { // unsafe { TODO: call ffi:gst_base_src_get_allocator() } //} - fn get_blocksize(&self) -> u32 { + fn blocksize(&self) -> u32 { unsafe { ffi::gst_base_src_get_blocksize(self.as_ref().to_glib_none().0) } } - fn get_buffer_pool(&self) -> Option { + fn buffer_pool(&self) -> Option { unsafe { from_glib_full(ffi::gst_base_src_get_buffer_pool( self.as_ref().to_glib_none().0, @@ -123,7 +127,7 @@ impl> BaseSrcExt for O { } } - fn get_do_timestamp(&self) -> bool { + fn does_timestamp(&self) -> bool { unsafe { from_glib(ffi::gst_base_src_get_do_timestamp( self.as_ref().to_glib_none().0, @@ -210,7 +214,7 @@ impl> BaseSrcExt for O { } } - fn get_property_num_buffers(&self) -> i32 { + fn num_buffers(&self) -> i32 { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -225,7 +229,7 @@ impl> BaseSrcExt for O { } } - fn set_property_num_buffers(&self, num_buffers: i32) { + fn set_num_buffers(&self, num_buffers: i32) { unsafe { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, @@ -235,7 +239,7 @@ impl> BaseSrcExt for O { } } - fn get_property_typefind(&self) -> bool { + fn is_typefind(&self) -> bool { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -250,7 +254,7 @@ impl> BaseSrcExt for O { } } - fn set_property_typefind(&self, typefind: bool) { + fn set_typefind(&self, typefind: bool) { unsafe { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, diff --git a/gstreamer-base/src/auto/base_transform.rs b/gstreamer-base/src/auto/base_transform.rs index e6e2208e6..0460748c9 100644 --- a/gstreamer-base/src/auto/base_transform.rs +++ b/gstreamer-base/src/auto/base_transform.rs @@ -27,10 +27,10 @@ pub const NONE_BASE_TRANSFORM: Option<&BaseTransform> = None; pub trait BaseTransformExt: 'static { //#[doc(alias = "gst_base_transform_get_allocator")] - //fn get_allocator(&self, allocator: /*Ignored*/Option, params: /*Ignored*/gst::AllocationParams); + //fn allocator(&self, allocator: /*Ignored*/Option, params: /*Ignored*/gst::AllocationParams); #[doc(alias = "gst_base_transform_get_buffer_pool")] - fn get_buffer_pool(&self) -> Option; + fn buffer_pool(&self) -> Option; #[doc(alias = "gst_base_transform_is_in_place")] fn is_in_place(&self) -> bool; @@ -73,9 +73,11 @@ pub trait BaseTransformExt: 'static { #[doc(alias = "gst_base_transform_update_src_caps")] fn update_src_caps(&self, updated_caps: &gst::Caps) -> Result<(), glib::error::BoolError>; - fn get_property_qos(&self) -> bool; + #[doc(alias = "get_property_qos")] + fn is_qos(&self) -> bool; - fn set_property_qos(&self, qos: bool); + #[doc(alias = "set_property_qos")] + fn set_qos(&self, qos: bool); fn connect_property_qos_notify( &self, @@ -84,11 +86,11 @@ pub trait BaseTransformExt: 'static { } impl> BaseTransformExt for O { - //fn get_allocator(&self, allocator: /*Ignored*/Option, params: /*Ignored*/gst::AllocationParams) { + //fn allocator(&self, allocator: /*Ignored*/Option, params: /*Ignored*/gst::AllocationParams) { // unsafe { TODO: call ffi:gst_base_transform_get_allocator() } //} - fn get_buffer_pool(&self) -> Option { + fn buffer_pool(&self) -> Option { unsafe { from_glib_full(ffi::gst_base_transform_get_buffer_pool( self.as_ref().to_glib_none().0, @@ -210,7 +212,7 @@ impl> BaseTransformExt for O { } } - fn get_property_qos(&self) -> bool { + fn is_qos(&self) -> bool { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -225,7 +227,7 @@ impl> BaseTransformExt for O { } } - fn set_property_qos(&self, qos: bool) { + fn set_qos(&self, qos: bool) { unsafe { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, diff --git a/gstreamer-base/src/auto/versions.txt b/gstreamer-base/src/auto/versions.txt index 2061f177b..3895717b6 100644 --- a/gstreamer-base/src/auto/versions.txt +++ b/gstreamer-base/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) diff --git a/gstreamer-base/sys/build.rs b/gstreamer-base/sys/build.rs index d68dd0cdc..961fb48a8 100644 --- a/gstreamer-base/sys/build.rs +++ b/gstreamer-base/sys/build.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-base/sys/src/lib.rs b/gstreamer-base/sys/src/lib.rs index 76116c96b..bfedfd74b 100644 --- a/gstreamer-base/sys/src/lib.rs +++ b/gstreamer-base/sys/src/lib.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-base/sys/tests/abi.rs b/gstreamer-base/sys/tests/abi.rs index 437639571..7ec282880 100644 --- a/gstreamer-base/sys/tests/abi.rs +++ b/gstreamer-base/sys/tests/abi.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-base/sys/tests/constant.c b/gstreamer-base/sys/tests/constant.c index 9d608b3c0..fae5b8f81 100644 --- a/gstreamer-base/sys/tests/constant.c +++ b/gstreamer-base/sys/tests/constant.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-base/sys/tests/layout.c b/gstreamer-base/sys/tests/layout.c index 217f4d589..71244535d 100644 --- a/gstreamer-base/sys/tests/layout.c +++ b/gstreamer-base/sys/tests/layout.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-check/src/auto/test_clock.rs b/gstreamer-check/src/auto/test_clock.rs index 7aeaac4ca..8b867d5c1 100644 --- a/gstreamer-check/src/auto/test_clock.rs +++ b/gstreamer-check/src/auto/test_clock.rs @@ -51,7 +51,7 @@ impl TestClock { } #[doc(alias = "gst_test_clock_get_next_entry_time")] - pub fn get_next_entry_time(&self) -> gst::ClockTime { + pub fn next_entry_time(&self) -> gst::ClockTime { unsafe { from_glib(ffi::gst_test_clock_get_next_entry_time( self.to_glib_none().0, @@ -122,7 +122,8 @@ impl TestClock { } } - pub fn get_property_clock_type(&self) -> gst::ClockType { + #[doc(alias = "get_property_clock_type")] + pub fn clock_type(&self) -> gst::ClockType { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -137,7 +138,8 @@ impl TestClock { } } - pub fn set_property_clock_type(&self, clock_type: gst::ClockType) { + #[doc(alias = "set_property_clock_type")] + pub fn set_clock_type(&self, clock_type: gst::ClockType) { unsafe { glib::gobject_ffi::g_object_set_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, @@ -147,7 +149,8 @@ impl TestClock { } } - pub fn get_property_start_time(&self) -> u64 { + #[doc(alias = "get_property_start_time")] + pub fn start_time(&self) -> u64 { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( diff --git a/gstreamer-check/src/auto/versions.txt b/gstreamer-check/src/auto/versions.txt index 2061f177b..3895717b6 100644 --- a/gstreamer-check/src/auto/versions.txt +++ b/gstreamer-check/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) diff --git a/gstreamer-check/sys/build.rs b/gstreamer-check/sys/build.rs index d68dd0cdc..961fb48a8 100644 --- a/gstreamer-check/sys/build.rs +++ b/gstreamer-check/sys/build.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-check/sys/src/lib.rs b/gstreamer-check/sys/src/lib.rs index b4cb82d00..ca658d32c 100644 --- a/gstreamer-check/sys/src/lib.rs +++ b/gstreamer-check/sys/src/lib.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-check/sys/tests/abi.rs b/gstreamer-check/sys/tests/abi.rs index 567cccd40..9f9647a19 100644 --- a/gstreamer-check/sys/tests/abi.rs +++ b/gstreamer-check/sys/tests/abi.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-check/sys/tests/constant.c b/gstreamer-check/sys/tests/constant.c index 14a085011..4c2dcbe17 100644 --- a/gstreamer-check/sys/tests/constant.c +++ b/gstreamer-check/sys/tests/constant.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-check/sys/tests/layout.c b/gstreamer-check/sys/tests/layout.c index 6c6190357..a452f3f53 100644 --- a/gstreamer-check/sys/tests/layout.c +++ b/gstreamer-check/sys/tests/layout.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-controller/src/auto/argb_control_binding.rs b/gstreamer-controller/src/auto/argb_control_binding.rs index c8a7648b4..8228cb090 100644 --- a/gstreamer-controller/src/auto/argb_control_binding.rs +++ b/gstreamer-controller/src/auto/argb_control_binding.rs @@ -57,33 +57,29 @@ unsafe impl Sync for ARGBControlBinding {} pub const NONE_ARGB_CONTROL_BINDING: Option<&ARGBControlBinding> = None; pub trait ARGBControlBindingExt: 'static { - fn get_property_control_source_a(&self) -> Option; + #[doc(alias = "get_property_control_source_a")] + fn control_source_a(&self) -> Option; - fn set_property_control_source_a>( - &self, - control_source_a: Option<&P>, - ); + #[doc(alias = "set_property_control_source_a")] + fn set_control_source_a>(&self, control_source_a: Option<&P>); - fn get_property_control_source_b(&self) -> Option; + #[doc(alias = "get_property_control_source_b")] + fn control_source_b(&self) -> Option; - fn set_property_control_source_b>( - &self, - control_source_b: Option<&P>, - ); + #[doc(alias = "set_property_control_source_b")] + fn set_control_source_b>(&self, control_source_b: Option<&P>); - fn get_property_control_source_g(&self) -> Option; + #[doc(alias = "get_property_control_source_g")] + fn control_source_g(&self) -> Option; - fn set_property_control_source_g>( - &self, - control_source_g: Option<&P>, - ); + #[doc(alias = "set_property_control_source_g")] + fn set_control_source_g>(&self, control_source_g: Option<&P>); - fn get_property_control_source_r(&self) -> Option; + #[doc(alias = "get_property_control_source_r")] + fn control_source_r(&self) -> Option; - fn set_property_control_source_r>( - &self, - control_source_r: Option<&P>, - ); + #[doc(alias = "set_property_control_source_r")] + fn set_control_source_r>(&self, control_source_r: Option<&P>); fn connect_property_control_source_a_notify( &self, @@ -107,7 +103,7 @@ pub trait ARGBControlBindingExt: 'static { } impl> ARGBControlBindingExt for O { - fn get_property_control_source_a(&self) -> Option { + fn control_source_a(&self) -> Option { unsafe { let mut value = glib::Value::from_type(::static_type()); @@ -122,10 +118,7 @@ impl> ARGBControlBindingExt for O { } } - fn set_property_control_source_a>( - &self, - control_source_a: Option<&P>, - ) { + fn set_control_source_a>(&self, control_source_a: Option<&P>) { unsafe { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, @@ -135,7 +128,7 @@ impl> ARGBControlBindingExt for O { } } - fn get_property_control_source_b(&self) -> Option { + fn control_source_b(&self) -> Option { unsafe { let mut value = glib::Value::from_type(::static_type()); @@ -150,10 +143,7 @@ impl> ARGBControlBindingExt for O { } } - fn set_property_control_source_b>( - &self, - control_source_b: Option<&P>, - ) { + fn set_control_source_b>(&self, control_source_b: Option<&P>) { unsafe { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, @@ -163,7 +153,7 @@ impl> ARGBControlBindingExt for O { } } - fn get_property_control_source_g(&self) -> Option { + fn control_source_g(&self) -> Option { unsafe { let mut value = glib::Value::from_type(::static_type()); @@ -178,10 +168,7 @@ impl> ARGBControlBindingExt for O { } } - fn set_property_control_source_g>( - &self, - control_source_g: Option<&P>, - ) { + fn set_control_source_g>(&self, control_source_g: Option<&P>) { unsafe { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, @@ -191,7 +178,7 @@ impl> ARGBControlBindingExt for O { } } - fn get_property_control_source_r(&self) -> Option { + fn control_source_r(&self) -> Option { unsafe { let mut value = glib::Value::from_type(::static_type()); @@ -206,10 +193,7 @@ impl> ARGBControlBindingExt for O { } } - fn set_property_control_source_r>( - &self, - control_source_r: Option<&P>, - ) { + fn set_control_source_r>(&self, control_source_r: Option<&P>) { unsafe { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, diff --git a/gstreamer-controller/src/auto/direct_control_binding.rs b/gstreamer-controller/src/auto/direct_control_binding.rs index 397dde33f..27276e108 100644 --- a/gstreamer-controller/src/auto/direct_control_binding.rs +++ b/gstreamer-controller/src/auto/direct_control_binding.rs @@ -62,11 +62,14 @@ unsafe impl Sync for DirectControlBinding {} pub const NONE_DIRECT_CONTROL_BINDING: Option<&DirectControlBinding> = None; pub trait DirectControlBindingExt: 'static { - fn get_property_absolute(&self) -> bool; + #[doc(alias = "get_property_absolute")] + fn is_absolute(&self) -> bool; - fn get_property_control_source(&self) -> Option; + #[doc(alias = "get_property_control_source")] + fn control_source(&self) -> Option; - fn set_property_control_source>(&self, control_source: Option<&P>); + #[doc(alias = "set_property_control_source")] + fn set_control_source>(&self, control_source: Option<&P>); fn connect_property_control_source_notify( &self, @@ -75,7 +78,7 @@ pub trait DirectControlBindingExt: 'static { } impl> DirectControlBindingExt for O { - fn get_property_absolute(&self) -> bool { + fn is_absolute(&self) -> bool { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -90,7 +93,7 @@ impl> DirectControlBindingExt for O { } } - fn get_property_control_source(&self) -> Option { + fn control_source(&self) -> Option { unsafe { let mut value = glib::Value::from_type(::static_type()); @@ -105,7 +108,7 @@ impl> DirectControlBindingExt for O { } } - fn set_property_control_source>(&self, control_source: Option<&P>) { + fn set_control_source>(&self, control_source: Option<&P>) { unsafe { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, diff --git a/gstreamer-controller/src/auto/interpolation_control_source.rs b/gstreamer-controller/src/auto/interpolation_control_source.rs index 1a7715fa4..fc9146041 100644 --- a/gstreamer-controller/src/auto/interpolation_control_source.rs +++ b/gstreamer-controller/src/auto/interpolation_control_source.rs @@ -45,9 +45,11 @@ unsafe impl Sync for InterpolationControlSource {} pub const NONE_INTERPOLATION_CONTROL_SOURCE: Option<&InterpolationControlSource> = None; pub trait InterpolationControlSourceExt: 'static { - fn get_property_mode(&self) -> InterpolationMode; + #[doc(alias = "get_property_mode")] + fn mode(&self) -> InterpolationMode; - fn set_property_mode(&self, mode: InterpolationMode); + #[doc(alias = "set_property_mode")] + fn set_mode(&self, mode: InterpolationMode); fn connect_property_mode_notify( &self, @@ -56,7 +58,7 @@ pub trait InterpolationControlSourceExt: 'static { } impl> InterpolationControlSourceExt for O { - fn get_property_mode(&self) -> InterpolationMode { + fn mode(&self) -> InterpolationMode { unsafe { let mut value = glib::Value::from_type(::static_type()); @@ -72,7 +74,7 @@ impl> InterpolationControlSourceExt for O { } } - fn set_property_mode(&self, mode: InterpolationMode) { + fn set_mode(&self, mode: InterpolationMode) { unsafe { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, diff --git a/gstreamer-controller/src/auto/lfo_control_source.rs b/gstreamer-controller/src/auto/lfo_control_source.rs index 25bf77f07..249a47aa9 100644 --- a/gstreamer-controller/src/auto/lfo_control_source.rs +++ b/gstreamer-controller/src/auto/lfo_control_source.rs @@ -43,25 +43,35 @@ unsafe impl Sync for LFOControlSource {} pub const NONE_LFO_CONTROL_SOURCE: Option<&LFOControlSource> = None; pub trait LFOControlSourceExt: 'static { - fn get_property_amplitude(&self) -> f64; + #[doc(alias = "get_property_amplitude")] + fn amplitude(&self) -> f64; - fn set_property_amplitude(&self, amplitude: f64); + #[doc(alias = "set_property_amplitude")] + fn set_amplitude(&self, amplitude: f64); - fn get_property_frequency(&self) -> f64; + #[doc(alias = "get_property_frequency")] + fn frequency(&self) -> f64; - fn set_property_frequency(&self, frequency: f64); + #[doc(alias = "set_property_frequency")] + fn set_frequency(&self, frequency: f64); - fn get_property_offset(&self) -> f64; + #[doc(alias = "get_property_offset")] + fn offset(&self) -> f64; - fn set_property_offset(&self, offset: f64); + #[doc(alias = "set_property_offset")] + fn set_offset(&self, offset: f64); - fn get_property_timeshift(&self) -> u64; + #[doc(alias = "get_property_timeshift")] + fn timeshift(&self) -> u64; - fn set_property_timeshift(&self, timeshift: u64); + #[doc(alias = "set_property_timeshift")] + fn set_timeshift(&self, timeshift: u64); - fn get_property_waveform(&self) -> LFOWaveform; + #[doc(alias = "get_property_waveform")] + fn waveform(&self) -> LFOWaveform; - fn set_property_waveform(&self, waveform: LFOWaveform); + #[doc(alias = "set_property_waveform")] + fn set_waveform(&self, waveform: LFOWaveform); fn connect_property_amplitude_notify( &self, @@ -90,7 +100,7 @@ pub trait LFOControlSourceExt: 'static { } impl> LFOControlSourceExt for O { - fn get_property_amplitude(&self) -> f64 { + fn amplitude(&self) -> f64 { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -105,7 +115,7 @@ impl> LFOControlSourceExt for O { } } - fn set_property_amplitude(&self, amplitude: f64) { + fn set_amplitude(&self, amplitude: f64) { unsafe { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, @@ -115,7 +125,7 @@ impl> LFOControlSourceExt for O { } } - fn get_property_frequency(&self) -> f64 { + fn frequency(&self) -> f64 { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -130,7 +140,7 @@ impl> LFOControlSourceExt for O { } } - fn set_property_frequency(&self, frequency: f64) { + fn set_frequency(&self, frequency: f64) { unsafe { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, @@ -140,7 +150,7 @@ impl> LFOControlSourceExt for O { } } - fn get_property_offset(&self) -> f64 { + fn offset(&self) -> f64 { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -155,7 +165,7 @@ impl> LFOControlSourceExt for O { } } - fn set_property_offset(&self, offset: f64) { + fn set_offset(&self, offset: f64) { unsafe { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, @@ -165,7 +175,7 @@ impl> LFOControlSourceExt for O { } } - fn get_property_timeshift(&self) -> u64 { + fn timeshift(&self) -> u64 { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -180,7 +190,7 @@ impl> LFOControlSourceExt for O { } } - fn set_property_timeshift(&self, timeshift: u64) { + fn set_timeshift(&self, timeshift: u64) { unsafe { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, @@ -190,7 +200,7 @@ impl> LFOControlSourceExt for O { } } - fn get_property_waveform(&self) -> LFOWaveform { + fn waveform(&self) -> LFOWaveform { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -205,7 +215,7 @@ impl> LFOControlSourceExt for O { } } - fn set_property_waveform(&self, waveform: LFOWaveform) { + fn set_waveform(&self, waveform: LFOWaveform) { unsafe { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, diff --git a/gstreamer-controller/src/auto/timed_value_control_source.rs b/gstreamer-controller/src/auto/timed_value_control_source.rs index 254d26687..deec9b5d4 100644 --- a/gstreamer-controller/src/auto/timed_value_control_source.rs +++ b/gstreamer-controller/src/auto/timed_value_control_source.rs @@ -30,10 +30,10 @@ pub trait TimedValueControlSourceExt: 'static { //fn find_control_point_iter(&self, timestamp: gst::ClockTime) -> /*Ignored*/Option; //#[doc(alias = "gst_timed_value_control_source_get_all")] - //fn get_all(&self) -> /*Ignored*/Vec; + //fn all(&self) -> /*Ignored*/Vec; #[doc(alias = "gst_timed_value_control_source_get_count")] - fn get_count(&self) -> i32; + fn count(&self) -> i32; #[doc(alias = "gst_timed_value_control_source_set")] fn set(&self, timestamp: gst::ClockTime, value: f64) -> bool; @@ -68,11 +68,11 @@ impl> TimedValueControlSourceExt for O { // unsafe { TODO: call ffi:gst_timed_value_control_source_find_control_point_iter() } //} - //fn get_all(&self) -> /*Ignored*/Vec { + //fn all(&self) -> /*Ignored*/Vec { // unsafe { TODO: call ffi:gst_timed_value_control_source_get_all() } //} - fn get_count(&self) -> i32 { + fn count(&self) -> i32 { unsafe { ffi::gst_timed_value_control_source_get_count(self.as_ref().to_glib_none().0) } } diff --git a/gstreamer-controller/src/auto/trigger_control_source.rs b/gstreamer-controller/src/auto/trigger_control_source.rs index 217f952cd..31667a6bb 100644 --- a/gstreamer-controller/src/auto/trigger_control_source.rs +++ b/gstreamer-controller/src/auto/trigger_control_source.rs @@ -43,9 +43,11 @@ unsafe impl Sync for TriggerControlSource {} pub const NONE_TRIGGER_CONTROL_SOURCE: Option<&TriggerControlSource> = None; pub trait TriggerControlSourceExt: 'static { - fn get_property_tolerance(&self) -> i64; + #[doc(alias = "get_property_tolerance")] + fn tolerance(&self) -> i64; - fn set_property_tolerance(&self, tolerance: i64); + #[doc(alias = "set_property_tolerance")] + fn set_tolerance(&self, tolerance: i64); fn connect_property_tolerance_notify( &self, @@ -54,7 +56,7 @@ pub trait TriggerControlSourceExt: 'static { } impl> TriggerControlSourceExt for O { - fn get_property_tolerance(&self) -> i64 { + fn tolerance(&self) -> i64 { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -69,7 +71,7 @@ impl> TriggerControlSourceExt for O { } } - fn set_property_tolerance(&self, tolerance: i64) { + fn set_tolerance(&self, tolerance: i64) { unsafe { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, diff --git a/gstreamer-controller/src/auto/versions.txt b/gstreamer-controller/src/auto/versions.txt index 2061f177b..3895717b6 100644 --- a/gstreamer-controller/src/auto/versions.txt +++ b/gstreamer-controller/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) diff --git a/gstreamer-controller/sys/build.rs b/gstreamer-controller/sys/build.rs index d68dd0cdc..961fb48a8 100644 --- a/gstreamer-controller/sys/build.rs +++ b/gstreamer-controller/sys/build.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-controller/sys/src/lib.rs b/gstreamer-controller/sys/src/lib.rs index 3c6958595..b69f44ca2 100644 --- a/gstreamer-controller/sys/src/lib.rs +++ b/gstreamer-controller/sys/src/lib.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-controller/sys/tests/abi.rs b/gstreamer-controller/sys/tests/abi.rs index 0e84cba6a..0e7550a9a 100644 --- a/gstreamer-controller/sys/tests/abi.rs +++ b/gstreamer-controller/sys/tests/abi.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-controller/sys/tests/constant.c b/gstreamer-controller/sys/tests/constant.c index f85676611..950de33c6 100644 --- a/gstreamer-controller/sys/tests/constant.c +++ b/gstreamer-controller/sys/tests/constant.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-controller/sys/tests/layout.c b/gstreamer-controller/sys/tests/layout.c index 9418cdd32..9f1429e44 100644 --- a/gstreamer-controller/sys/tests/layout.c +++ b/gstreamer-controller/sys/tests/layout.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-editing-services/src/auto/asset.rs b/gstreamer-editing-services/src/auto/asset.rs index ecd2983d1..5f34c1cd5 100644 --- a/gstreamer-editing-services/src/auto/asset.rs +++ b/gstreamer-editing-services/src/auto/asset.rs @@ -122,19 +122,19 @@ pub trait AssetExt: 'static { fn extract(&self) -> Result; #[doc(alias = "ges_asset_get_error")] - fn get_error(&self) -> Option; + fn error(&self) -> Option; #[doc(alias = "ges_asset_get_extractable_type")] - fn get_extractable_type(&self) -> glib::types::Type; + fn extractable_type(&self) -> glib::types::Type; #[doc(alias = "ges_asset_get_id")] - fn get_id(&self) -> Option; + fn id(&self) -> Option; #[doc(alias = "ges_asset_get_proxy")] - fn get_proxy(&self) -> Option; + fn proxy(&self) -> Option; #[doc(alias = "ges_asset_get_proxy_target")] - fn get_proxy_target(&self) -> Option; + fn proxy_target(&self) -> Option; #[doc(alias = "ges_asset_list_proxies")] fn list_proxies(&self) -> Vec; @@ -164,11 +164,11 @@ impl> AssetExt for O { } } - fn get_error(&self) -> Option { + fn error(&self) -> Option { unsafe { from_glib_none(ffi::ges_asset_get_error(self.as_ref().to_glib_none().0)) } } - fn get_extractable_type(&self) -> glib::types::Type { + fn extractable_type(&self) -> glib::types::Type { unsafe { from_glib(ffi::ges_asset_get_extractable_type( self.as_ref().to_glib_none().0, @@ -176,15 +176,15 @@ impl> AssetExt for O { } } - fn get_id(&self) -> Option { + fn id(&self) -> Option { unsafe { from_glib_none(ffi::ges_asset_get_id(self.as_ref().to_glib_none().0)) } } - fn get_proxy(&self) -> Option { + fn proxy(&self) -> Option { unsafe { from_glib_none(ffi::ges_asset_get_proxy(self.as_ref().to_glib_none().0)) } } - fn get_proxy_target(&self) -> Option { + fn proxy_target(&self) -> Option { unsafe { from_glib_none(ffi::ges_asset_get_proxy_target( self.as_ref().to_glib_none().0, diff --git a/gstreamer-editing-services/src/auto/clip.rs b/gstreamer-editing-services/src/auto/clip.rs index 5b4b3722a..1764d56e0 100644 --- a/gstreamer-editing-services/src/auto/clip.rs +++ b/gstreamer-editing-services/src/auto/clip.rs @@ -73,7 +73,7 @@ pub trait ClipExt: 'static { #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[doc(alias = "ges_clip_get_duration_limit")] - fn get_duration_limit(&self) -> gst::ClockTime; + fn duration_limit(&self) -> gst::ClockTime; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] @@ -85,10 +85,10 @@ pub trait ClipExt: 'static { ) -> Result; #[doc(alias = "ges_clip_get_layer")] - fn get_layer(&self) -> Option; + fn layer(&self) -> Option; #[doc(alias = "ges_clip_get_supported_formats")] - fn get_supported_formats(&self) -> TrackType; + fn supported_formats(&self) -> TrackType; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] @@ -114,7 +114,7 @@ pub trait ClipExt: 'static { fn get_top_effect_position>(&self, effect: &P) -> i32; #[doc(alias = "ges_clip_get_top_effects")] - fn get_top_effects(&self) -> Vec; + fn top_effects(&self) -> Vec; #[doc(alias = "ges_clip_move_to_layer")] fn move_to_layer>(&self, layer: &P) -> Result<(), glib::error::BoolError>; @@ -267,7 +267,7 @@ impl> ClipExt for O { #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] - fn get_duration_limit(&self) -> gst::ClockTime { + fn duration_limit(&self) -> gst::ClockTime { unsafe { from_glib(ffi::ges_clip_get_duration_limit( self.as_ref().to_glib_none().0, @@ -298,11 +298,11 @@ impl> ClipExt for O { } } - fn get_layer(&self) -> Option { + fn layer(&self) -> Option { unsafe { from_glib_full(ffi::ges_clip_get_layer(self.as_ref().to_glib_none().0)) } } - fn get_supported_formats(&self) -> TrackType { + fn supported_formats(&self) -> TrackType { unsafe { from_glib(ffi::ges_clip_get_supported_formats( self.as_ref().to_glib_none().0, @@ -372,7 +372,7 @@ impl> ClipExt for O { } } - fn get_top_effects(&self) -> Vec { + fn top_effects(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_full(ffi::ges_clip_get_top_effects( self.as_ref().to_glib_none().0, diff --git a/gstreamer-editing-services/src/auto/container.rs b/gstreamer-editing-services/src/auto/container.rs index 134acd870..57357a19c 100644 --- a/gstreamer-editing-services/src/auto/container.rs +++ b/gstreamer-editing-services/src/auto/container.rs @@ -59,7 +59,8 @@ pub trait GESContainerExt: 'static { #[doc(alias = "ges_container_ungroup")] fn ungroup(&self, recursive: bool) -> Vec; - fn get_property_height(&self) -> u32; + #[doc(alias = "get_property_height")] + fn height(&self) -> u32; fn connect_child_added( &self, @@ -140,7 +141,7 @@ impl> GESContainerExt for O { } } - fn get_property_height(&self) -> u32 { + fn height(&self) -> u32 { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( diff --git a/gstreamer-editing-services/src/auto/effect.rs b/gstreamer-editing-services/src/auto/effect.rs index 356491c17..8e96716c1 100644 --- a/gstreamer-editing-services/src/auto/effect.rs +++ b/gstreamer-editing-services/src/auto/effect.rs @@ -33,11 +33,12 @@ impl Effect { pub const NONE_EFFECT: Option<&Effect> = None; pub trait EffectExt: 'static { - fn get_property_bin_description(&self) -> Option; + #[doc(alias = "get_property_bin_description")] + fn bin_description(&self) -> Option; } impl> EffectExt for O { - fn get_property_bin_description(&self) -> Option { + fn bin_description(&self) -> Option { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( diff --git a/gstreamer-editing-services/src/auto/extractable.rs b/gstreamer-editing-services/src/auto/extractable.rs index 6576a421b..8fc84c999 100644 --- a/gstreamer-editing-services/src/auto/extractable.rs +++ b/gstreamer-editing-services/src/auto/extractable.rs @@ -19,17 +19,17 @@ pub const NONE_EXTRACTABLE: Option<&Extractable> = None; pub trait ExtractableExt: 'static { #[doc(alias = "ges_extractable_get_asset")] - fn get_asset(&self) -> Option; + fn asset(&self) -> Option; #[doc(alias = "ges_extractable_get_id")] - fn get_id(&self) -> Option; + fn id(&self) -> Option; #[doc(alias = "ges_extractable_set_asset")] fn set_asset>(&self, asset: &P) -> Result<(), glib::error::BoolError>; } impl> ExtractableExt for O { - fn get_asset(&self) -> Option { + fn asset(&self) -> Option { unsafe { from_glib_none(ffi::ges_extractable_get_asset( self.as_ref().to_glib_none().0, @@ -37,7 +37,7 @@ impl> ExtractableExt for O { } } - fn get_id(&self) -> Option { + fn id(&self) -> Option { unsafe { from_glib_full(ffi::ges_extractable_get_id(self.as_ref().to_glib_none().0)) } } diff --git a/gstreamer-editing-services/src/auto/group.rs b/gstreamer-editing-services/src/auto/group.rs index 0b95627d4..fce09d0ff 100644 --- a/gstreamer-editing-services/src/auto/group.rs +++ b/gstreamer-editing-services/src/auto/group.rs @@ -40,25 +40,35 @@ impl Default for Group { pub const NONE_GROUP: Option<&Group> = None; pub trait GroupExt: 'static { - fn get_property_duration(&self) -> u64; + #[doc(alias = "get_property_duration")] + fn duration(&self) -> u64; - fn set_property_duration(&self, duration: u64); + #[doc(alias = "set_property_duration")] + fn set_duration(&self, duration: u64); - fn get_property_in_point(&self) -> u64; + #[doc(alias = "get_property_in_point")] + fn in_point(&self) -> u64; - fn set_property_in_point(&self, in_point: u64); + #[doc(alias = "set_property_in_point")] + fn set_in_point(&self, in_point: u64); - fn get_property_max_duration(&self) -> u64; + #[doc(alias = "get_property_max_duration")] + fn max_duration(&self) -> u64; - fn set_property_max_duration(&self, max_duration: u64); + #[doc(alias = "set_property_max_duration")] + fn set_max_duration(&self, max_duration: u64); - fn get_property_priority(&self) -> u32; + #[doc(alias = "get_property_priority")] + fn priority(&self) -> u32; - fn set_property_priority(&self, priority: u32); + #[doc(alias = "set_property_priority")] + fn set_priority(&self, priority: u32); - fn get_property_start(&self) -> u64; + #[doc(alias = "get_property_start")] + fn start(&self) -> u64; - fn set_property_start(&self, start: u64); + #[doc(alias = "set_property_start")] + fn set_start(&self, start: u64); fn connect_property_duration_notify(&self, f: F) -> SignalHandlerId; @@ -73,7 +83,7 @@ pub trait GroupExt: 'static { } impl> GroupExt for O { - fn get_property_duration(&self) -> u64 { + fn duration(&self) -> u64 { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -88,7 +98,7 @@ impl> GroupExt for O { } } - fn set_property_duration(&self, duration: u64) { + fn set_duration(&self, duration: u64) { unsafe { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, @@ -98,7 +108,7 @@ impl> GroupExt for O { } } - fn get_property_in_point(&self) -> u64 { + fn in_point(&self) -> u64 { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -113,7 +123,7 @@ impl> GroupExt for O { } } - fn set_property_in_point(&self, in_point: u64) { + fn set_in_point(&self, in_point: u64) { unsafe { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, @@ -123,7 +133,7 @@ impl> GroupExt for O { } } - fn get_property_max_duration(&self) -> u64 { + fn max_duration(&self) -> u64 { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -138,7 +148,7 @@ impl> GroupExt for O { } } - fn set_property_max_duration(&self, max_duration: u64) { + fn set_max_duration(&self, max_duration: u64) { unsafe { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, @@ -148,7 +158,7 @@ impl> GroupExt for O { } } - fn get_property_priority(&self) -> u32 { + fn priority(&self) -> u32 { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -163,7 +173,7 @@ impl> GroupExt for O { } } - fn set_property_priority(&self, priority: u32) { + fn set_priority(&self, priority: u32) { unsafe { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, @@ -173,7 +183,7 @@ impl> GroupExt for O { } } - fn get_property_start(&self) -> u64 { + fn start(&self) -> u64 { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -188,7 +198,7 @@ impl> GroupExt for O { } } - fn set_property_start(&self, start: u64) { + fn set_start(&self, start: u64) { unsafe { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, diff --git a/gstreamer-editing-services/src/auto/layer.rs b/gstreamer-editing-services/src/auto/layer.rs index ad04c043d..45bc59964 100644 --- a/gstreamer-editing-services/src/auto/layer.rs +++ b/gstreamer-editing-services/src/auto/layer.rs @@ -83,22 +83,22 @@ pub trait LayerExt: 'static { fn get_active_for_track>(&self, track: &P) -> bool; #[doc(alias = "ges_layer_get_auto_transition")] - fn get_auto_transition(&self) -> bool; + fn is_auto_transition(&self) -> bool; #[doc(alias = "ges_layer_get_clips")] - fn get_clips(&self) -> Vec; + fn clips(&self) -> Vec; #[doc(alias = "ges_layer_get_clips_in_interval")] fn get_clips_in_interval(&self, start: gst::ClockTime, end: gst::ClockTime) -> Vec; #[doc(alias = "ges_layer_get_duration")] - fn get_duration(&self) -> gst::ClockTime; + fn duration(&self) -> gst::ClockTime; #[doc(alias = "ges_layer_get_priority")] - fn get_priority(&self) -> u32; + fn priority(&self) -> u32; #[doc(alias = "ges_layer_get_timeline")] - fn get_timeline(&self) -> Option; + fn timeline(&self) -> Option; #[doc(alias = "ges_layer_is_empty")] fn is_empty(&self) -> bool; @@ -230,7 +230,7 @@ impl> LayerExt for O { } } - fn get_auto_transition(&self) -> bool { + fn is_auto_transition(&self) -> bool { unsafe { from_glib(ffi::ges_layer_get_auto_transition( self.as_ref().to_glib_none().0, @@ -238,7 +238,7 @@ impl> LayerExt for O { } } - fn get_clips(&self) -> Vec { + fn clips(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_full(ffi::ges_layer_get_clips( self.as_ref().to_glib_none().0, @@ -256,15 +256,15 @@ impl> LayerExt for O { } } - fn get_duration(&self) -> gst::ClockTime { + fn duration(&self) -> gst::ClockTime { unsafe { from_glib(ffi::ges_layer_get_duration(self.as_ref().to_glib_none().0)) } } - fn get_priority(&self) -> u32 { + fn priority(&self) -> u32 { unsafe { ffi::ges_layer_get_priority(self.as_ref().to_glib_none().0) } } - fn get_timeline(&self) -> Option { + fn timeline(&self) -> Option { unsafe { from_glib_none(ffi::ges_layer_get_timeline(self.as_ref().to_glib_none().0)) } } diff --git a/gstreamer-editing-services/src/auto/pipeline.rs b/gstreamer-editing-services/src/auto/pipeline.rs index 774df48bd..e59d1027c 100644 --- a/gstreamer-editing-services/src/auto/pipeline.rs +++ b/gstreamer-editing-services/src/auto/pipeline.rs @@ -41,7 +41,7 @@ pub const NONE_PIPELINE: Option<&Pipeline> = None; pub trait GESPipelineExt: 'static { #[doc(alias = "ges_pipeline_get_mode")] - fn get_mode(&self) -> PipelineFlags; + fn mode(&self) -> PipelineFlags; #[doc(alias = "ges_pipeline_get_thumbnail")] fn get_thumbnail(&self, caps: &gst::Caps) -> Option; @@ -83,23 +83,32 @@ pub trait GESPipelineExt: 'static { #[doc(alias = "ges_pipeline_set_timeline")] fn set_timeline>(&self, timeline: &P) -> Result<(), glib::error::BoolError>; - fn get_property_audio_filter(&self) -> Option; + #[doc(alias = "get_property_audio_filter")] + fn audio_filter(&self) -> Option; - fn set_property_audio_filter>(&self, audio_filter: Option<&P>); + #[doc(alias = "set_property_audio_filter")] + fn set_audio_filter>(&self, audio_filter: Option<&P>); - fn get_property_audio_sink(&self) -> Option; + #[doc(alias = "get_property_audio_sink")] + fn audio_sink(&self) -> Option; - fn set_property_audio_sink>(&self, audio_sink: Option<&P>); + #[doc(alias = "set_property_audio_sink")] + fn set_audio_sink>(&self, audio_sink: Option<&P>); - fn get_property_timeline(&self) -> Option; + #[doc(alias = "get_property_timeline")] + fn timeline(&self) -> Option; - fn get_property_video_filter(&self) -> Option; + #[doc(alias = "get_property_video_filter")] + fn video_filter(&self) -> Option; - fn set_property_video_filter>(&self, video_filter: Option<&P>); + #[doc(alias = "set_property_video_filter")] + fn set_video_filter>(&self, video_filter: Option<&P>); - fn get_property_video_sink(&self) -> Option; + #[doc(alias = "get_property_video_sink")] + fn video_sink(&self) -> Option; - fn set_property_video_sink>(&self, video_sink: Option<&P>); + #[doc(alias = "set_property_video_sink")] + fn set_video_sink>(&self, video_sink: Option<&P>); fn connect_property_audio_filter_notify(&self, f: F) -> SignalHandlerId; @@ -117,7 +126,7 @@ pub trait GESPipelineExt: 'static { } impl> GESPipelineExt for O { - fn get_mode(&self) -> PipelineFlags { + fn mode(&self) -> PipelineFlags { unsafe { from_glib(ffi::ges_pipeline_get_mode(self.as_ref().to_glib_none().0)) } } @@ -237,7 +246,7 @@ impl> GESPipelineExt for O { } } - fn get_property_audio_filter(&self) -> Option { + fn audio_filter(&self) -> Option { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -251,7 +260,7 @@ impl> GESPipelineExt for O { } } - fn set_property_audio_filter>(&self, audio_filter: Option<&P>) { + fn set_audio_filter>(&self, audio_filter: Option<&P>) { unsafe { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, @@ -261,7 +270,7 @@ impl> GESPipelineExt for O { } } - fn get_property_audio_sink(&self) -> Option { + fn audio_sink(&self) -> Option { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -275,7 +284,7 @@ impl> GESPipelineExt for O { } } - fn set_property_audio_sink>(&self, audio_sink: Option<&P>) { + fn set_audio_sink>(&self, audio_sink: Option<&P>) { unsafe { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, @@ -285,7 +294,7 @@ impl> GESPipelineExt for O { } } - fn get_property_timeline(&self) -> Option { + fn timeline(&self) -> Option { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -299,7 +308,7 @@ impl> GESPipelineExt for O { } } - fn get_property_video_filter(&self) -> Option { + fn video_filter(&self) -> Option { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -313,7 +322,7 @@ impl> GESPipelineExt for O { } } - fn set_property_video_filter>(&self, video_filter: Option<&P>) { + fn set_video_filter>(&self, video_filter: Option<&P>) { unsafe { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, @@ -323,7 +332,7 @@ impl> GESPipelineExt for O { } } - fn get_property_video_sink(&self) -> Option { + fn video_sink(&self) -> Option { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -337,7 +346,7 @@ impl> GESPipelineExt for O { } } - fn set_property_video_sink>(&self, video_sink: Option<&P>) { + fn set_video_sink>(&self, video_sink: Option<&P>) { unsafe { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, diff --git a/gstreamer-editing-services/src/auto/project.rs b/gstreamer-editing-services/src/auto/project.rs index 4a693fd79..6806c09ca 100644 --- a/gstreamer-editing-services/src/auto/project.rs +++ b/gstreamer-editing-services/src/auto/project.rs @@ -61,10 +61,10 @@ pub trait ProjectExt: 'static { fn get_asset(&self, id: &str, extractable_type: glib::types::Type) -> Option; #[doc(alias = "ges_project_get_loading_assets")] - fn get_loading_assets(&self) -> Vec; + fn loading_assets(&self) -> Vec; #[doc(alias = "ges_project_get_uri")] - fn get_uri(&self) -> Option; + fn uri(&self) -> Option; #[doc(alias = "ges_project_list_assets")] fn list_assets(&self, filter: glib::types::Type) -> Vec; @@ -189,7 +189,7 @@ impl> ProjectExt for O { } } - fn get_loading_assets(&self) -> Vec { + fn loading_assets(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_full(ffi::ges_project_get_loading_assets( self.as_ref().to_glib_none().0, @@ -197,7 +197,7 @@ impl> ProjectExt for O { } } - fn get_uri(&self) -> Option { + fn uri(&self) -> Option { unsafe { from_glib_full(ffi::ges_project_get_uri(self.as_ref().to_glib_none().0)) } } diff --git a/gstreamer-editing-services/src/auto/timeline.rs b/gstreamer-editing-services/src/auto/timeline.rs index 3071a451c..b795ec8cc 100644 --- a/gstreamer-editing-services/src/auto/timeline.rs +++ b/gstreamer-editing-services/src/auto/timeline.rs @@ -87,10 +87,10 @@ pub trait TimelineExt: 'static { fn commit_sync(&self) -> bool; #[doc(alias = "ges_timeline_get_auto_transition")] - fn get_auto_transition(&self) -> bool; + fn is_auto_transition(&self) -> bool; #[doc(alias = "ges_timeline_get_duration")] - fn get_duration(&self) -> gst::ClockTime; + fn duration(&self) -> gst::ClockTime; #[doc(alias = "ges_timeline_get_element")] fn get_element(&self, name: &str) -> Option; @@ -106,25 +106,25 @@ pub trait TimelineExt: 'static { fn get_frame_time(&self, frame_number: FrameNumber) -> gst::ClockTime; #[doc(alias = "ges_timeline_get_groups")] - fn get_groups(&self) -> Vec; + fn groups(&self) -> Vec; #[doc(alias = "ges_timeline_get_layer")] fn get_layer(&self, priority: u32) -> Option; #[doc(alias = "ges_timeline_get_layers")] - fn get_layers(&self) -> Vec; + fn layers(&self) -> Vec; #[doc(alias = "ges_timeline_get_pad_for_track")] fn get_pad_for_track>(&self, track: &P) -> Option; #[doc(alias = "ges_timeline_get_snapping_distance")] - fn get_snapping_distance(&self) -> gst::ClockTime; + fn snapping_distance(&self) -> gst::ClockTime; #[doc(alias = "ges_timeline_get_track_for_pad")] fn get_track_for_pad>(&self, pad: &P) -> Option; #[doc(alias = "ges_timeline_get_tracks")] - fn get_tracks(&self) -> Vec; + fn tracks(&self) -> Vec; #[doc(alias = "ges_timeline_is_empty")] fn is_empty(&self) -> bool; @@ -260,7 +260,7 @@ impl> TimelineExt for O { } } - fn get_auto_transition(&self) -> bool { + fn is_auto_transition(&self) -> bool { unsafe { from_glib(ffi::ges_timeline_get_auto_transition( self.as_ref().to_glib_none().0, @@ -268,7 +268,7 @@ impl> TimelineExt for O { } } - fn get_duration(&self) -> gst::ClockTime { + fn duration(&self) -> gst::ClockTime { unsafe { from_glib(ffi::ges_timeline_get_duration( self.as_ref().to_glib_none().0, @@ -304,7 +304,7 @@ impl> TimelineExt for O { } } - fn get_groups(&self) -> Vec { + fn groups(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_none(ffi::ges_timeline_get_groups( self.as_ref().to_glib_none().0, @@ -321,7 +321,7 @@ impl> TimelineExt for O { } } - fn get_layers(&self) -> Vec { + fn layers(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_full(ffi::ges_timeline_get_layers( self.as_ref().to_glib_none().0, @@ -338,7 +338,7 @@ impl> TimelineExt for O { } } - fn get_snapping_distance(&self) -> gst::ClockTime { + fn snapping_distance(&self) -> gst::ClockTime { unsafe { from_glib(ffi::ges_timeline_get_snapping_distance( self.as_ref().to_glib_none().0, @@ -355,7 +355,7 @@ impl> TimelineExt for O { } } - fn get_tracks(&self) -> Vec { + fn tracks(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_full(ffi::ges_timeline_get_tracks( self.as_ref().to_glib_none().0, diff --git a/gstreamer-editing-services/src/auto/timeline_element.rs b/gstreamer-editing-services/src/auto/timeline_element.rs index db5cf0975..99531dc02 100644 --- a/gstreamer-editing-services/src/auto/timeline_element.rs +++ b/gstreamer-editing-services/src/auto/timeline_element.rs @@ -83,44 +83,44 @@ pub trait TimelineElementExt: 'static { //fn get_child_property_valist(&self, first_property_name: &str, var_args: /*Unknown conversion*//*Unimplemented*/Unsupported); #[doc(alias = "ges_timeline_element_get_duration")] - fn get_duration(&self) -> gst::ClockTime; + fn duration(&self) -> gst::ClockTime; #[doc(alias = "ges_timeline_element_get_inpoint")] - fn get_inpoint(&self) -> gst::ClockTime; + fn inpoint(&self) -> gst::ClockTime; #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[doc(alias = "ges_timeline_element_get_layer_priority")] - fn get_layer_priority(&self) -> u32; + fn layer_priority(&self) -> u32; #[doc(alias = "ges_timeline_element_get_max_duration")] - fn get_max_duration(&self) -> gst::ClockTime; + fn max_duration(&self) -> gst::ClockTime; #[doc(alias = "ges_timeline_element_get_name")] - fn get_name(&self) -> Option; + fn name(&self) -> Option; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[doc(alias = "ges_timeline_element_get_natural_framerate")] - fn get_natural_framerate(&self) -> Option<(i32, i32)>; + fn natural_framerate(&self) -> Option<(i32, i32)>; #[doc(alias = "ges_timeline_element_get_parent")] - fn get_parent(&self) -> Option; + fn parent(&self) -> Option; #[doc(alias = "ges_timeline_element_get_priority")] - fn get_priority(&self) -> u32; + fn priority(&self) -> u32; #[doc(alias = "ges_timeline_element_get_start")] - fn get_start(&self) -> gst::ClockTime; + fn start(&self) -> gst::ClockTime; #[doc(alias = "ges_timeline_element_get_timeline")] - fn get_timeline(&self) -> Option; + fn timeline(&self) -> Option; #[doc(alias = "ges_timeline_element_get_toplevel_parent")] - fn get_toplevel_parent(&self) -> Option; + fn toplevel_parent(&self) -> Option; #[doc(alias = "ges_timeline_element_get_track_types")] - fn get_track_types(&self) -> TrackType; + fn track_types(&self) -> TrackType; //#[doc(alias = "ges_timeline_element_list_children_properties")] //fn list_children_properties(&self) -> /*Ignored*/Vec; @@ -192,13 +192,17 @@ pub trait TimelineElementExt: 'static { #[doc(alias = "ges_timeline_element_trim")] fn trim(&self, start: gst::ClockTime) -> Result<(), glib::error::BoolError>; - fn get_property_in_point(&self) -> u64; + #[doc(alias = "get_property_in_point")] + fn in_point(&self) -> u64; - fn set_property_in_point(&self, in_point: u64); + #[doc(alias = "set_property_in_point")] + fn set_in_point(&self, in_point: u64); - fn get_property_serialize(&self) -> bool; + #[doc(alias = "get_property_serialize")] + fn is_serialize(&self) -> bool; - fn set_property_serialize(&self, serialize: bool); + #[doc(alias = "set_property_serialize")] + fn set_serialize(&self, serialize: bool); //#[cfg(any(feature = "v1_18", feature = "dox"))] //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] @@ -311,7 +315,7 @@ impl> TimelineElementExt for O { // unsafe { TODO: call ffi:ges_timeline_element_get_child_property_valist() } //} - fn get_duration(&self) -> gst::ClockTime { + fn duration(&self) -> gst::ClockTime { unsafe { from_glib(ffi::ges_timeline_element_get_duration( self.as_ref().to_glib_none().0, @@ -319,7 +323,7 @@ impl> TimelineElementExt for O { } } - fn get_inpoint(&self) -> gst::ClockTime { + fn inpoint(&self) -> gst::ClockTime { unsafe { from_glib(ffi::ges_timeline_element_get_inpoint( self.as_ref().to_glib_none().0, @@ -329,11 +333,11 @@ impl> TimelineElementExt for O { #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] - fn get_layer_priority(&self) -> u32 { + fn layer_priority(&self) -> u32 { unsafe { ffi::ges_timeline_element_get_layer_priority(self.as_ref().to_glib_none().0) } } - fn get_max_duration(&self) -> gst::ClockTime { + fn max_duration(&self) -> gst::ClockTime { unsafe { from_glib(ffi::ges_timeline_element_get_max_duration( self.as_ref().to_glib_none().0, @@ -341,7 +345,7 @@ impl> TimelineElementExt for O { } } - fn get_name(&self) -> Option { + fn name(&self) -> Option { unsafe { from_glib_full(ffi::ges_timeline_element_get_name( self.as_ref().to_glib_none().0, @@ -351,7 +355,7 @@ impl> TimelineElementExt for O { #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] - fn get_natural_framerate(&self) -> Option<(i32, i32)> { + fn natural_framerate(&self) -> Option<(i32, i32)> { unsafe { let mut framerate_n = mem::MaybeUninit::uninit(); let mut framerate_d = mem::MaybeUninit::uninit(); @@ -370,7 +374,7 @@ impl> TimelineElementExt for O { } } - fn get_parent(&self) -> Option { + fn parent(&self) -> Option { unsafe { from_glib_full(ffi::ges_timeline_element_get_parent( self.as_ref().to_glib_none().0, @@ -378,11 +382,11 @@ impl> TimelineElementExt for O { } } - fn get_priority(&self) -> u32 { + fn priority(&self) -> u32 { unsafe { ffi::ges_timeline_element_get_priority(self.as_ref().to_glib_none().0) } } - fn get_start(&self) -> gst::ClockTime { + fn start(&self) -> gst::ClockTime { unsafe { from_glib(ffi::ges_timeline_element_get_start( self.as_ref().to_glib_none().0, @@ -390,7 +394,7 @@ impl> TimelineElementExt for O { } } - fn get_timeline(&self) -> Option { + fn timeline(&self) -> Option { unsafe { from_glib_full(ffi::ges_timeline_element_get_timeline( self.as_ref().to_glib_none().0, @@ -398,7 +402,7 @@ impl> TimelineElementExt for O { } } - fn get_toplevel_parent(&self) -> Option { + fn toplevel_parent(&self) -> Option { unsafe { from_glib_full(ffi::ges_timeline_element_get_toplevel_parent( self.as_ref().to_glib_none().0, @@ -406,7 +410,7 @@ impl> TimelineElementExt for O { } } - fn get_track_types(&self) -> TrackType { + fn track_types(&self) -> TrackType { unsafe { from_glib(ffi::ges_timeline_element_get_track_types( self.as_ref().to_glib_none().0, @@ -590,7 +594,7 @@ impl> TimelineElementExt for O { } } - fn get_property_in_point(&self) -> u64 { + fn in_point(&self) -> u64 { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -605,7 +609,7 @@ impl> TimelineElementExt for O { } } - fn set_property_in_point(&self, in_point: u64) { + fn set_in_point(&self, in_point: u64) { unsafe { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, @@ -615,7 +619,7 @@ impl> TimelineElementExt for O { } } - fn get_property_serialize(&self) -> bool { + fn is_serialize(&self) -> bool { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -630,7 +634,7 @@ impl> TimelineElementExt for O { } } - fn set_property_serialize(&self, serialize: bool) { + fn set_serialize(&self, serialize: bool) { unsafe { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, diff --git a/gstreamer-editing-services/src/auto/track.rs b/gstreamer-editing-services/src/auto/track.rs index bb9a92664..0fa309486 100644 --- a/gstreamer-editing-services/src/auto/track.rs +++ b/gstreamer-editing-services/src/auto/track.rs @@ -49,21 +49,21 @@ pub trait GESTrackExt: 'static { fn commit(&self) -> bool; #[doc(alias = "ges_track_get_caps")] - fn get_caps(&self) -> Option; + fn caps(&self) -> Option; #[doc(alias = "ges_track_get_elements")] - fn get_elements(&self) -> Vec; + fn elements(&self) -> Vec; #[doc(alias = "ges_track_get_mixing")] - fn get_mixing(&self) -> bool; + fn is_mixing(&self) -> bool; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[doc(alias = "ges_track_get_restriction_caps")] - fn get_restriction_caps(&self) -> Option; + fn restriction_caps(&self) -> Option; #[doc(alias = "ges_track_get_timeline")] - fn get_timeline(&self) -> Option; + fn timeline(&self) -> Option; #[doc(alias = "ges_track_remove_element")] fn remove_element>( @@ -91,19 +91,23 @@ pub trait GESTrackExt: 'static { #[doc(alias = "ges_track_update_restriction_caps")] fn update_restriction_caps(&self, caps: &gst::Caps); - fn get_property_duration(&self) -> u64; + #[doc(alias = "get_property_duration")] + fn duration(&self) -> u64; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] - fn get_property_id(&self) -> Option; + #[doc(alias = "get_property_id")] + fn id(&self) -> Option; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] - fn set_property_id(&self, id: Option<&str>); + #[doc(alias = "set_property_id")] + fn set_id(&self, id: Option<&str>); fn get_property_restriction_caps(&self) -> Option; - fn get_property_track_type(&self) -> TrackType; + #[doc(alias = "get_property_track_type")] + fn track_type(&self) -> TrackType; fn connect_commited(&self, f: F) -> SignalHandlerId; @@ -166,11 +170,11 @@ impl> GESTrackExt for O { unsafe { from_glib(ffi::ges_track_commit(self.as_ref().to_glib_none().0)) } } - fn get_caps(&self) -> Option { + fn caps(&self) -> Option { unsafe { from_glib_none(ffi::ges_track_get_caps(self.as_ref().to_glib_none().0)) } } - fn get_elements(&self) -> Vec { + fn elements(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_full(ffi::ges_track_get_elements( self.as_ref().to_glib_none().0, @@ -178,13 +182,13 @@ impl> GESTrackExt for O { } } - fn get_mixing(&self) -> bool { + fn is_mixing(&self) -> bool { unsafe { from_glib(ffi::ges_track_get_mixing(self.as_ref().to_glib_none().0)) } } #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] - fn get_restriction_caps(&self) -> Option { + fn restriction_caps(&self) -> Option { unsafe { from_glib_full(ffi::ges_track_get_restriction_caps( self.as_ref().to_glib_none().0, @@ -192,7 +196,7 @@ impl> GESTrackExt for O { } } - fn get_timeline(&self) -> Option { + fn timeline(&self) -> Option { unsafe { from_glib_none(ffi::ges_track_get_timeline(self.as_ref().to_glib_none().0)) } } @@ -266,7 +270,7 @@ impl> GESTrackExt for O { } } - fn get_property_duration(&self) -> u64 { + fn duration(&self) -> u64 { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -283,7 +287,7 @@ impl> GESTrackExt for O { #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] - fn get_property_id(&self) -> Option { + fn id(&self) -> Option { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -297,7 +301,7 @@ impl> GESTrackExt for O { #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] - fn set_property_id(&self, id: Option<&str>) { + fn set_id(&self, id: Option<&str>) { unsafe { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, @@ -321,7 +325,7 @@ impl> GESTrackExt for O { } } - fn get_property_track_type(&self) -> TrackType { + fn track_type(&self) -> TrackType { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( diff --git a/gstreamer-editing-services/src/auto/track_element.rs b/gstreamer-editing-services/src/auto/track_element.rs index 4ac85b88e..1ae63d2bb 100644 --- a/gstreamer-editing-services/src/auto/track_element.rs +++ b/gstreamer-editing-services/src/auto/track_element.rs @@ -15,7 +15,6 @@ use glib::object::IsA; use glib::signal::connect_raw; use glib::signal::SignalHandlerId; use glib::translate::*; -use glib::StaticType; use std::boxed::Box as Box_; use std::mem::transmute; @@ -55,30 +54,30 @@ pub trait TrackElementExt: 'static { ) -> Result<(), glib::error::BoolError>; //#[doc(alias = "ges_track_element_get_all_control_bindings")] - //fn get_all_control_bindings(&self) -> /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 6, id: 83 }; + //fn all_control_bindings(&self) -> /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 6, id: 83 }; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[doc(alias = "ges_track_element_get_auto_clamp_control_sources")] - fn get_auto_clamp_control_sources(&self) -> bool; + fn is_auto_clamp_control_sources(&self) -> bool; //#[doc(alias = "ges_track_element_get_control_binding")] //fn get_control_binding(&self, property_name: &str) -> /*Ignored*/Option; #[doc(alias = "ges_track_element_get_element")] - fn get_element(&self) -> Option; + fn element(&self) -> Option; #[doc(alias = "ges_track_element_get_gnlobject")] - fn get_gnlobject(&self) -> Option; + fn gnlobject(&self) -> Option; #[doc(alias = "ges_track_element_get_nleobject")] - fn get_nleobject(&self) -> Option; + fn nleobject(&self) -> Option; #[doc(alias = "ges_track_element_get_track")] - fn get_track(&self) -> Option; + fn track(&self) -> Option; #[doc(alias = "ges_track_element_get_track_type")] - fn get_track_type(&self) -> TrackType; + fn track_type(&self) -> TrackType; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] @@ -118,12 +117,6 @@ pub trait TrackElementExt: 'static { #[doc(alias = "ges_track_element_set_track_type")] fn set_track_type(&self, type_: TrackType); - fn get_property_active(&self) -> bool; - - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] - fn get_property_has_internal_source(&self) -> bool; - //fn connect_control_binding_added(&self, f: F) -> SignalHandlerId; //fn connect_control_binding_removed(&self, f: F) -> SignalHandlerId; @@ -200,13 +193,13 @@ impl> TrackElementExt for O { } } - //fn get_all_control_bindings(&self) -> /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 6, id: 83 } { + //fn all_control_bindings(&self) -> /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 6, id: 83 } { // unsafe { TODO: call ffi:ges_track_element_get_all_control_bindings() } //} #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] - fn get_auto_clamp_control_sources(&self) -> bool { + fn is_auto_clamp_control_sources(&self) -> bool { unsafe { from_glib(ffi::ges_track_element_get_auto_clamp_control_sources( self.as_ref().to_glib_none().0, @@ -218,7 +211,7 @@ impl> TrackElementExt for O { // unsafe { TODO: call ffi:ges_track_element_get_control_binding() } //} - fn get_element(&self) -> Option { + fn element(&self) -> Option { unsafe { from_glib_none(ffi::ges_track_element_get_element( self.as_ref().to_glib_none().0, @@ -226,7 +219,7 @@ impl> TrackElementExt for O { } } - fn get_gnlobject(&self) -> Option { + fn gnlobject(&self) -> Option { unsafe { from_glib_none(ffi::ges_track_element_get_gnlobject( self.as_ref().to_glib_none().0, @@ -234,7 +227,7 @@ impl> TrackElementExt for O { } } - fn get_nleobject(&self) -> Option { + fn nleobject(&self) -> Option { unsafe { from_glib_none(ffi::ges_track_element_get_nleobject( self.as_ref().to_glib_none().0, @@ -242,7 +235,7 @@ impl> TrackElementExt for O { } } - fn get_track(&self) -> Option { + fn track(&self) -> Option { unsafe { from_glib_none(ffi::ges_track_element_get_track( self.as_ref().to_glib_none().0, @@ -250,7 +243,7 @@ impl> TrackElementExt for O { } } - fn get_track_type(&self) -> TrackType { + fn track_type(&self) -> TrackType { unsafe { from_glib(ffi::ges_track_element_get_track_type( self.as_ref().to_glib_none().0, @@ -343,38 +336,6 @@ impl> TrackElementExt for O { } } - fn get_property_active(&self) -> bool { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"active\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `active` getter") - .unwrap() - } - } - - #[cfg(any(feature = "v1_18", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] - fn get_property_has_internal_source(&self) -> bool { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"has-internal-source\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `has-internal-source` getter") - .unwrap() - } - } - //fn connect_control_binding_added(&self, f: F) -> SignalHandlerId { // Ignored control_binding: Gst.ControlBinding //} diff --git a/gstreamer-editing-services/src/auto/transition_clip.rs b/gstreamer-editing-services/src/auto/transition_clip.rs index 851eb5c00..dacb6c6fe 100644 --- a/gstreamer-editing-services/src/auto/transition_clip.rs +++ b/gstreamer-editing-services/src/auto/transition_clip.rs @@ -35,7 +35,7 @@ impl TransitionClip { } #[doc(alias = "ges_transition_clip_new_for_nick")] - pub fn new_for_nick(nick: &str) -> Option { + pub fn for_nick(nick: &str) -> Option { assert_initialized_main_thread!(); unsafe { from_glib_none(ffi::ges_transition_clip_new_for_nick(nick.to_glib_none().0)) } } @@ -44,15 +44,17 @@ impl TransitionClip { pub const NONE_TRANSITION_CLIP: Option<&TransitionClip> = None; pub trait TransitionClipExt: 'static { - fn get_property_vtype(&self) -> VideoStandardTransitionType; + #[doc(alias = "get_property_vtype")] + fn vtype(&self) -> VideoStandardTransitionType; - fn set_property_vtype(&self, vtype: VideoStandardTransitionType); + #[doc(alias = "set_property_vtype")] + fn set_vtype(&self, vtype: VideoStandardTransitionType); fn connect_property_vtype_notify(&self, f: F) -> SignalHandlerId; } impl> TransitionClipExt for O { - fn get_property_vtype(&self) -> VideoStandardTransitionType { + fn vtype(&self) -> VideoStandardTransitionType { unsafe { let mut value = glib::Value::from_type(::static_type()); @@ -68,7 +70,7 @@ impl> TransitionClipExt for O { } } - fn set_property_vtype(&self, vtype: VideoStandardTransitionType) { + fn set_vtype(&self, vtype: VideoStandardTransitionType) { unsafe { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, diff --git a/gstreamer-editing-services/src/auto/uri_clip.rs b/gstreamer-editing-services/src/auto/uri_clip.rs index 66d2aa64c..13afc5e83 100644 --- a/gstreamer-editing-services/src/auto/uri_clip.rs +++ b/gstreamer-editing-services/src/auto/uri_clip.rs @@ -12,7 +12,6 @@ use glib::object::IsA; use glib::signal::connect_raw; use glib::signal::SignalHandlerId; use glib::translate::*; -use glib::StaticType; use std::boxed::Box as Box_; use std::mem::transmute; @@ -39,7 +38,7 @@ pub const NONE_URI_CLIP: Option<&UriClip> = None; pub trait UriClipExt: 'static { #[doc(alias = "ges_uri_clip_get_uri")] - fn get_uri(&self) -> Option; + fn uri(&self) -> Option; #[doc(alias = "ges_uri_clip_is_image")] fn is_image(&self) -> bool; @@ -53,10 +52,6 @@ pub trait UriClipExt: 'static { #[doc(alias = "ges_uri_clip_set_mute")] fn set_mute(&self, mute: bool); - fn get_property_is_image(&self) -> bool; - - fn get_property_mute(&self) -> bool; - fn connect_property_is_image_notify(&self, f: F) -> SignalHandlerId; fn connect_property_mute_notify(&self, f: F) -> SignalHandlerId; @@ -68,7 +63,7 @@ pub trait UriClipExt: 'static { } impl> UriClipExt for O { - fn get_uri(&self) -> Option { + fn uri(&self) -> Option { unsafe { from_glib_none(ffi::ges_uri_clip_get_uri(self.as_ref().to_glib_none().0)) } } @@ -92,36 +87,6 @@ impl> UriClipExt for O { } } - fn get_property_is_image(&self) -> bool { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"is-image\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `is-image` getter") - .unwrap() - } - } - - fn get_property_mute(&self) -> bool { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"mute\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `mute` getter") - .unwrap() - } - } - fn connect_property_is_image_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_is_image_trampoline( this: *mut ffi::GESUriClip, diff --git a/gstreamer-editing-services/src/auto/uri_clip_asset.rs b/gstreamer-editing-services/src/auto/uri_clip_asset.rs index 71be5cadc..f11430702 100644 --- a/gstreamer-editing-services/src/auto/uri_clip_asset.rs +++ b/gstreamer-editing-services/src/auto/uri_clip_asset.rs @@ -57,29 +57,31 @@ pub const NONE_URI_CLIP_ASSET: Option<&UriClipAsset> = None; pub trait UriClipAssetExt: 'static { #[doc(alias = "ges_uri_clip_asset_get_duration")] - fn get_duration(&self) -> gst::ClockTime; + fn duration(&self) -> gst::ClockTime; #[doc(alias = "ges_uri_clip_asset_get_info")] - fn get_info(&self) -> Option; + fn info(&self) -> Option; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[doc(alias = "ges_uri_clip_asset_get_max_duration")] - fn get_max_duration(&self) -> gst::ClockTime; + fn max_duration(&self) -> gst::ClockTime; #[doc(alias = "ges_uri_clip_asset_get_stream_assets")] - fn get_stream_assets(&self) -> Vec; + fn stream_assets(&self) -> Vec; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[doc(alias = "ges_uri_clip_asset_is_image")] fn is_image(&self) -> bool; - fn set_property_duration(&self, duration: u64); + #[doc(alias = "set_property_duration")] + fn set_duration(&self, duration: u64); #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] - fn get_property_is_nested_timeline(&self) -> bool; + #[doc(alias = "get_property_is_nested_timeline")] + fn is_nested_timeline(&self) -> bool; fn connect_property_duration_notify(&self, f: F) -> SignalHandlerId; @@ -92,7 +94,7 @@ pub trait UriClipAssetExt: 'static { } impl> UriClipAssetExt for O { - fn get_duration(&self) -> gst::ClockTime { + fn duration(&self) -> gst::ClockTime { unsafe { from_glib(ffi::ges_uri_clip_asset_get_duration( self.as_ref().to_glib_none().0, @@ -100,7 +102,7 @@ impl> UriClipAssetExt for O { } } - fn get_info(&self) -> Option { + fn info(&self) -> Option { unsafe { from_glib_none(ffi::ges_uri_clip_asset_get_info(const_override( self.as_ref().to_glib_none().0, @@ -110,7 +112,7 @@ impl> UriClipAssetExt for O { #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] - fn get_max_duration(&self) -> gst::ClockTime { + fn max_duration(&self) -> gst::ClockTime { unsafe { from_glib(ffi::ges_uri_clip_asset_get_max_duration( self.as_ref().to_glib_none().0, @@ -118,7 +120,7 @@ impl> UriClipAssetExt for O { } } - fn get_stream_assets(&self) -> Vec { + fn stream_assets(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_none(ffi::ges_uri_clip_asset_get_stream_assets( self.as_ref().to_glib_none().0, @@ -136,7 +138,7 @@ impl> UriClipAssetExt for O { } } - fn set_property_duration(&self, duration: u64) { + fn set_duration(&self, duration: u64) { unsafe { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, @@ -148,7 +150,7 @@ impl> UriClipAssetExt for O { #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] - fn get_property_is_nested_timeline(&self) -> bool { + fn is_nested_timeline(&self) -> bool { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( diff --git a/gstreamer-editing-services/src/auto/uri_source_asset.rs b/gstreamer-editing-services/src/auto/uri_source_asset.rs index 11d1d5114..896dcd75b 100644 --- a/gstreamer-editing-services/src/auto/uri_source_asset.rs +++ b/gstreamer-editing-services/src/auto/uri_source_asset.rs @@ -20,13 +20,13 @@ pub const NONE_URI_SOURCE_ASSET: Option<&UriSourceAsset> = None; pub trait UriSourceAssetExt: 'static { #[doc(alias = "ges_uri_source_asset_get_filesource_asset")] - fn get_filesource_asset(&self) -> Option; + fn filesource_asset(&self) -> Option; #[doc(alias = "ges_uri_source_asset_get_stream_info")] - fn get_stream_info(&self) -> Option; + fn stream_info(&self) -> Option; #[doc(alias = "ges_uri_source_asset_get_stream_uri")] - fn get_stream_uri(&self) -> Option; + fn stream_uri(&self) -> Option; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] @@ -35,7 +35,7 @@ pub trait UriSourceAssetExt: 'static { } impl> UriSourceAssetExt for O { - fn get_filesource_asset(&self) -> Option { + fn filesource_asset(&self) -> Option { unsafe { from_glib_none(ffi::ges_uri_source_asset_get_filesource_asset( self.as_ref().to_glib_none().0, @@ -43,7 +43,7 @@ impl> UriSourceAssetExt for O { } } - fn get_stream_info(&self) -> Option { + fn stream_info(&self) -> Option { unsafe { from_glib_none(ffi::ges_uri_source_asset_get_stream_info( self.as_ref().to_glib_none().0, @@ -51,7 +51,7 @@ impl> UriSourceAssetExt for O { } } - fn get_stream_uri(&self) -> Option { + fn stream_uri(&self) -> Option { unsafe { from_glib_none(ffi::ges_uri_source_asset_get_stream_uri( self.as_ref().to_glib_none().0, diff --git a/gstreamer-editing-services/src/auto/versions.txt b/gstreamer-editing-services/src/auto/versions.txt index 2061f177b..3895717b6 100644 --- a/gstreamer-editing-services/src/auto/versions.txt +++ b/gstreamer-editing-services/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) diff --git a/gstreamer-editing-services/sys/build.rs b/gstreamer-editing-services/sys/build.rs index d68dd0cdc..961fb48a8 100644 --- a/gstreamer-editing-services/sys/build.rs +++ b/gstreamer-editing-services/sys/build.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-editing-services/sys/src/lib.rs b/gstreamer-editing-services/sys/src/lib.rs index 86b163351..3641051ea 100644 --- a/gstreamer-editing-services/sys/src/lib.rs +++ b/gstreamer-editing-services/sys/src/lib.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-editing-services/sys/tests/abi.rs b/gstreamer-editing-services/sys/tests/abi.rs index 0c274a95e..91e87f150 100644 --- a/gstreamer-editing-services/sys/tests/abi.rs +++ b/gstreamer-editing-services/sys/tests/abi.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-editing-services/sys/tests/constant.c b/gstreamer-editing-services/sys/tests/constant.c index 973c8e0b5..03489c4a1 100644 --- a/gstreamer-editing-services/sys/tests/constant.c +++ b/gstreamer-editing-services/sys/tests/constant.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-editing-services/sys/tests/layout.c b/gstreamer-editing-services/sys/tests/layout.c index d81d98b1e..14ed6c279 100644 --- a/gstreamer-editing-services/sys/tests/layout.c +++ b/gstreamer-editing-services/sys/tests/layout.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-gl/egl/src/auto/versions.txt b/gstreamer-gl/egl/src/auto/versions.txt index 2061f177b..3895717b6 100644 --- a/gstreamer-gl/egl/src/auto/versions.txt +++ b/gstreamer-gl/egl/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) diff --git a/gstreamer-gl/egl/sys/build.rs b/gstreamer-gl/egl/sys/build.rs index d68dd0cdc..961fb48a8 100644 --- a/gstreamer-gl/egl/sys/build.rs +++ b/gstreamer-gl/egl/sys/build.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-gl/egl/sys/src/lib.rs b/gstreamer-gl/egl/sys/src/lib.rs index 372bce177..ae8d2e46b 100644 --- a/gstreamer-gl/egl/sys/src/lib.rs +++ b/gstreamer-gl/egl/sys/src/lib.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-gl/egl/sys/tests/abi.rs b/gstreamer-gl/egl/sys/tests/abi.rs index c89316f57..51591ae3e 100644 --- a/gstreamer-gl/egl/sys/tests/abi.rs +++ b/gstreamer-gl/egl/sys/tests/abi.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-gl/egl/sys/tests/constant.c b/gstreamer-gl/egl/sys/tests/constant.c index 8e99fb5a8..691a277f4 100644 --- a/gstreamer-gl/egl/sys/tests/constant.c +++ b/gstreamer-gl/egl/sys/tests/constant.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-gl/egl/sys/tests/layout.c b/gstreamer-gl/egl/sys/tests/layout.c index 28ece7ad3..125d62dbc 100644 --- a/gstreamer-gl/egl/sys/tests/layout.c +++ b/gstreamer-gl/egl/sys/tests/layout.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-gl/src/auto/gl_base_filter.rs b/gstreamer-gl/src/auto/gl_base_filter.rs index 7b431764a..0fddb8ee0 100644 --- a/gstreamer-gl/src/auto/gl_base_filter.rs +++ b/gstreamer-gl/src/auto/gl_base_filter.rs @@ -33,9 +33,10 @@ pub trait GLBaseFilterExt: 'static { #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[doc(alias = "gst_gl_base_filter_get_gl_context")] - fn get_gl_context(&self) -> Option; + fn gl_context(&self) -> Option; - fn get_property_context(&self) -> Option; + #[doc(alias = "get_property_context")] + fn context(&self) -> Option; fn connect_property_context_notify( &self, @@ -54,7 +55,7 @@ impl> GLBaseFilterExt for O { #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] - fn get_gl_context(&self) -> Option { + fn gl_context(&self) -> Option { unsafe { from_glib_full(ffi::gst_gl_base_filter_get_gl_context( self.as_ref().to_glib_none().0, @@ -62,7 +63,7 @@ impl> GLBaseFilterExt for O { } } - fn get_property_context(&self) -> Option { + fn context(&self) -> Option { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( diff --git a/gstreamer-gl/src/auto/gl_context.rs b/gstreamer-gl/src/auto/gl_context.rs index fc7c3047c..240b488ca 100644 --- a/gstreamer-gl/src/auto/gl_context.rs +++ b/gstreamer-gl/src/auto/gl_context.rs @@ -90,22 +90,22 @@ pub trait GLContextExt: 'static { fn fill_info(&self) -> Result<(), glib::Error>; #[doc(alias = "gst_gl_context_get_display")] - fn get_display(&self) -> GLDisplay; + fn display(&self) -> GLDisplay; #[doc(alias = "gst_gl_context_get_gl_api")] - fn get_gl_api(&self) -> GLAPI; + fn gl_api(&self) -> GLAPI; #[doc(alias = "gst_gl_context_get_gl_platform")] - fn get_gl_platform(&self) -> GLPlatform; + fn gl_platform(&self) -> GLPlatform; #[doc(alias = "gst_gl_context_get_gl_platform_version")] - fn get_gl_platform_version(&self) -> (i32, i32); + fn gl_platform_version(&self) -> (i32, i32); #[doc(alias = "gst_gl_context_get_gl_version")] - fn get_gl_version(&self) -> (i32, i32); + fn gl_version(&self) -> (i32, i32); #[doc(alias = "gst_gl_context_get_window")] - fn get_window(&self) -> Option; + fn window(&self) -> Option; #[doc(alias = "gst_gl_context_is_shared")] fn is_shared(&self) -> bool; @@ -227,7 +227,7 @@ impl> GLContextExt for O { } } - fn get_display(&self) -> GLDisplay { + fn display(&self) -> GLDisplay { unsafe { from_glib_full(ffi::gst_gl_context_get_display( self.as_ref().to_glib_none().0, @@ -235,7 +235,7 @@ impl> GLContextExt for O { } } - fn get_gl_api(&self) -> GLAPI { + fn gl_api(&self) -> GLAPI { unsafe { from_glib(ffi::gst_gl_context_get_gl_api( self.as_ref().to_glib_none().0, @@ -243,7 +243,7 @@ impl> GLContextExt for O { } } - fn get_gl_platform(&self) -> GLPlatform { + fn gl_platform(&self) -> GLPlatform { unsafe { from_glib(ffi::gst_gl_context_get_gl_platform( self.as_ref().to_glib_none().0, @@ -251,7 +251,7 @@ impl> GLContextExt for O { } } - fn get_gl_platform_version(&self) -> (i32, i32) { + fn gl_platform_version(&self) -> (i32, i32) { unsafe { let mut major = mem::MaybeUninit::uninit(); let mut minor = mem::MaybeUninit::uninit(); @@ -266,7 +266,7 @@ impl> GLContextExt for O { } } - fn get_gl_version(&self) -> (i32, i32) { + fn gl_version(&self) -> (i32, i32) { unsafe { let mut maj = mem::MaybeUninit::uninit(); let mut min = mem::MaybeUninit::uninit(); @@ -281,7 +281,7 @@ impl> GLContextExt for O { } } - fn get_window(&self) -> Option { + fn window(&self) -> Option { unsafe { from_glib_full(ffi::gst_gl_context_get_window( self.as_ref().to_glib_none().0, diff --git a/gstreamer-gl/src/auto/gl_display.rs b/gstreamer-gl/src/auto/gl_display.rs index 366986250..6e5c8d822 100644 --- a/gstreamer-gl/src/auto/gl_display.rs +++ b/gstreamer-gl/src/auto/gl_display.rs @@ -60,13 +60,13 @@ pub trait GLDisplayExt: 'static { fn filter_gl_api(&self, gl_api: GLAPI); #[doc(alias = "gst_gl_display_get_gl_api")] - fn get_gl_api(&self) -> GLAPI; + fn gl_api(&self) -> GLAPI; #[doc(alias = "gst_gl_display_get_gl_api_unlocked")] - fn get_gl_api_unlocked(&self) -> GLAPI; + fn gl_api_unlocked(&self) -> GLAPI; #[doc(alias = "gst_gl_display_get_handle_type")] - fn get_handle_type(&self) -> GLDisplayType; + fn handle_type(&self) -> GLDisplayType; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] @@ -136,7 +136,7 @@ impl> GLDisplayExt for O { } } - fn get_gl_api(&self) -> GLAPI { + fn gl_api(&self) -> GLAPI { unsafe { from_glib(ffi::gst_gl_display_get_gl_api( self.as_ref().to_glib_none().0, @@ -144,7 +144,7 @@ impl> GLDisplayExt for O { } } - fn get_gl_api_unlocked(&self) -> GLAPI { + fn gl_api_unlocked(&self) -> GLAPI { unsafe { from_glib(ffi::gst_gl_display_get_gl_api_unlocked( self.as_ref().to_glib_none().0, @@ -152,7 +152,7 @@ impl> GLDisplayExt for O { } } - fn get_handle_type(&self) -> GLDisplayType { + fn handle_type(&self) -> GLDisplayType { unsafe { from_glib(ffi::gst_gl_display_get_handle_type( self.as_ref().to_glib_none().0, diff --git a/gstreamer-gl/src/auto/gl_framebuffer.rs b/gstreamer-gl/src/auto/gl_framebuffer.rs index 273e1d96d..928de900e 100644 --- a/gstreamer-gl/src/auto/gl_framebuffer.rs +++ b/gstreamer-gl/src/auto/gl_framebuffer.rs @@ -60,10 +60,10 @@ pub trait GLFramebufferExt: 'static { //fn draw_to_texture(&self, mem: /*Ignored*/&mut GLMemory, func: /*Unimplemented*/FnMut(/*Unimplemented*/Option) -> bool, user_data: /*Unimplemented*/Option) -> bool; #[doc(alias = "gst_gl_framebuffer_get_effective_dimensions")] - fn get_effective_dimensions(&self) -> (u32, u32); + fn effective_dimensions(&self) -> (u32, u32); #[doc(alias = "gst_gl_framebuffer_get_id")] - fn get_id(&self) -> u32; + fn id(&self) -> u32; } impl> GLFramebufferExt for O { @@ -81,7 +81,7 @@ impl> GLFramebufferExt for O { // unsafe { TODO: call ffi:gst_gl_framebuffer_draw_to_texture() } //} - fn get_effective_dimensions(&self) -> (u32, u32) { + fn effective_dimensions(&self) -> (u32, u32) { unsafe { let mut width = mem::MaybeUninit::uninit(); let mut height = mem::MaybeUninit::uninit(); @@ -96,7 +96,7 @@ impl> GLFramebufferExt for O { } } - fn get_id(&self) -> u32 { + fn id(&self) -> u32 { unsafe { ffi::gst_gl_framebuffer_get_id(self.as_ref().to_glib_none().0) } } } diff --git a/gstreamer-gl/src/auto/gl_overlay_compositor.rs b/gstreamer-gl/src/auto/gl_overlay_compositor.rs index 5f181e46f..d0e9bb844 100644 --- a/gstreamer-gl/src/auto/gl_overlay_compositor.rs +++ b/gstreamer-gl/src/auto/gl_overlay_compositor.rs @@ -60,7 +60,8 @@ impl GLOverlayCompositor { #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] - pub fn get_property_yinvert(&self) -> bool { + #[doc(alias = "get_property_yinvert")] + pub fn is_yinvert(&self) -> bool { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -77,7 +78,8 @@ impl GLOverlayCompositor { #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] - pub fn set_property_yinvert(&self, yinvert: bool) { + #[doc(alias = "set_property_yinvert")] + pub fn set_yinvert(&self, yinvert: bool) { unsafe { glib::gobject_ffi::g_object_set_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, diff --git a/gstreamer-gl/src/auto/gl_shader.rs b/gstreamer-gl/src/auto/gl_shader.rs index 00f408a59..0540c7b31 100644 --- a/gstreamer-gl/src/auto/gl_shader.rs +++ b/gstreamer-gl/src/auto/gl_shader.rs @@ -16,7 +16,6 @@ use glib::object::ObjectType as ObjectType_; use glib::signal::connect_raw; use glib::signal::SignalHandlerId; use glib::translate::*; -use glib::StaticType; use std::boxed::Box as Box_; use std::mem::transmute; use std::ptr; @@ -141,7 +140,7 @@ impl GLShader { } #[doc(alias = "gst_gl_shader_get_program_handle")] - pub fn get_program_handle(&self) -> i32 { + pub fn program_handle(&self) -> i32 { unsafe { ffi::gst_gl_shader_get_program_handle(self.to_glib_none().0) } } @@ -370,21 +369,6 @@ impl GLShader { } } - pub fn get_property_linked(&self) -> bool { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"linked\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `linked` getter") - .unwrap() - } - } - #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[doc(alias = "gst_gl_shader_string_fragment_external_oes_get_default")] diff --git a/gstreamer-gl/src/auto/gl_upload.rs b/gstreamer-gl/src/auto/gl_upload.rs index c64a77a93..7be806f6a 100644 --- a/gstreamer-gl/src/auto/gl_upload.rs +++ b/gstreamer-gl/src/auto/gl_upload.rs @@ -24,7 +24,7 @@ impl GLUpload { } #[doc(alias = "gst_gl_upload_get_caps")] - pub fn get_caps(&self) -> (gst::Caps, gst::Caps) { + pub fn caps(&self) -> (gst::Caps, gst::Caps) { unsafe { let mut in_caps = ptr::null_mut(); let mut out_caps = ptr::null_mut(); diff --git a/gstreamer-gl/src/auto/gl_view_convert.rs b/gstreamer-gl/src/auto/gl_view_convert.rs index f328e5b2b..fd17b79d4 100644 --- a/gstreamer-gl/src/auto/gl_view_convert.rs +++ b/gstreamer-gl/src/auto/gl_view_convert.rs @@ -91,7 +91,8 @@ impl GLViewConvert { } } - pub fn get_property_downmix_mode(&self) -> GLStereoDownmix { + #[doc(alias = "get_property_downmix_mode")] + pub fn downmix_mode(&self) -> GLStereoDownmix { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -106,7 +107,8 @@ impl GLViewConvert { } } - pub fn set_property_downmix_mode(&self, downmix_mode: GLStereoDownmix) { + #[doc(alias = "set_property_downmix_mode")] + pub fn set_downmix_mode(&self, downmix_mode: GLStereoDownmix) { unsafe { glib::gobject_ffi::g_object_set_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, @@ -116,7 +118,8 @@ impl GLViewConvert { } } - pub fn get_property_input_flags_override(&self) -> gst_video::VideoMultiviewFlags { + #[doc(alias = "get_property_input_flags_override")] + pub fn input_flags_override(&self) -> gst_video::VideoMultiviewFlags { unsafe { let mut value = glib::Value::from_type( ::static_type(), @@ -133,10 +136,8 @@ impl GLViewConvert { } } - pub fn set_property_input_flags_override( - &self, - input_flags_override: gst_video::VideoMultiviewFlags, - ) { + #[doc(alias = "set_property_input_flags_override")] + pub fn set_input_flags_override(&self, input_flags_override: gst_video::VideoMultiviewFlags) { unsafe { glib::gobject_ffi::g_object_set_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, @@ -146,7 +147,8 @@ impl GLViewConvert { } } - pub fn get_property_input_mode_override(&self) -> gst_video::VideoMultiviewMode { + #[doc(alias = "get_property_input_mode_override")] + pub fn input_mode_override(&self) -> gst_video::VideoMultiviewMode { unsafe { let mut value = glib::Value::from_type( ::static_type(), @@ -163,10 +165,8 @@ impl GLViewConvert { } } - pub fn set_property_input_mode_override( - &self, - input_mode_override: gst_video::VideoMultiviewMode, - ) { + #[doc(alias = "set_property_input_mode_override")] + pub fn set_input_mode_override(&self, input_mode_override: gst_video::VideoMultiviewMode) { unsafe { glib::gobject_ffi::g_object_set_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, @@ -176,7 +176,8 @@ impl GLViewConvert { } } - pub fn get_property_output_flags_override(&self) -> gst_video::VideoMultiviewFlags { + #[doc(alias = "get_property_output_flags_override")] + pub fn output_flags_override(&self) -> gst_video::VideoMultiviewFlags { unsafe { let mut value = glib::Value::from_type( ::static_type(), @@ -193,10 +194,8 @@ impl GLViewConvert { } } - pub fn set_property_output_flags_override( - &self, - output_flags_override: gst_video::VideoMultiviewFlags, - ) { + #[doc(alias = "set_property_output_flags_override")] + pub fn set_output_flags_override(&self, output_flags_override: gst_video::VideoMultiviewFlags) { unsafe { glib::gobject_ffi::g_object_set_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, @@ -206,7 +205,8 @@ impl GLViewConvert { } } - pub fn get_property_output_mode_override(&self) -> gst_video::VideoMultiviewMode { + #[doc(alias = "get_property_output_mode_override")] + pub fn output_mode_override(&self) -> gst_video::VideoMultiviewMode { unsafe { let mut value = glib::Value::from_type( ::static_type(), @@ -223,10 +223,8 @@ impl GLViewConvert { } } - pub fn set_property_output_mode_override( - &self, - output_mode_override: gst_video::VideoMultiviewMode, - ) { + #[doc(alias = "set_property_output_mode_override")] + pub fn set_output_mode_override(&self, output_mode_override: gst_video::VideoMultiviewMode) { unsafe { glib::gobject_ffi::g_object_set_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, diff --git a/gstreamer-gl/src/auto/gl_window.rs b/gstreamer-gl/src/auto/gl_window.rs index 207791576..9749da6e9 100644 --- a/gstreamer-gl/src/auto/gl_window.rs +++ b/gstreamer-gl/src/auto/gl_window.rs @@ -45,10 +45,10 @@ pub trait GLWindowExt: 'static { fn draw(&self); #[doc(alias = "gst_gl_window_get_context")] - fn get_context(&self) -> Option; + fn context(&self) -> Option; #[doc(alias = "gst_gl_window_get_surface_dimensions")] - fn get_surface_dimensions(&self) -> (u32, u32); + fn surface_dimensions(&self) -> (u32, u32); #[doc(alias = "gst_gl_window_handle_events")] fn handle_events(&self, handle_events: bool); @@ -131,7 +131,7 @@ impl> GLWindowExt for O { } } - fn get_context(&self) -> Option { + fn context(&self) -> Option { unsafe { from_glib_full(ffi::gst_gl_window_get_context( self.as_ref().to_glib_none().0, @@ -139,7 +139,7 @@ impl> GLWindowExt for O { } } - fn get_surface_dimensions(&self) -> (u32, u32) { + fn surface_dimensions(&self) -> (u32, u32) { unsafe { let mut width = mem::MaybeUninit::uninit(); let mut height = mem::MaybeUninit::uninit(); diff --git a/gstreamer-gl/src/auto/glsl_stage.rs b/gstreamer-gl/src/auto/glsl_stage.rs index a9506d85c..b19ee14f7 100644 --- a/gstreamer-gl/src/auto/glsl_stage.rs +++ b/gstreamer-gl/src/auto/glsl_stage.rs @@ -106,22 +106,22 @@ impl GLSLStage { } #[doc(alias = "gst_glsl_stage_get_handle")] - pub fn get_handle(&self) -> u32 { + pub fn handle(&self) -> u32 { unsafe { ffi::gst_glsl_stage_get_handle(self.to_glib_none().0) } } #[doc(alias = "gst_glsl_stage_get_profile")] - pub fn get_profile(&self) -> GLSLProfile { + pub fn profile(&self) -> GLSLProfile { unsafe { from_glib(ffi::gst_glsl_stage_get_profile(self.to_glib_none().0)) } } #[doc(alias = "gst_glsl_stage_get_shader_type")] - pub fn get_shader_type(&self) -> u32 { + pub fn shader_type(&self) -> u32 { unsafe { ffi::gst_glsl_stage_get_shader_type(self.to_glib_none().0) } } #[doc(alias = "gst_glsl_stage_get_version")] - pub fn get_version(&self) -> GLSLVersion { + pub fn version(&self) -> GLSLVersion { unsafe { from_glib(ffi::gst_glsl_stage_get_version(self.to_glib_none().0)) } } diff --git a/gstreamer-gl/src/auto/versions.txt b/gstreamer-gl/src/auto/versions.txt index 2061f177b..3895717b6 100644 --- a/gstreamer-gl/src/auto/versions.txt +++ b/gstreamer-gl/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) diff --git a/gstreamer-gl/sys/build.rs b/gstreamer-gl/sys/build.rs index d68dd0cdc..961fb48a8 100644 --- a/gstreamer-gl/sys/build.rs +++ b/gstreamer-gl/sys/build.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-gl/sys/src/lib.rs b/gstreamer-gl/sys/src/lib.rs index 392cb203e..a646fa8df 100644 --- a/gstreamer-gl/sys/src/lib.rs +++ b/gstreamer-gl/sys/src/lib.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-gl/sys/tests/abi.rs b/gstreamer-gl/sys/tests/abi.rs index f89759fcc..4a3ba8377 100644 --- a/gstreamer-gl/sys/tests/abi.rs +++ b/gstreamer-gl/sys/tests/abi.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-gl/sys/tests/constant.c b/gstreamer-gl/sys/tests/constant.c index 2d8814f5f..89508fc7f 100644 --- a/gstreamer-gl/sys/tests/constant.c +++ b/gstreamer-gl/sys/tests/constant.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-gl/sys/tests/layout.c b/gstreamer-gl/sys/tests/layout.c index 268499da7..e551ced78 100644 --- a/gstreamer-gl/sys/tests/layout.c +++ b/gstreamer-gl/sys/tests/layout.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-gl/wayland/src/auto/versions.txt b/gstreamer-gl/wayland/src/auto/versions.txt index 2061f177b..3895717b6 100644 --- a/gstreamer-gl/wayland/src/auto/versions.txt +++ b/gstreamer-gl/wayland/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) diff --git a/gstreamer-gl/wayland/sys/build.rs b/gstreamer-gl/wayland/sys/build.rs index d68dd0cdc..961fb48a8 100644 --- a/gstreamer-gl/wayland/sys/build.rs +++ b/gstreamer-gl/wayland/sys/build.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-gl/wayland/sys/src/lib.rs b/gstreamer-gl/wayland/sys/src/lib.rs index fbbd96990..7cc41e117 100644 --- a/gstreamer-gl/wayland/sys/src/lib.rs +++ b/gstreamer-gl/wayland/sys/src/lib.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-gl/wayland/sys/tests/abi.rs b/gstreamer-gl/wayland/sys/tests/abi.rs index ea8244baf..366270424 100644 --- a/gstreamer-gl/wayland/sys/tests/abi.rs +++ b/gstreamer-gl/wayland/sys/tests/abi.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-gl/wayland/sys/tests/constant.c b/gstreamer-gl/wayland/sys/tests/constant.c index 14a085011..4c2dcbe17 100644 --- a/gstreamer-gl/wayland/sys/tests/constant.c +++ b/gstreamer-gl/wayland/sys/tests/constant.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-gl/wayland/sys/tests/layout.c b/gstreamer-gl/wayland/sys/tests/layout.c index 00ee5a9cd..45b2debb5 100644 --- a/gstreamer-gl/wayland/sys/tests/layout.c +++ b/gstreamer-gl/wayland/sys/tests/layout.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-gl/x11/src/auto/versions.txt b/gstreamer-gl/x11/src/auto/versions.txt index 2061f177b..3895717b6 100644 --- a/gstreamer-gl/x11/src/auto/versions.txt +++ b/gstreamer-gl/x11/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) diff --git a/gstreamer-gl/x11/sys/build.rs b/gstreamer-gl/x11/sys/build.rs index d68dd0cdc..961fb48a8 100644 --- a/gstreamer-gl/x11/sys/build.rs +++ b/gstreamer-gl/x11/sys/build.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-gl/x11/sys/src/lib.rs b/gstreamer-gl/x11/sys/src/lib.rs index c5ad1798d..3a2eee460 100644 --- a/gstreamer-gl/x11/sys/src/lib.rs +++ b/gstreamer-gl/x11/sys/src/lib.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-gl/x11/sys/tests/abi.rs b/gstreamer-gl/x11/sys/tests/abi.rs index 2f4dfea58..9e7057263 100644 --- a/gstreamer-gl/x11/sys/tests/abi.rs +++ b/gstreamer-gl/x11/sys/tests/abi.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-gl/x11/sys/tests/constant.c b/gstreamer-gl/x11/sys/tests/constant.c index 14a085011..4c2dcbe17 100644 --- a/gstreamer-gl/x11/sys/tests/constant.c +++ b/gstreamer-gl/x11/sys/tests/constant.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-gl/x11/sys/tests/layout.c b/gstreamer-gl/x11/sys/tests/layout.c index 48de9b626..81264b42d 100644 --- a/gstreamer-gl/x11/sys/tests/layout.c +++ b/gstreamer-gl/x11/sys/tests/layout.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-mpegts/sys/build.rs b/gstreamer-mpegts/sys/build.rs index d68dd0cdc..961fb48a8 100644 --- a/gstreamer-mpegts/sys/build.rs +++ b/gstreamer-mpegts/sys/build.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-mpegts/sys/src/lib.rs b/gstreamer-mpegts/sys/src/lib.rs index 1da0c5742..955b26e69 100644 --- a/gstreamer-mpegts/sys/src/lib.rs +++ b/gstreamer-mpegts/sys/src/lib.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-mpegts/sys/tests/abi.rs b/gstreamer-mpegts/sys/tests/abi.rs index 3d1afa776..8b542561d 100644 --- a/gstreamer-mpegts/sys/tests/abi.rs +++ b/gstreamer-mpegts/sys/tests/abi.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-mpegts/sys/tests/constant.c b/gstreamer-mpegts/sys/tests/constant.c index 0673bd1be..801c3ca5c 100644 --- a/gstreamer-mpegts/sys/tests/constant.c +++ b/gstreamer-mpegts/sys/tests/constant.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-mpegts/sys/tests/layout.c b/gstreamer-mpegts/sys/tests/layout.c index 22121bb12..18556ee5b 100644 --- a/gstreamer-mpegts/sys/tests/layout.c +++ b/gstreamer-mpegts/sys/tests/layout.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-net/src/auto/net_client_clock.rs b/gstreamer-net/src/auto/net_client_clock.rs index 2f1fa87b2..651585009 100644 --- a/gstreamer-net/src/auto/net_client_clock.rs +++ b/gstreamer-net/src/auto/net_client_clock.rs @@ -21,7 +21,8 @@ glib::wrapper! { } impl NetClientClock { - pub fn get_property_address(&self) -> Option { + #[doc(alias = "get_property_address")] + pub fn address(&self) -> Option { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -35,7 +36,8 @@ impl NetClientClock { } } - pub fn set_property_address(&self, address: Option<&str>) { + #[doc(alias = "set_property_address")] + pub fn set_address(&self, address: Option<&str>) { unsafe { glib::gobject_ffi::g_object_set_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, @@ -45,7 +47,8 @@ impl NetClientClock { } } - pub fn get_property_base_time(&self) -> u64 { + #[doc(alias = "get_property_base_time")] + pub fn base_time(&self) -> u64 { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -60,7 +63,8 @@ impl NetClientClock { } } - pub fn get_property_bus(&self) -> Option { + #[doc(alias = "get_property_bus")] + pub fn bus(&self) -> Option { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -72,7 +76,8 @@ impl NetClientClock { } } - pub fn set_property_bus>(&self, bus: Option<&P>) { + #[doc(alias = "set_property_bus")] + pub fn set_bus>(&self, bus: Option<&P>) { unsafe { glib::gobject_ffi::g_object_set_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, @@ -82,7 +87,8 @@ impl NetClientClock { } } - pub fn get_property_internal_clock(&self) -> Option { + #[doc(alias = "get_property_internal_clock")] + pub fn internal_clock(&self) -> Option { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -96,7 +102,8 @@ impl NetClientClock { } } - pub fn get_property_minimum_update_interval(&self) -> u64 { + #[doc(alias = "get_property_minimum_update_interval")] + pub fn minimum_update_interval(&self) -> u64 { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -111,7 +118,8 @@ impl NetClientClock { } } - pub fn set_property_minimum_update_interval(&self, minimum_update_interval: u64) { + #[doc(alias = "set_property_minimum_update_interval")] + pub fn set_minimum_update_interval(&self, minimum_update_interval: u64) { unsafe { glib::gobject_ffi::g_object_set_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, @@ -121,7 +129,8 @@ impl NetClientClock { } } - pub fn get_property_port(&self) -> i32 { + #[doc(alias = "get_property_port")] + pub fn port(&self) -> i32 { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -136,7 +145,8 @@ impl NetClientClock { } } - pub fn set_property_port(&self, port: i32) { + #[doc(alias = "set_property_port")] + pub fn set_port(&self, port: i32) { unsafe { glib::gobject_ffi::g_object_set_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, @@ -146,7 +156,8 @@ impl NetClientClock { } } - pub fn get_property_qos_dscp(&self) -> i32 { + #[doc(alias = "get_property_qos_dscp")] + pub fn qos_dscp(&self) -> i32 { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -161,7 +172,8 @@ impl NetClientClock { } } - pub fn set_property_qos_dscp(&self, qos_dscp: i32) { + #[doc(alias = "set_property_qos_dscp")] + pub fn set_qos_dscp(&self, qos_dscp: i32) { unsafe { glib::gobject_ffi::g_object_set_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, @@ -171,7 +183,8 @@ impl NetClientClock { } } - pub fn get_property_round_trip_limit(&self) -> u64 { + #[doc(alias = "get_property_round_trip_limit")] + pub fn round_trip_limit(&self) -> u64 { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -186,7 +199,8 @@ impl NetClientClock { } } - pub fn set_property_round_trip_limit(&self, round_trip_limit: u64) { + #[doc(alias = "set_property_round_trip_limit")] + pub fn set_round_trip_limit(&self, round_trip_limit: u64) { unsafe { glib::gobject_ffi::g_object_set_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, diff --git a/gstreamer-net/src/auto/net_time_provider.rs b/gstreamer-net/src/auto/net_time_provider.rs index 368bc87da..1b4e35e4b 100644 --- a/gstreamer-net/src/auto/net_time_provider.rs +++ b/gstreamer-net/src/auto/net_time_provider.rs @@ -20,7 +20,8 @@ glib::wrapper! { } impl NetTimeProvider { - pub fn get_property_active(&self) -> bool { + #[doc(alias = "get_property_active")] + pub fn is_active(&self) -> bool { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -35,7 +36,8 @@ impl NetTimeProvider { } } - pub fn set_property_active(&self, active: bool) { + #[doc(alias = "set_property_active")] + pub fn set_active(&self, active: bool) { unsafe { glib::gobject_ffi::g_object_set_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, @@ -45,7 +47,8 @@ impl NetTimeProvider { } } - pub fn get_property_address(&self) -> Option { + #[doc(alias = "get_property_address")] + pub fn address(&self) -> Option { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -59,7 +62,8 @@ impl NetTimeProvider { } } - pub fn get_property_clock(&self) -> Option { + #[doc(alias = "get_property_clock")] + pub fn clock(&self) -> Option { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -73,7 +77,8 @@ impl NetTimeProvider { } } - pub fn get_property_port(&self) -> i32 { + #[doc(alias = "get_property_port")] + pub fn port(&self) -> i32 { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -88,7 +93,8 @@ impl NetTimeProvider { } } - pub fn get_property_qos_dscp(&self) -> i32 { + #[doc(alias = "get_property_qos_dscp")] + pub fn qos_dscp(&self) -> i32 { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -103,7 +109,8 @@ impl NetTimeProvider { } } - pub fn set_property_qos_dscp(&self, qos_dscp: i32) { + #[doc(alias = "set_property_qos_dscp")] + pub fn set_qos_dscp(&self, qos_dscp: i32) { unsafe { glib::gobject_ffi::g_object_set_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, diff --git a/gstreamer-net/src/auto/ptp_clock.rs b/gstreamer-net/src/auto/ptp_clock.rs index bea61e8ee..c9f5e8e8b 100644 --- a/gstreamer-net/src/auto/ptp_clock.rs +++ b/gstreamer-net/src/auto/ptp_clock.rs @@ -20,7 +20,8 @@ glib::wrapper! { } impl PtpClock { - pub fn get_property_domain(&self) -> u32 { + #[doc(alias = "get_property_domain")] + pub fn domain(&self) -> u32 { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -35,7 +36,8 @@ impl PtpClock { } } - pub fn get_property_grandmaster_clock_id(&self) -> u64 { + #[doc(alias = "get_property_grandmaster_clock_id")] + pub fn grandmaster_clock_id(&self) -> u64 { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -50,7 +52,8 @@ impl PtpClock { } } - pub fn get_property_internal_clock(&self) -> Option { + #[doc(alias = "get_property_internal_clock")] + pub fn internal_clock(&self) -> Option { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -64,7 +67,8 @@ impl PtpClock { } } - pub fn get_property_master_clock_id(&self) -> u64 { + #[doc(alias = "get_property_master_clock_id")] + pub fn master_clock_id(&self) -> u64 { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( diff --git a/gstreamer-net/src/auto/versions.txt b/gstreamer-net/src/auto/versions.txt index 2061f177b..3895717b6 100644 --- a/gstreamer-net/src/auto/versions.txt +++ b/gstreamer-net/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) diff --git a/gstreamer-net/sys/build.rs b/gstreamer-net/sys/build.rs index d68dd0cdc..961fb48a8 100644 --- a/gstreamer-net/sys/build.rs +++ b/gstreamer-net/sys/build.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-net/sys/src/lib.rs b/gstreamer-net/sys/src/lib.rs index a756874bf..ed46746f6 100644 --- a/gstreamer-net/sys/src/lib.rs +++ b/gstreamer-net/sys/src/lib.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-net/sys/tests/abi.rs b/gstreamer-net/sys/tests/abi.rs index a53e37659..fb5640f6a 100644 --- a/gstreamer-net/sys/tests/abi.rs +++ b/gstreamer-net/sys/tests/abi.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-net/sys/tests/constant.c b/gstreamer-net/sys/tests/constant.c index af3f6b74b..c0733a12b 100644 --- a/gstreamer-net/sys/tests/constant.c +++ b/gstreamer-net/sys/tests/constant.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-net/sys/tests/layout.c b/gstreamer-net/sys/tests/layout.c index 8c2a19b64..8391eec35 100644 --- a/gstreamer-net/sys/tests/layout.c +++ b/gstreamer-net/sys/tests/layout.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-pbutils/src/auto/discoverer.rs b/gstreamer-pbutils/src/auto/discoverer.rs index 853488c03..bdd59242d 100644 --- a/gstreamer-pbutils/src/auto/discoverer.rs +++ b/gstreamer-pbutils/src/auto/discoverer.rs @@ -81,7 +81,8 @@ impl Discoverer { #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] - pub fn get_property_use_cache(&self) -> bool { + #[doc(alias = "get_property_use_cache")] + pub fn uses_cache(&self) -> bool { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -98,7 +99,8 @@ impl Discoverer { #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] - pub fn set_property_use_cache(&self, use_cache: bool) { + #[doc(alias = "set_property_use_cache")] + pub fn set_use_cache(&self, use_cache: bool) { unsafe { glib::gobject_ffi::g_object_set_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, diff --git a/gstreamer-pbutils/src/auto/discoverer_audio_info.rs b/gstreamer-pbutils/src/auto/discoverer_audio_info.rs index 3e287e518..d4de139b9 100644 --- a/gstreamer-pbutils/src/auto/discoverer_audio_info.rs +++ b/gstreamer-pbutils/src/auto/discoverer_audio_info.rs @@ -16,29 +16,29 @@ glib::wrapper! { impl DiscovererAudioInfo { #[doc(alias = "gst_discoverer_audio_info_get_bitrate")] - pub fn get_bitrate(&self) -> u32 { + pub fn bitrate(&self) -> u32 { unsafe { ffi::gst_discoverer_audio_info_get_bitrate(self.to_glib_none().0) } } #[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[doc(alias = "gst_discoverer_audio_info_get_channel_mask")] - pub fn get_channel_mask(&self) -> u64 { + pub fn channel_mask(&self) -> u64 { unsafe { ffi::gst_discoverer_audio_info_get_channel_mask(self.to_glib_none().0) } } #[doc(alias = "gst_discoverer_audio_info_get_channels")] - pub fn get_channels(&self) -> u32 { + pub fn channels(&self) -> u32 { unsafe { ffi::gst_discoverer_audio_info_get_channels(self.to_glib_none().0) } } #[doc(alias = "gst_discoverer_audio_info_get_depth")] - pub fn get_depth(&self) -> u32 { + pub fn depth(&self) -> u32 { unsafe { ffi::gst_discoverer_audio_info_get_depth(self.to_glib_none().0) } } #[doc(alias = "gst_discoverer_audio_info_get_language")] - pub fn get_language(&self) -> Option { + pub fn language(&self) -> Option { unsafe { from_glib_none(ffi::gst_discoverer_audio_info_get_language( self.to_glib_none().0, @@ -47,12 +47,12 @@ impl DiscovererAudioInfo { } #[doc(alias = "gst_discoverer_audio_info_get_max_bitrate")] - pub fn get_max_bitrate(&self) -> u32 { + pub fn max_bitrate(&self) -> u32 { unsafe { ffi::gst_discoverer_audio_info_get_max_bitrate(self.to_glib_none().0) } } #[doc(alias = "gst_discoverer_audio_info_get_sample_rate")] - pub fn get_sample_rate(&self) -> u32 { + pub fn sample_rate(&self) -> u32 { unsafe { ffi::gst_discoverer_audio_info_get_sample_rate(self.to_glib_none().0) } } } diff --git a/gstreamer-pbutils/src/auto/discoverer_container_info.rs b/gstreamer-pbutils/src/auto/discoverer_container_info.rs index fd68ea595..dd92028cf 100644 --- a/gstreamer-pbutils/src/auto/discoverer_container_info.rs +++ b/gstreamer-pbutils/src/auto/discoverer_container_info.rs @@ -16,7 +16,7 @@ glib::wrapper! { impl DiscovererContainerInfo { #[doc(alias = "gst_discoverer_container_info_get_streams")] - pub fn get_streams(&self) -> Vec { + pub fn streams(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_full(ffi::gst_discoverer_container_info_get_streams( self.to_glib_none().0, diff --git a/gstreamer-pbutils/src/auto/discoverer_info.rs b/gstreamer-pbutils/src/auto/discoverer_info.rs index 6da91711e..9d58b367f 100644 --- a/gstreamer-pbutils/src/auto/discoverer_info.rs +++ b/gstreamer-pbutils/src/auto/discoverer_info.rs @@ -23,7 +23,7 @@ impl DiscovererInfo { } #[doc(alias = "gst_discoverer_info_get_audio_streams")] - pub fn get_audio_streams(&self) -> Vec { + pub fn audio_streams(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_full(ffi::gst_discoverer_info_get_audio_streams( self.to_glib_none().0, @@ -32,7 +32,7 @@ impl DiscovererInfo { } #[doc(alias = "gst_discoverer_info_get_container_streams")] - pub fn get_container_streams(&self) -> Vec { + pub fn container_streams(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_full(ffi::gst_discoverer_info_get_container_streams( self.to_glib_none().0, @@ -41,24 +41,24 @@ impl DiscovererInfo { } #[doc(alias = "gst_discoverer_info_get_duration")] - pub fn get_duration(&self) -> gst::ClockTime { + pub fn duration(&self) -> gst::ClockTime { unsafe { from_glib(ffi::gst_discoverer_info_get_duration(self.to_glib_none().0)) } } #[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[doc(alias = "gst_discoverer_info_get_live")] - pub fn get_live(&self) -> bool { + pub fn is_live(&self) -> bool { unsafe { from_glib(ffi::gst_discoverer_info_get_live(self.to_glib_none().0)) } } #[doc(alias = "gst_discoverer_info_get_misc")] - pub fn get_misc(&self) -> Option { + pub fn misc(&self) -> Option { unsafe { from_glib_none(ffi::gst_discoverer_info_get_misc(self.to_glib_none().0)) } } #[doc(alias = "gst_discoverer_info_get_missing_elements_installer_details")] - pub fn get_missing_elements_installer_details(&self) -> Vec { + pub fn missing_elements_installer_details(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_none( ffi::gst_discoverer_info_get_missing_elements_installer_details( @@ -69,17 +69,17 @@ impl DiscovererInfo { } #[doc(alias = "gst_discoverer_info_get_result")] - pub fn get_result(&self) -> DiscovererResult { + pub fn result(&self) -> DiscovererResult { unsafe { from_glib(ffi::gst_discoverer_info_get_result(self.to_glib_none().0)) } } #[doc(alias = "gst_discoverer_info_get_seekable")] - pub fn get_seekable(&self) -> bool { + pub fn is_seekable(&self) -> bool { unsafe { from_glib(ffi::gst_discoverer_info_get_seekable(self.to_glib_none().0)) } } #[doc(alias = "gst_discoverer_info_get_stream_info")] - pub fn get_stream_info(&self) -> Option { + pub fn stream_info(&self) -> Option { unsafe { from_glib_full(ffi::gst_discoverer_info_get_stream_info( self.to_glib_none().0, @@ -88,7 +88,7 @@ impl DiscovererInfo { } #[doc(alias = "gst_discoverer_info_get_stream_list")] - pub fn get_stream_list(&self) -> Vec { + pub fn stream_list(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_full(ffi::gst_discoverer_info_get_stream_list( self.to_glib_none().0, @@ -107,7 +107,7 @@ impl DiscovererInfo { } #[doc(alias = "gst_discoverer_info_get_subtitle_streams")] - pub fn get_subtitle_streams(&self) -> Vec { + pub fn subtitle_streams(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_full(ffi::gst_discoverer_info_get_subtitle_streams( self.to_glib_none().0, @@ -116,22 +116,22 @@ impl DiscovererInfo { } #[doc(alias = "gst_discoverer_info_get_tags")] - pub fn get_tags(&self) -> Option { + pub fn tags(&self) -> Option { unsafe { from_glib_none(ffi::gst_discoverer_info_get_tags(self.to_glib_none().0)) } } #[doc(alias = "gst_discoverer_info_get_toc")] - pub fn get_toc(&self) -> Option { + pub fn toc(&self) -> Option { unsafe { from_glib_none(ffi::gst_discoverer_info_get_toc(self.to_glib_none().0)) } } #[doc(alias = "gst_discoverer_info_get_uri")] - pub fn get_uri(&self) -> Option { + pub fn uri(&self) -> Option { unsafe { from_glib_none(ffi::gst_discoverer_info_get_uri(self.to_glib_none().0)) } } #[doc(alias = "gst_discoverer_info_get_video_streams")] - pub fn get_video_streams(&self) -> Vec { + pub fn video_streams(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_full(ffi::gst_discoverer_info_get_video_streams( self.to_glib_none().0, diff --git a/gstreamer-pbutils/src/auto/discoverer_stream_info.rs b/gstreamer-pbutils/src/auto/discoverer_stream_info.rs index 5182633e2..a66cfdb9b 100644 --- a/gstreamer-pbutils/src/auto/discoverer_stream_info.rs +++ b/gstreamer-pbutils/src/auto/discoverer_stream_info.rs @@ -21,32 +21,32 @@ pub const NONE_DISCOVERER_STREAM_INFO: Option<&DiscovererStreamInfo> = None; pub trait DiscovererStreamInfoExt: 'static { #[doc(alias = "gst_discoverer_stream_info_get_caps")] - fn get_caps(&self) -> Option; + fn caps(&self) -> Option; #[doc(alias = "gst_discoverer_stream_info_get_misc")] - fn get_misc(&self) -> Option; + fn misc(&self) -> Option; #[doc(alias = "gst_discoverer_stream_info_get_next")] - fn get_next(&self) -> Option; + fn next(&self) -> Option; #[doc(alias = "gst_discoverer_stream_info_get_previous")] - fn get_previous(&self) -> Option; + fn previous(&self) -> Option; #[doc(alias = "gst_discoverer_stream_info_get_stream_id")] - fn get_stream_id(&self) -> Option; + fn stream_id(&self) -> Option; #[doc(alias = "gst_discoverer_stream_info_get_stream_type_nick")] - fn get_stream_type_nick(&self) -> glib::GString; + fn stream_type_nick(&self) -> glib::GString; #[doc(alias = "gst_discoverer_stream_info_get_tags")] - fn get_tags(&self) -> Option; + fn tags(&self) -> Option; #[doc(alias = "gst_discoverer_stream_info_get_toc")] - fn get_toc(&self) -> Option; + fn toc(&self) -> Option; } impl> DiscovererStreamInfoExt for O { - fn get_caps(&self) -> Option { + fn caps(&self) -> Option { unsafe { from_glib_full(ffi::gst_discoverer_stream_info_get_caps( self.as_ref().to_glib_none().0, @@ -54,7 +54,7 @@ impl> DiscovererStreamInfoExt for O { } } - fn get_misc(&self) -> Option { + fn misc(&self) -> Option { unsafe { from_glib_none(ffi::gst_discoverer_stream_info_get_misc( self.as_ref().to_glib_none().0, @@ -62,7 +62,7 @@ impl> DiscovererStreamInfoExt for O { } } - fn get_next(&self) -> Option { + fn next(&self) -> Option { unsafe { from_glib_full(ffi::gst_discoverer_stream_info_get_next( self.as_ref().to_glib_none().0, @@ -70,7 +70,7 @@ impl> DiscovererStreamInfoExt for O { } } - fn get_previous(&self) -> Option { + fn previous(&self) -> Option { unsafe { from_glib_full(ffi::gst_discoverer_stream_info_get_previous( self.as_ref().to_glib_none().0, @@ -78,7 +78,7 @@ impl> DiscovererStreamInfoExt for O { } } - fn get_stream_id(&self) -> Option { + fn stream_id(&self) -> Option { unsafe { from_glib_none(ffi::gst_discoverer_stream_info_get_stream_id( self.as_ref().to_glib_none().0, @@ -86,7 +86,7 @@ impl> DiscovererStreamInfoExt for O { } } - fn get_stream_type_nick(&self) -> glib::GString { + fn stream_type_nick(&self) -> glib::GString { unsafe { from_glib_none(ffi::gst_discoverer_stream_info_get_stream_type_nick( self.as_ref().to_glib_none().0, @@ -94,7 +94,7 @@ impl> DiscovererStreamInfoExt for O { } } - fn get_tags(&self) -> Option { + fn tags(&self) -> Option { unsafe { from_glib_none(ffi::gst_discoverer_stream_info_get_tags( self.as_ref().to_glib_none().0, @@ -102,7 +102,7 @@ impl> DiscovererStreamInfoExt for O { } } - fn get_toc(&self) -> Option { + fn toc(&self) -> Option { unsafe { from_glib_none(ffi::gst_discoverer_stream_info_get_toc( self.as_ref().to_glib_none().0, diff --git a/gstreamer-pbutils/src/auto/discoverer_subtitle_info.rs b/gstreamer-pbutils/src/auto/discoverer_subtitle_info.rs index 6634782f8..dec3ca6dd 100644 --- a/gstreamer-pbutils/src/auto/discoverer_subtitle_info.rs +++ b/gstreamer-pbutils/src/auto/discoverer_subtitle_info.rs @@ -16,7 +16,7 @@ glib::wrapper! { impl DiscovererSubtitleInfo { #[doc(alias = "gst_discoverer_subtitle_info_get_language")] - pub fn get_language(&self) -> Option { + pub fn language(&self) -> Option { unsafe { from_glib_none(ffi::gst_discoverer_subtitle_info_get_language( self.to_glib_none().0, diff --git a/gstreamer-pbutils/src/auto/discoverer_video_info.rs b/gstreamer-pbutils/src/auto/discoverer_video_info.rs index f34492478..5f83a9add 100644 --- a/gstreamer-pbutils/src/auto/discoverer_video_info.rs +++ b/gstreamer-pbutils/src/auto/discoverer_video_info.rs @@ -16,27 +16,27 @@ glib::wrapper! { impl DiscovererVideoInfo { #[doc(alias = "gst_discoverer_video_info_get_bitrate")] - pub fn get_bitrate(&self) -> u32 { + pub fn bitrate(&self) -> u32 { unsafe { ffi::gst_discoverer_video_info_get_bitrate(self.to_glib_none().0) } } #[doc(alias = "gst_discoverer_video_info_get_depth")] - pub fn get_depth(&self) -> u32 { + pub fn depth(&self) -> u32 { unsafe { ffi::gst_discoverer_video_info_get_depth(self.to_glib_none().0) } } #[doc(alias = "gst_discoverer_video_info_get_height")] - pub fn get_height(&self) -> u32 { + pub fn height(&self) -> u32 { unsafe { ffi::gst_discoverer_video_info_get_height(self.to_glib_none().0) } } #[doc(alias = "gst_discoverer_video_info_get_max_bitrate")] - pub fn get_max_bitrate(&self) -> u32 { + pub fn max_bitrate(&self) -> u32 { unsafe { ffi::gst_discoverer_video_info_get_max_bitrate(self.to_glib_none().0) } } #[doc(alias = "gst_discoverer_video_info_get_width")] - pub fn get_width(&self) -> u32 { + pub fn width(&self) -> u32 { unsafe { ffi::gst_discoverer_video_info_get_width(self.to_glib_none().0) } } diff --git a/gstreamer-pbutils/src/auto/encoding_container_profile.rs b/gstreamer-pbutils/src/auto/encoding_container_profile.rs index df4f90e4a..a1f2bc673 100644 --- a/gstreamer-pbutils/src/auto/encoding_container_profile.rs +++ b/gstreamer-pbutils/src/auto/encoding_container_profile.rs @@ -27,7 +27,7 @@ impl EncodingContainerProfile { } #[doc(alias = "gst_encoding_container_profile_get_profiles")] - pub fn get_profiles(&self) -> Vec { + pub fn profiles(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_none(ffi::gst_encoding_container_profile_get_profiles( self.to_glib_none().0, diff --git a/gstreamer-pbutils/src/auto/encoding_profile.rs b/gstreamer-pbutils/src/auto/encoding_profile.rs index 4f683f232..5e3bab76a 100644 --- a/gstreamer-pbutils/src/auto/encoding_profile.rs +++ b/gstreamer-pbutils/src/auto/encoding_profile.rs @@ -58,39 +58,39 @@ pub trait EncodingProfileExt: 'static { fn copy(&self) -> EncodingProfile; #[doc(alias = "gst_encoding_profile_get_allow_dynamic_output")] - fn get_allow_dynamic_output(&self) -> bool; + fn allows_dynamic_output(&self) -> bool; #[doc(alias = "gst_encoding_profile_get_description")] - fn get_description(&self) -> Option; + fn description(&self) -> Option; #[doc(alias = "gst_encoding_profile_get_file_extension")] - fn get_file_extension(&self) -> Option; + fn file_extension(&self) -> Option; #[doc(alias = "gst_encoding_profile_get_format")] - fn get_format(&self) -> gst::Caps; + fn format(&self) -> gst::Caps; #[doc(alias = "gst_encoding_profile_get_input_caps")] - fn get_input_caps(&self) -> gst::Caps; + fn input_caps(&self) -> gst::Caps; #[doc(alias = "gst_encoding_profile_get_name")] - fn get_name(&self) -> Option; + fn name(&self) -> Option; #[doc(alias = "gst_encoding_profile_get_presence")] - fn get_presence(&self) -> u32; + fn presence(&self) -> u32; #[doc(alias = "gst_encoding_profile_get_preset")] - fn get_preset(&self) -> Option; + fn preset(&self) -> Option; #[doc(alias = "gst_encoding_profile_get_preset_name")] - fn get_preset_name(&self) -> Option; + fn preset_name(&self) -> Option; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[doc(alias = "gst_encoding_profile_get_single_segment")] - fn get_single_segment(&self) -> bool; + fn is_single_segment(&self) -> bool; #[doc(alias = "gst_encoding_profile_get_type_nick")] - fn get_type_nick(&self) -> Option; + fn type_nick(&self) -> Option; #[doc(alias = "gst_encoding_profile_is_enabled")] fn is_enabled(&self) -> bool; @@ -110,7 +110,7 @@ impl> EncodingProfileExt for O { } } - fn get_allow_dynamic_output(&self) -> bool { + fn allows_dynamic_output(&self) -> bool { unsafe { from_glib(ffi::gst_encoding_profile_get_allow_dynamic_output( self.as_ref().to_glib_none().0, @@ -118,7 +118,7 @@ impl> EncodingProfileExt for O { } } - fn get_description(&self) -> Option { + fn description(&self) -> Option { unsafe { from_glib_none(ffi::gst_encoding_profile_get_description( self.as_ref().to_glib_none().0, @@ -126,7 +126,7 @@ impl> EncodingProfileExt for O { } } - fn get_file_extension(&self) -> Option { + fn file_extension(&self) -> Option { unsafe { from_glib_none(ffi::gst_encoding_profile_get_file_extension( self.as_ref().to_glib_none().0, @@ -134,7 +134,7 @@ impl> EncodingProfileExt for O { } } - fn get_format(&self) -> gst::Caps { + fn format(&self) -> gst::Caps { unsafe { from_glib_full(ffi::gst_encoding_profile_get_format( self.as_ref().to_glib_none().0, @@ -142,7 +142,7 @@ impl> EncodingProfileExt for O { } } - fn get_input_caps(&self) -> gst::Caps { + fn input_caps(&self) -> gst::Caps { unsafe { from_glib_full(ffi::gst_encoding_profile_get_input_caps( self.as_ref().to_glib_none().0, @@ -150,7 +150,7 @@ impl> EncodingProfileExt for O { } } - fn get_name(&self) -> Option { + fn name(&self) -> Option { unsafe { from_glib_none(ffi::gst_encoding_profile_get_name( self.as_ref().to_glib_none().0, @@ -158,11 +158,11 @@ impl> EncodingProfileExt for O { } } - fn get_presence(&self) -> u32 { + fn presence(&self) -> u32 { unsafe { ffi::gst_encoding_profile_get_presence(self.as_ref().to_glib_none().0) } } - fn get_preset(&self) -> Option { + fn preset(&self) -> Option { unsafe { from_glib_none(ffi::gst_encoding_profile_get_preset( self.as_ref().to_glib_none().0, @@ -170,7 +170,7 @@ impl> EncodingProfileExt for O { } } - fn get_preset_name(&self) -> Option { + fn preset_name(&self) -> Option { unsafe { from_glib_none(ffi::gst_encoding_profile_get_preset_name( self.as_ref().to_glib_none().0, @@ -180,7 +180,7 @@ impl> EncodingProfileExt for O { #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] - fn get_single_segment(&self) -> bool { + fn is_single_segment(&self) -> bool { unsafe { from_glib(ffi::gst_encoding_profile_get_single_segment( self.as_ref().to_glib_none().0, @@ -188,7 +188,7 @@ impl> EncodingProfileExt for O { } } - fn get_type_nick(&self) -> Option { + fn type_nick(&self) -> Option { unsafe { from_glib_none(ffi::gst_encoding_profile_get_type_nick( self.as_ref().to_glib_none().0, diff --git a/gstreamer-pbutils/src/auto/encoding_target.rs b/gstreamer-pbutils/src/auto/encoding_target.rs index c364a81a6..70eac3198 100644 --- a/gstreamer-pbutils/src/auto/encoding_target.rs +++ b/gstreamer-pbutils/src/auto/encoding_target.rs @@ -36,12 +36,12 @@ impl EncodingTarget { } #[doc(alias = "gst_encoding_target_get_category")] - pub fn get_category(&self) -> glib::GString { + pub fn category(&self) -> glib::GString { unsafe { from_glib_none(ffi::gst_encoding_target_get_category(self.to_glib_none().0)) } } #[doc(alias = "gst_encoding_target_get_description")] - pub fn get_description(&self) -> glib::GString { + pub fn description(&self) -> glib::GString { unsafe { from_glib_none(ffi::gst_encoding_target_get_description( self.to_glib_none().0, @@ -50,14 +50,14 @@ impl EncodingTarget { } #[doc(alias = "gst_encoding_target_get_name")] - pub fn get_name(&self) -> glib::GString { + pub fn name(&self) -> glib::GString { unsafe { from_glib_none(ffi::gst_encoding_target_get_name(self.to_glib_none().0)) } } #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[doc(alias = "gst_encoding_target_get_path")] - pub fn get_path(&self) -> Option { + pub fn path(&self) -> Option { unsafe { from_glib_none(ffi::gst_encoding_target_get_path(self.to_glib_none().0)) } } @@ -72,7 +72,7 @@ impl EncodingTarget { } #[doc(alias = "gst_encoding_target_get_profiles")] - pub fn get_profiles(&self) -> Vec { + pub fn profiles(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_none(ffi::gst_encoding_target_get_profiles( self.to_glib_none().0, @@ -151,7 +151,7 @@ impl EncodingTarget { impl fmt::Display for EncodingTarget { #[inline] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - f.write_str(&self.get_name()) + f.write_str(&self.name()) } } diff --git a/gstreamer-pbutils/src/auto/encoding_video_profile.rs b/gstreamer-pbutils/src/auto/encoding_video_profile.rs index bd5b408b2..d99230145 100644 --- a/gstreamer-pbutils/src/auto/encoding_video_profile.rs +++ b/gstreamer-pbutils/src/auto/encoding_video_profile.rs @@ -16,12 +16,12 @@ glib::wrapper! { impl EncodingVideoProfile { #[doc(alias = "gst_encoding_video_profile_get_pass")] - pub fn get_pass(&self) -> u32 { + pub fn pass(&self) -> u32 { unsafe { ffi::gst_encoding_video_profile_get_pass(self.to_glib_none().0) } } #[doc(alias = "gst_encoding_video_profile_get_variableframerate")] - pub fn get_variableframerate(&self) -> bool { + pub fn is_variableframerate(&self) -> bool { unsafe { from_glib(ffi::gst_encoding_video_profile_get_variableframerate( self.to_glib_none().0, diff --git a/gstreamer-pbutils/src/auto/versions.txt b/gstreamer-pbutils/src/auto/versions.txt index 2061f177b..3895717b6 100644 --- a/gstreamer-pbutils/src/auto/versions.txt +++ b/gstreamer-pbutils/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) diff --git a/gstreamer-pbutils/sys/build.rs b/gstreamer-pbutils/sys/build.rs index d68dd0cdc..961fb48a8 100644 --- a/gstreamer-pbutils/sys/build.rs +++ b/gstreamer-pbutils/sys/build.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-pbutils/sys/src/lib.rs b/gstreamer-pbutils/sys/src/lib.rs index 93ac9aaff..890fec9a8 100644 --- a/gstreamer-pbutils/sys/src/lib.rs +++ b/gstreamer-pbutils/sys/src/lib.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-pbutils/sys/tests/abi.rs b/gstreamer-pbutils/sys/tests/abi.rs index 9828c6293..aa3c77b6f 100644 --- a/gstreamer-pbutils/sys/tests/abi.rs +++ b/gstreamer-pbutils/sys/tests/abi.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-pbutils/sys/tests/constant.c b/gstreamer-pbutils/sys/tests/constant.c index 2f1ec461f..3bf7c8452 100644 --- a/gstreamer-pbutils/sys/tests/constant.c +++ b/gstreamer-pbutils/sys/tests/constant.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-pbutils/sys/tests/layout.c b/gstreamer-pbutils/sys/tests/layout.c index 369effa5d..1b6b66715 100644 --- a/gstreamer-pbutils/sys/tests/layout.c +++ b/gstreamer-pbutils/sys/tests/layout.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-player/src/auto/player.rs b/gstreamer-player/src/auto/player.rs index 4b1c45494..1eba3fe64 100644 --- a/gstreamer-player/src/auto/player.rs +++ b/gstreamer-player/src/auto/player.rs @@ -29,7 +29,7 @@ glib::wrapper! { impl Player { #[doc(alias = "gst_player_get_audio_video_offset")] - pub fn get_audio_video_offset(&self) -> i64 { + pub fn audio_video_offset(&self) -> i64 { unsafe { ffi::gst_player_get_audio_video_offset(self.to_glib_none().0) } } @@ -39,7 +39,7 @@ impl Player { } #[doc(alias = "gst_player_get_current_audio_track")] - pub fn get_current_audio_track(&self) -> Option { + pub fn current_audio_track(&self) -> Option { unsafe { from_glib_full(ffi::gst_player_get_current_audio_track( self.to_glib_none().0, @@ -48,7 +48,7 @@ impl Player { } #[doc(alias = "gst_player_get_current_subtitle_track")] - pub fn get_current_subtitle_track(&self) -> Option { + pub fn current_subtitle_track(&self) -> Option { unsafe { from_glib_full(ffi::gst_player_get_current_subtitle_track( self.to_glib_none().0, @@ -57,7 +57,7 @@ impl Player { } #[doc(alias = "gst_player_get_current_video_track")] - pub fn get_current_video_track(&self) -> Option { + pub fn current_video_track(&self) -> Option { unsafe { from_glib_full(ffi::gst_player_get_current_video_track( self.to_glib_none().0, @@ -66,7 +66,7 @@ impl Player { } #[doc(alias = "gst_player_get_current_visualization")] - pub fn get_current_visualization(&self) -> Option { + pub fn current_visualization(&self) -> Option { unsafe { from_glib_full(ffi::gst_player_get_current_visualization( self.to_glib_none().0, @@ -75,59 +75,59 @@ impl Player { } #[doc(alias = "gst_player_get_duration")] - pub fn get_duration(&self) -> gst::ClockTime { + pub fn duration(&self) -> gst::ClockTime { unsafe { from_glib(ffi::gst_player_get_duration(self.to_glib_none().0)) } } #[doc(alias = "gst_player_get_media_info")] - pub fn get_media_info(&self) -> Option { + pub fn media_info(&self) -> Option { unsafe { from_glib_full(ffi::gst_player_get_media_info(self.to_glib_none().0)) } } #[doc(alias = "gst_player_get_multiview_flags")] - pub fn get_multiview_flags(&self) -> gst_video::VideoMultiviewFlags { + pub fn multiview_flags(&self) -> gst_video::VideoMultiviewFlags { unsafe { from_glib(ffi::gst_player_get_multiview_flags(self.to_glib_none().0)) } } #[doc(alias = "gst_player_get_multiview_mode")] - pub fn get_multiview_mode(&self) -> gst_video::VideoMultiviewFramePacking { + pub fn multiview_mode(&self) -> gst_video::VideoMultiviewFramePacking { unsafe { from_glib(ffi::gst_player_get_multiview_mode(self.to_glib_none().0)) } } #[doc(alias = "gst_player_get_mute")] - pub fn get_mute(&self) -> bool { + pub fn is_muted(&self) -> bool { unsafe { from_glib(ffi::gst_player_get_mute(self.to_glib_none().0)) } } #[doc(alias = "gst_player_get_pipeline")] - pub fn get_pipeline(&self) -> gst::Element { + pub fn pipeline(&self) -> gst::Element { unsafe { from_glib_full(ffi::gst_player_get_pipeline(self.to_glib_none().0)) } } #[doc(alias = "gst_player_get_position")] - pub fn get_position(&self) -> gst::ClockTime { + pub fn position(&self) -> gst::ClockTime { unsafe { from_glib(ffi::gst_player_get_position(self.to_glib_none().0)) } } #[doc(alias = "gst_player_get_rate")] - pub fn get_rate(&self) -> f64 { + pub fn rate(&self) -> f64 { unsafe { ffi::gst_player_get_rate(self.to_glib_none().0) } } #[doc(alias = "gst_player_get_subtitle_uri")] - pub fn get_subtitle_uri(&self) -> Option { + pub fn subtitle_uri(&self) -> Option { unsafe { from_glib_full(ffi::gst_player_get_subtitle_uri(self.to_glib_none().0)) } } #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[doc(alias = "gst_player_get_subtitle_video_offset")] - pub fn get_subtitle_video_offset(&self) -> i64 { + pub fn subtitle_video_offset(&self) -> i64 { unsafe { ffi::gst_player_get_subtitle_video_offset(self.to_glib_none().0) } } #[doc(alias = "gst_player_get_uri")] - pub fn get_uri(&self) -> Option { + pub fn uri(&self) -> Option { unsafe { from_glib_full(ffi::gst_player_get_uri(self.to_glib_none().0)) } } @@ -147,7 +147,7 @@ impl Player { } #[doc(alias = "gst_player_get_volume")] - pub fn get_volume(&self) -> f64 { + pub fn volume(&self) -> f64 { unsafe { ffi::gst_player_get_volume(self.to_glib_none().0) } } @@ -324,7 +324,8 @@ impl Player { } } - pub fn get_property_suburi(&self) -> Option { + #[doc(alias = "get_property_suburi")] + pub fn suburi(&self) -> Option { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -338,7 +339,8 @@ impl Player { } } - pub fn set_property_suburi(&self, suburi: Option<&str>) { + #[doc(alias = "set_property_suburi")] + pub fn set_suburi(&self, suburi: Option<&str>) { unsafe { glib::gobject_ffi::g_object_set_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, @@ -348,7 +350,8 @@ impl Player { } } - pub fn get_property_video_multiview_flags(&self) -> gst_video::VideoMultiviewFlags { + #[doc(alias = "get_property_video_multiview_flags")] + pub fn video_multiview_flags(&self) -> gst_video::VideoMultiviewFlags { unsafe { let mut value = glib::Value::from_type( ::static_type(), @@ -365,10 +368,8 @@ impl Player { } } - pub fn set_property_video_multiview_flags( - &self, - video_multiview_flags: gst_video::VideoMultiviewFlags, - ) { + #[doc(alias = "set_property_video_multiview_flags")] + pub fn set_video_multiview_flags(&self, video_multiview_flags: gst_video::VideoMultiviewFlags) { unsafe { glib::gobject_ffi::g_object_set_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, @@ -378,7 +379,8 @@ impl Player { } } - pub fn get_property_video_multiview_mode(&self) -> gst_video::VideoMultiviewFramePacking { + #[doc(alias = "get_property_video_multiview_mode")] + pub fn video_multiview_mode(&self) -> gst_video::VideoMultiviewFramePacking { unsafe { let mut value = glib::Value::from_type( ::static_type(), @@ -395,7 +397,8 @@ impl Player { } } - pub fn set_property_video_multiview_mode( + #[doc(alias = "set_property_video_multiview_mode")] + pub fn set_video_multiview_mode( &self, video_multiview_mode: gst_video::VideoMultiviewFramePacking, ) { diff --git a/gstreamer-player/src/auto/player_audio_info.rs b/gstreamer-player/src/auto/player_audio_info.rs index 4b2d52420..f522df1d6 100644 --- a/gstreamer-player/src/auto/player_audio_info.rs +++ b/gstreamer-player/src/auto/player_audio_info.rs @@ -16,17 +16,17 @@ glib::wrapper! { impl PlayerAudioInfo { #[doc(alias = "gst_player_audio_info_get_bitrate")] - pub fn get_bitrate(&self) -> i32 { + pub fn bitrate(&self) -> i32 { unsafe { ffi::gst_player_audio_info_get_bitrate(self.to_glib_none().0) } } #[doc(alias = "gst_player_audio_info_get_channels")] - pub fn get_channels(&self) -> i32 { + pub fn channels(&self) -> i32 { unsafe { ffi::gst_player_audio_info_get_channels(self.to_glib_none().0) } } #[doc(alias = "gst_player_audio_info_get_language")] - pub fn get_language(&self) -> Option { + pub fn language(&self) -> Option { unsafe { from_glib_none(ffi::gst_player_audio_info_get_language( self.to_glib_none().0, @@ -35,12 +35,12 @@ impl PlayerAudioInfo { } #[doc(alias = "gst_player_audio_info_get_max_bitrate")] - pub fn get_max_bitrate(&self) -> i32 { + pub fn max_bitrate(&self) -> i32 { unsafe { ffi::gst_player_audio_info_get_max_bitrate(self.to_glib_none().0) } } #[doc(alias = "gst_player_audio_info_get_sample_rate")] - pub fn get_sample_rate(&self) -> i32 { + pub fn sample_rate(&self) -> i32 { unsafe { ffi::gst_player_audio_info_get_sample_rate(self.to_glib_none().0) } } } diff --git a/gstreamer-player/src/auto/player_gmain_context_signal_dispatcher.rs b/gstreamer-player/src/auto/player_gmain_context_signal_dispatcher.rs index 7dcf9b774..a27599f88 100644 --- a/gstreamer-player/src/auto/player_gmain_context_signal_dispatcher.rs +++ b/gstreamer-player/src/auto/player_gmain_context_signal_dispatcher.rs @@ -17,7 +17,8 @@ glib::wrapper! { } impl PlayerGMainContextSignalDispatcher { - pub fn get_property_application_context(&self) -> Option { + #[doc(alias = "get_property_application_context")] + pub fn application_context(&self) -> Option { unsafe { let mut value = glib::Value::from_type(::static_type()); diff --git a/gstreamer-player/src/auto/player_media_info.rs b/gstreamer-player/src/auto/player_media_info.rs index 32a0bc346..88eefda0c 100644 --- a/gstreamer-player/src/auto/player_media_info.rs +++ b/gstreamer-player/src/auto/player_media_info.rs @@ -19,7 +19,7 @@ glib::wrapper! { impl PlayerMediaInfo { #[doc(alias = "gst_player_media_info_get_audio_streams")] - pub fn get_audio_streams(&self) -> Vec { + pub fn audio_streams(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_none(ffi::gst_player_media_info_get_audio_streams( self.to_glib_none().0, @@ -28,7 +28,7 @@ impl PlayerMediaInfo { } #[doc(alias = "gst_player_media_info_get_container_format")] - pub fn get_container_format(&self) -> Option { + pub fn container_format(&self) -> Option { unsafe { from_glib_none(ffi::gst_player_media_info_get_container_format( self.to_glib_none().0, @@ -37,7 +37,7 @@ impl PlayerMediaInfo { } #[doc(alias = "gst_player_media_info_get_duration")] - pub fn get_duration(&self) -> gst::ClockTime { + pub fn duration(&self) -> gst::ClockTime { unsafe { from_glib(ffi::gst_player_media_info_get_duration( self.to_glib_none().0, @@ -46,7 +46,7 @@ impl PlayerMediaInfo { } #[doc(alias = "gst_player_media_info_get_image_sample")] - pub fn get_image_sample(&self) -> Option { + pub fn image_sample(&self) -> Option { unsafe { from_glib_none(ffi::gst_player_media_info_get_image_sample( self.to_glib_none().0, @@ -55,27 +55,27 @@ impl PlayerMediaInfo { } #[doc(alias = "gst_player_media_info_get_number_of_audio_streams")] - pub fn get_number_of_audio_streams(&self) -> u32 { + pub fn number_of_audio_streams(&self) -> u32 { unsafe { ffi::gst_player_media_info_get_number_of_audio_streams(self.to_glib_none().0) } } #[doc(alias = "gst_player_media_info_get_number_of_streams")] - pub fn get_number_of_streams(&self) -> u32 { + pub fn number_of_streams(&self) -> u32 { unsafe { ffi::gst_player_media_info_get_number_of_streams(self.to_glib_none().0) } } #[doc(alias = "gst_player_media_info_get_number_of_subtitle_streams")] - pub fn get_number_of_subtitle_streams(&self) -> u32 { + pub fn number_of_subtitle_streams(&self) -> u32 { unsafe { ffi::gst_player_media_info_get_number_of_subtitle_streams(self.to_glib_none().0) } } #[doc(alias = "gst_player_media_info_get_number_of_video_streams")] - pub fn get_number_of_video_streams(&self) -> u32 { + pub fn number_of_video_streams(&self) -> u32 { unsafe { ffi::gst_player_media_info_get_number_of_video_streams(self.to_glib_none().0) } } #[doc(alias = "gst_player_media_info_get_stream_list")] - pub fn get_stream_list(&self) -> Vec { + pub fn stream_list(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_none(ffi::gst_player_media_info_get_stream_list( self.to_glib_none().0, @@ -84,7 +84,7 @@ impl PlayerMediaInfo { } #[doc(alias = "gst_player_media_info_get_subtitle_streams")] - pub fn get_subtitle_streams(&self) -> Vec { + pub fn subtitle_streams(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_none(ffi::gst_player_media_info_get_subtitle_streams( self.to_glib_none().0, @@ -93,22 +93,22 @@ impl PlayerMediaInfo { } #[doc(alias = "gst_player_media_info_get_tags")] - pub fn get_tags(&self) -> Option { + pub fn tags(&self) -> Option { unsafe { from_glib_none(ffi::gst_player_media_info_get_tags(self.to_glib_none().0)) } } #[doc(alias = "gst_player_media_info_get_title")] - pub fn get_title(&self) -> Option { + pub fn title(&self) -> Option { unsafe { from_glib_none(ffi::gst_player_media_info_get_title(self.to_glib_none().0)) } } #[doc(alias = "gst_player_media_info_get_uri")] - pub fn get_uri(&self) -> glib::GString { + pub fn uri(&self) -> glib::GString { unsafe { from_glib_none(ffi::gst_player_media_info_get_uri(self.to_glib_none().0)) } } #[doc(alias = "gst_player_media_info_get_video_streams")] - pub fn get_video_streams(&self) -> Vec { + pub fn video_streams(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_none(ffi::gst_player_media_info_get_video_streams( self.to_glib_none().0, diff --git a/gstreamer-player/src/auto/player_stream_info.rs b/gstreamer-player/src/auto/player_stream_info.rs index fec43e4e4..c2edeb347 100644 --- a/gstreamer-player/src/auto/player_stream_info.rs +++ b/gstreamer-player/src/auto/player_stream_info.rs @@ -21,23 +21,23 @@ pub const NONE_PLAYER_STREAM_INFO: Option<&PlayerStreamInfo> = None; pub trait PlayerStreamInfoExt: 'static { #[doc(alias = "gst_player_stream_info_get_caps")] - fn get_caps(&self) -> Option; + fn caps(&self) -> Option; #[doc(alias = "gst_player_stream_info_get_codec")] - fn get_codec(&self) -> Option; + fn codec(&self) -> Option; #[doc(alias = "gst_player_stream_info_get_index")] - fn get_index(&self) -> i32; + fn index(&self) -> i32; #[doc(alias = "gst_player_stream_info_get_stream_type")] - fn get_stream_type(&self) -> glib::GString; + fn stream_type(&self) -> glib::GString; #[doc(alias = "gst_player_stream_info_get_tags")] - fn get_tags(&self) -> Option; + fn tags(&self) -> Option; } impl> PlayerStreamInfoExt for O { - fn get_caps(&self) -> Option { + fn caps(&self) -> Option { unsafe { from_glib_none(ffi::gst_player_stream_info_get_caps(const_override( self.as_ref().to_glib_none().0, @@ -45,7 +45,7 @@ impl> PlayerStreamInfoExt for O { } } - fn get_codec(&self) -> Option { + fn codec(&self) -> Option { unsafe { from_glib_none(ffi::gst_player_stream_info_get_codec(const_override( self.as_ref().to_glib_none().0, @@ -53,13 +53,13 @@ impl> PlayerStreamInfoExt for O { } } - fn get_index(&self) -> i32 { + fn index(&self) -> i32 { unsafe { ffi::gst_player_stream_info_get_index(const_override(self.as_ref().to_glib_none().0)) } } - fn get_stream_type(&self) -> glib::GString { + fn stream_type(&self) -> glib::GString { unsafe { from_glib_none(ffi::gst_player_stream_info_get_stream_type(const_override( self.as_ref().to_glib_none().0, @@ -67,7 +67,7 @@ impl> PlayerStreamInfoExt for O { } } - fn get_tags(&self) -> Option { + fn tags(&self) -> Option { unsafe { from_glib_none(ffi::gst_player_stream_info_get_tags(const_override( self.as_ref().to_glib_none().0, diff --git a/gstreamer-player/src/auto/player_subtitle_info.rs b/gstreamer-player/src/auto/player_subtitle_info.rs index de86a2d2a..d6668fb1e 100644 --- a/gstreamer-player/src/auto/player_subtitle_info.rs +++ b/gstreamer-player/src/auto/player_subtitle_info.rs @@ -16,7 +16,7 @@ glib::wrapper! { impl PlayerSubtitleInfo { #[doc(alias = "gst_player_subtitle_info_get_language")] - pub fn get_language(&self) -> Option { + pub fn language(&self) -> Option { unsafe { from_glib_none(ffi::gst_player_subtitle_info_get_language( self.to_glib_none().0, diff --git a/gstreamer-player/src/auto/player_video_info.rs b/gstreamer-player/src/auto/player_video_info.rs index 59d0c42ce..c350d987d 100644 --- a/gstreamer-player/src/auto/player_video_info.rs +++ b/gstreamer-player/src/auto/player_video_info.rs @@ -16,22 +16,22 @@ glib::wrapper! { impl PlayerVideoInfo { #[doc(alias = "gst_player_video_info_get_bitrate")] - pub fn get_bitrate(&self) -> i32 { + pub fn bitrate(&self) -> i32 { unsafe { ffi::gst_player_video_info_get_bitrate(self.to_glib_none().0) } } #[doc(alias = "gst_player_video_info_get_height")] - pub fn get_height(&self) -> i32 { + pub fn height(&self) -> i32 { unsafe { ffi::gst_player_video_info_get_height(self.to_glib_none().0) } } #[doc(alias = "gst_player_video_info_get_max_bitrate")] - pub fn get_max_bitrate(&self) -> i32 { + pub fn max_bitrate(&self) -> i32 { unsafe { ffi::gst_player_video_info_get_max_bitrate(self.to_glib_none().0) } } #[doc(alias = "gst_player_video_info_get_width")] - pub fn get_width(&self) -> i32 { + pub fn width(&self) -> i32 { unsafe { ffi::gst_player_video_info_get_width(self.to_glib_none().0) } } } diff --git a/gstreamer-player/src/auto/player_video_overlay_video_renderer.rs b/gstreamer-player/src/auto/player_video_overlay_video_renderer.rs index 61fe000c6..bc5c7caec 100644 --- a/gstreamer-player/src/auto/player_video_overlay_video_renderer.rs +++ b/gstreamer-player/src/auto/player_video_overlay_video_renderer.rs @@ -31,7 +31,7 @@ impl PlayerVideoOverlayVideoRenderer { } #[doc(alias = "gst_player_video_overlay_video_renderer_get_render_rectangle")] - pub fn get_render_rectangle(&self) -> (i32, i32, i32, i32) { + pub fn render_rectangle(&self) -> (i32, i32, i32, i32) { unsafe { let mut x = mem::MaybeUninit::uninit(); let mut y = mem::MaybeUninit::uninit(); @@ -53,7 +53,7 @@ impl PlayerVideoOverlayVideoRenderer { } //#[doc(alias = "gst_player_video_overlay_video_renderer_get_window_handle")] - //pub fn get_window_handle(&self) -> /*Unimplemented*/Option { + //pub fn window_handle(&self) -> /*Unimplemented*/Option { // unsafe { TODO: call ffi:gst_player_video_overlay_video_renderer_get_window_handle() } //} @@ -75,7 +75,8 @@ impl PlayerVideoOverlayVideoRenderer { // unsafe { TODO: call ffi:gst_player_video_overlay_video_renderer_set_window_handle() } //} - pub fn get_property_video_sink(&self) -> Option { + #[doc(alias = "get_property_video_sink")] + pub fn video_sink(&self) -> Option { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -89,7 +90,8 @@ impl PlayerVideoOverlayVideoRenderer { } } - pub fn set_property_video_sink>(&self, video_sink: Option<&P>) { + #[doc(alias = "set_property_video_sink")] + pub fn set_video_sink>(&self, video_sink: Option<&P>) { unsafe { glib::gobject_ffi::g_object_set_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, diff --git a/gstreamer-player/src/auto/versions.txt b/gstreamer-player/src/auto/versions.txt index 2061f177b..3895717b6 100644 --- a/gstreamer-player/src/auto/versions.txt +++ b/gstreamer-player/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) diff --git a/gstreamer-player/sys/build.rs b/gstreamer-player/sys/build.rs index d68dd0cdc..961fb48a8 100644 --- a/gstreamer-player/sys/build.rs +++ b/gstreamer-player/sys/build.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-player/sys/src/lib.rs b/gstreamer-player/sys/src/lib.rs index 240e31b13..da36b58e1 100644 --- a/gstreamer-player/sys/src/lib.rs +++ b/gstreamer-player/sys/src/lib.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-player/sys/tests/abi.rs b/gstreamer-player/sys/tests/abi.rs index ec1efdc23..0ecb43faf 100644 --- a/gstreamer-player/sys/tests/abi.rs +++ b/gstreamer-player/sys/tests/abi.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-player/sys/tests/constant.c b/gstreamer-player/sys/tests/constant.c index 976e05cdb..d072de92d 100644 --- a/gstreamer-player/sys/tests/constant.c +++ b/gstreamer-player/sys/tests/constant.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-player/sys/tests/layout.c b/gstreamer-player/sys/tests/layout.c index 8104102dd..b98e11abb 100644 --- a/gstreamer-player/sys/tests/layout.c +++ b/gstreamer-player/sys/tests/layout.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-rtp/src/auto/versions.txt b/gstreamer-rtp/src/auto/versions.txt index 2061f177b..3895717b6 100644 --- a/gstreamer-rtp/src/auto/versions.txt +++ b/gstreamer-rtp/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) diff --git a/gstreamer-rtp/sys/build.rs b/gstreamer-rtp/sys/build.rs index d68dd0cdc..961fb48a8 100644 --- a/gstreamer-rtp/sys/build.rs +++ b/gstreamer-rtp/sys/build.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-rtp/sys/src/lib.rs b/gstreamer-rtp/sys/src/lib.rs index 6267ffd25..667f8425a 100644 --- a/gstreamer-rtp/sys/src/lib.rs +++ b/gstreamer-rtp/sys/src/lib.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-rtp/sys/tests/abi.rs b/gstreamer-rtp/sys/tests/abi.rs index 96aa6f21a..5fa237790 100644 --- a/gstreamer-rtp/sys/tests/abi.rs +++ b/gstreamer-rtp/sys/tests/abi.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-rtp/sys/tests/constant.c b/gstreamer-rtp/sys/tests/constant.c index 4783b5141..13c246d47 100644 --- a/gstreamer-rtp/sys/tests/constant.c +++ b/gstreamer-rtp/sys/tests/constant.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-rtp/sys/tests/layout.c b/gstreamer-rtp/sys/tests/layout.c index 1d3a9ff5f..cbdc3e78a 100644 --- a/gstreamer-rtp/sys/tests/layout.c +++ b/gstreamer-rtp/sys/tests/layout.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-rtsp-server/src/auto/rtsp_auth.rs b/gstreamer-rtsp-server/src/auto/rtsp_auth.rs index 7c1ebdc9f..194b6f9ea 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_auth.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_auth.rs @@ -71,26 +71,26 @@ pub trait RTSPAuthExt: 'static { fn add_digest(&self, user: &str, pass: &str, token: &RTSPToken); #[doc(alias = "gst_rtsp_auth_get_default_token")] - fn get_default_token(&self) -> Option; + fn default_token(&self) -> Option; #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[doc(alias = "gst_rtsp_auth_get_realm")] - fn get_realm(&self) -> Option; + fn realm(&self) -> Option; #[cfg(any(feature = "v1_12", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] #[doc(alias = "gst_rtsp_auth_get_supported_methods")] - fn get_supported_methods(&self) -> gst_rtsp::RTSPAuthMethod; + fn supported_methods(&self) -> gst_rtsp::RTSPAuthMethod; #[doc(alias = "gst_rtsp_auth_get_tls_authentication_mode")] - fn get_tls_authentication_mode(&self) -> gio::TlsAuthenticationMode; + fn tls_authentication_mode(&self) -> gio::TlsAuthenticationMode; #[doc(alias = "gst_rtsp_auth_get_tls_certificate")] - fn get_tls_certificate(&self) -> Option; + fn tls_certificate(&self) -> Option; #[doc(alias = "gst_rtsp_auth_get_tls_database")] - fn get_tls_database(&self) -> Option; + fn tls_database(&self) -> Option; #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] @@ -159,7 +159,7 @@ impl> RTSPAuthExt for O { } } - fn get_default_token(&self) -> Option { + fn default_token(&self) -> Option { unsafe { from_glib_full(ffi::gst_rtsp_auth_get_default_token( self.as_ref().to_glib_none().0, @@ -169,13 +169,13 @@ impl> RTSPAuthExt for O { #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] - fn get_realm(&self) -> Option { + fn realm(&self) -> Option { unsafe { from_glib_full(ffi::gst_rtsp_auth_get_realm(self.as_ref().to_glib_none().0)) } } #[cfg(any(feature = "v1_12", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] - fn get_supported_methods(&self) -> gst_rtsp::RTSPAuthMethod { + fn supported_methods(&self) -> gst_rtsp::RTSPAuthMethod { unsafe { from_glib(ffi::gst_rtsp_auth_get_supported_methods( self.as_ref().to_glib_none().0, @@ -183,7 +183,7 @@ impl> RTSPAuthExt for O { } } - fn get_tls_authentication_mode(&self) -> gio::TlsAuthenticationMode { + fn tls_authentication_mode(&self) -> gio::TlsAuthenticationMode { unsafe { from_glib(ffi::gst_rtsp_auth_get_tls_authentication_mode( self.as_ref().to_glib_none().0, @@ -191,7 +191,7 @@ impl> RTSPAuthExt for O { } } - fn get_tls_certificate(&self) -> Option { + fn tls_certificate(&self) -> Option { unsafe { from_glib_full(ffi::gst_rtsp_auth_get_tls_certificate( self.as_ref().to_glib_none().0, @@ -199,7 +199,7 @@ impl> RTSPAuthExt for O { } } - fn get_tls_database(&self) -> Option { + fn tls_database(&self) -> Option { unsafe { from_glib_full(ffi::gst_rtsp_auth_get_tls_database( self.as_ref().to_glib_none().0, diff --git a/gstreamer-rtsp-server/src/auto/rtsp_client.rs b/gstreamer-rtsp-server/src/auto/rtsp_client.rs index 0a5b0b74c..0a3bb5aae 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_client.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_client.rs @@ -54,21 +54,21 @@ pub trait RTSPClientExt: 'static { fn close(&self); #[doc(alias = "gst_rtsp_client_get_auth")] - fn get_auth(&self) -> Option; + fn auth(&self) -> Option; //#[doc(alias = "gst_rtsp_client_get_connection")] - //fn get_connection(&self) -> /*Ignored*/Option; + //fn connection(&self) -> /*Ignored*/Option; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[doc(alias = "gst_rtsp_client_get_content_length_limit")] - fn get_content_length_limit(&self) -> u32; + fn content_length_limit(&self) -> u32; #[doc(alias = "gst_rtsp_client_get_mount_points")] - fn get_mount_points(&self) -> Option; + fn mount_points(&self) -> Option; #[doc(alias = "gst_rtsp_client_get_session_pool")] - fn get_session_pool(&self) -> Option; + fn session_pool(&self) -> Option; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] @@ -76,7 +76,7 @@ pub trait RTSPClientExt: 'static { fn get_stream_transport(&self, channel: u8) -> Option; #[doc(alias = "gst_rtsp_client_get_thread_pool")] - fn get_thread_pool(&self) -> Option; + fn thread_pool(&self) -> Option; //#[doc(alias = "gst_rtsp_client_handle_message")] //fn handle_message(&self, message: /*Ignored*/&mut gst_rtsp::RTSPMessage) -> gst_rtsp::RTSPResult; @@ -118,13 +118,17 @@ pub trait RTSPClientExt: 'static { #[doc(alias = "gst_rtsp_client_set_thread_pool")] fn set_thread_pool>(&self, pool: Option<&P>); - fn get_property_drop_backlog(&self) -> bool; + #[doc(alias = "get_property_drop_backlog")] + fn is_drop_backlog(&self) -> bool; - fn set_property_drop_backlog(&self, drop_backlog: bool); + #[doc(alias = "set_property_drop_backlog")] + fn set_drop_backlog(&self, drop_backlog: bool); - fn get_property_post_session_timeout(&self) -> i32; + #[doc(alias = "get_property_post_session_timeout")] + fn post_session_timeout(&self) -> i32; - fn set_property_post_session_timeout(&self, post_session_timeout: i32); + #[doc(alias = "set_property_post_session_timeout")] + fn set_post_session_timeout(&self, post_session_timeout: i32); fn connect_announce_request( &self, @@ -310,7 +314,7 @@ impl> RTSPClientExt for O { } } - fn get_auth(&self) -> Option { + fn auth(&self) -> Option { unsafe { from_glib_full(ffi::gst_rtsp_client_get_auth( self.as_ref().to_glib_none().0, @@ -318,17 +322,17 @@ impl> RTSPClientExt for O { } } - //fn get_connection(&self) -> /*Ignored*/Option { + //fn connection(&self) -> /*Ignored*/Option { // unsafe { TODO: call ffi:gst_rtsp_client_get_connection() } //} #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] - fn get_content_length_limit(&self) -> u32 { + fn content_length_limit(&self) -> u32 { unsafe { ffi::gst_rtsp_client_get_content_length_limit(self.as_ref().to_glib_none().0) } } - fn get_mount_points(&self) -> Option { + fn mount_points(&self) -> Option { unsafe { from_glib_full(ffi::gst_rtsp_client_get_mount_points( self.as_ref().to_glib_none().0, @@ -336,7 +340,7 @@ impl> RTSPClientExt for O { } } - fn get_session_pool(&self) -> Option { + fn session_pool(&self) -> Option { unsafe { from_glib_full(ffi::gst_rtsp_client_get_session_pool( self.as_ref().to_glib_none().0, @@ -355,7 +359,7 @@ impl> RTSPClientExt for O { } } - fn get_thread_pool(&self) -> Option { + fn thread_pool(&self) -> Option { unsafe { from_glib_full(ffi::gst_rtsp_client_get_thread_pool( self.as_ref().to_glib_none().0, @@ -470,7 +474,7 @@ impl> RTSPClientExt for O { } } - fn get_property_drop_backlog(&self) -> bool { + fn is_drop_backlog(&self) -> bool { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -485,7 +489,7 @@ impl> RTSPClientExt for O { } } - fn set_property_drop_backlog(&self, drop_backlog: bool) { + fn set_drop_backlog(&self, drop_backlog: bool) { unsafe { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, @@ -495,7 +499,7 @@ impl> RTSPClientExt for O { } } - fn get_property_post_session_timeout(&self) -> i32 { + fn post_session_timeout(&self) -> i32 { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -510,7 +514,7 @@ impl> RTSPClientExt for O { } } - fn set_property_post_session_timeout(&self, post_session_timeout: i32) { + fn set_post_session_timeout(&self, post_session_timeout: i32) { unsafe { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, diff --git a/gstreamer-rtsp-server/src/auto/rtsp_media.rs b/gstreamer-rtsp-server/src/auto/rtsp_media.rs index d607b4a38..b9714e562 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_media.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_media.rs @@ -64,52 +64,52 @@ pub trait RTSPMediaExt: 'static { fn find_stream(&self, control: &str) -> Option; #[doc(alias = "gst_rtsp_media_get_address_pool")] - fn get_address_pool(&self) -> Option; + fn address_pool(&self) -> Option; #[doc(alias = "gst_rtsp_media_get_base_time")] - fn get_base_time(&self) -> gst::ClockTime; + fn base_time(&self) -> gst::ClockTime; #[doc(alias = "gst_rtsp_media_get_buffer_size")] - fn get_buffer_size(&self) -> u32; + fn buffer_size(&self) -> u32; #[doc(alias = "gst_rtsp_media_get_clock")] - fn get_clock(&self) -> Option; + fn clock(&self) -> Option; #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[doc(alias = "gst_rtsp_media_get_do_retransmission")] - fn get_do_retransmission(&self) -> bool; + fn does_retransmission(&self) -> bool; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[doc(alias = "gst_rtsp_media_get_dscp_qos")] - fn get_dscp_qos(&self) -> i32; + fn dscp_qos(&self) -> i32; #[doc(alias = "gst_rtsp_media_get_element")] - fn get_element(&self) -> Option; + fn element(&self) -> Option; #[doc(alias = "gst_rtsp_media_get_latency")] - fn get_latency(&self) -> u32; + fn latency(&self) -> u32; #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[doc(alias = "gst_rtsp_media_get_max_mcast_ttl")] - fn get_max_mcast_ttl(&self) -> u32; + fn max_mcast_ttl(&self) -> u32; #[doc(alias = "gst_rtsp_media_get_multicast_iface")] - fn get_multicast_iface(&self) -> Option; + fn multicast_iface(&self) -> Option; //#[doc(alias = "gst_rtsp_media_get_permissions")] - //fn get_permissions(&self) -> /*Ignored*/Option; + //fn permissions(&self) -> /*Ignored*/Option; #[doc(alias = "gst_rtsp_media_get_profiles")] - fn get_profiles(&self) -> gst_rtsp::RTSPProfile; + fn profiles(&self) -> gst_rtsp::RTSPProfile; #[doc(alias = "gst_rtsp_media_get_protocols")] - fn get_protocols(&self) -> gst_rtsp::RTSPLowerTrans; + fn protocols(&self) -> gst_rtsp::RTSPLowerTrans; #[doc(alias = "gst_rtsp_media_get_publish_clock_mode")] - fn get_publish_clock_mode(&self) -> RTSPPublishClockMode; + fn publish_clock_mode(&self) -> RTSPPublishClockMode; #[doc(alias = "gst_rtsp_media_get_range_string")] fn get_range_string(&self, play: bool, unit: gst_rtsp::RTSPRangeUnit) -> Option; @@ -117,30 +117,30 @@ pub trait RTSPMediaExt: 'static { #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[doc(alias = "gst_rtsp_media_get_rate_control")] - fn get_rate_control(&self) -> bool; + fn is_rate_control(&self) -> bool; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[doc(alias = "gst_rtsp_media_get_rates")] - fn get_rates(&self) -> Option<(f64, f64)>; + fn rates(&self) -> Option<(f64, f64)>; #[doc(alias = "gst_rtsp_media_get_retransmission_time")] - fn get_retransmission_time(&self) -> gst::ClockTime; + fn retransmission_time(&self) -> gst::ClockTime; #[doc(alias = "gst_rtsp_media_get_status")] - fn get_status(&self) -> RTSPMediaStatus; + fn status(&self) -> RTSPMediaStatus; #[doc(alias = "gst_rtsp_media_get_stream")] fn get_stream(&self, idx: u32) -> Option; #[doc(alias = "gst_rtsp_media_get_suspend_mode")] - fn get_suspend_mode(&self) -> RTSPSuspendMode; + fn suspend_mode(&self) -> RTSPSuspendMode; //#[doc(alias = "gst_rtsp_media_get_time_provider")] //fn get_time_provider(&self, address: Option<&str>, port: u16) -> /*Ignored*/Option; #[doc(alias = "gst_rtsp_media_get_transport_mode")] - fn get_transport_mode(&self) -> RTSPTransportMode; + fn transport_mode(&self) -> RTSPTransportMode; //#[doc(alias = "gst_rtsp_media_handle_sdp")] //fn handle_sdp(&self, sdp: /*Ignored*/&mut gst_sdp::SDPMessage) -> bool; @@ -311,19 +311,12 @@ pub trait RTSPMediaExt: 'static { fn set_property_dscp_qos(&self, dscp_qos: i32); - fn get_property_eos_shutdown(&self) -> bool; - fn get_property_max_mcast_ttl(&self) -> u32; fn set_property_max_mcast_ttl(&self, max_mcast_ttl: u32); - fn get_property_reusable(&self) -> bool; - - fn get_property_shared(&self) -> bool; - - fn get_property_stop_on_disconnect(&self) -> bool; - - fn set_property_time_provider(&self, time_provider: bool); + #[doc(alias = "set_property_time_provider")] + fn set_time_provider(&self, time_provider: bool); fn connect_new_state(&self, f: F) -> SignalHandlerId; @@ -459,7 +452,7 @@ impl> RTSPMediaExt for O { } } - fn get_address_pool(&self) -> Option { + fn address_pool(&self) -> Option { unsafe { from_glib_full(ffi::gst_rtsp_media_get_address_pool( self.as_ref().to_glib_none().0, @@ -467,7 +460,7 @@ impl> RTSPMediaExt for O { } } - fn get_base_time(&self) -> gst::ClockTime { + fn base_time(&self) -> gst::ClockTime { unsafe { from_glib(ffi::gst_rtsp_media_get_base_time( self.as_ref().to_glib_none().0, @@ -475,11 +468,11 @@ impl> RTSPMediaExt for O { } } - fn get_buffer_size(&self) -> u32 { + fn buffer_size(&self) -> u32 { unsafe { ffi::gst_rtsp_media_get_buffer_size(self.as_ref().to_glib_none().0) } } - fn get_clock(&self) -> Option { + fn clock(&self) -> Option { unsafe { from_glib_full(ffi::gst_rtsp_media_get_clock( self.as_ref().to_glib_none().0, @@ -489,7 +482,7 @@ impl> RTSPMediaExt for O { #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] - fn get_do_retransmission(&self) -> bool { + fn does_retransmission(&self) -> bool { unsafe { from_glib(ffi::gst_rtsp_media_get_do_retransmission( self.as_ref().to_glib_none().0, @@ -499,11 +492,11 @@ impl> RTSPMediaExt for O { #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] - fn get_dscp_qos(&self) -> i32 { + fn dscp_qos(&self) -> i32 { unsafe { ffi::gst_rtsp_media_get_dscp_qos(self.as_ref().to_glib_none().0) } } - fn get_element(&self) -> Option { + fn element(&self) -> Option { unsafe { from_glib_full(ffi::gst_rtsp_media_get_element( self.as_ref().to_glib_none().0, @@ -511,17 +504,17 @@ impl> RTSPMediaExt for O { } } - fn get_latency(&self) -> u32 { + fn latency(&self) -> u32 { unsafe { ffi::gst_rtsp_media_get_latency(self.as_ref().to_glib_none().0) } } #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] - fn get_max_mcast_ttl(&self) -> u32 { + fn max_mcast_ttl(&self) -> u32 { unsafe { ffi::gst_rtsp_media_get_max_mcast_ttl(self.as_ref().to_glib_none().0) } } - fn get_multicast_iface(&self) -> Option { + fn multicast_iface(&self) -> Option { unsafe { from_glib_full(ffi::gst_rtsp_media_get_multicast_iface( self.as_ref().to_glib_none().0, @@ -529,11 +522,11 @@ impl> RTSPMediaExt for O { } } - //fn get_permissions(&self) -> /*Ignored*/Option { + //fn permissions(&self) -> /*Ignored*/Option { // unsafe { TODO: call ffi:gst_rtsp_media_get_permissions() } //} - fn get_profiles(&self) -> gst_rtsp::RTSPProfile { + fn profiles(&self) -> gst_rtsp::RTSPProfile { unsafe { from_glib(ffi::gst_rtsp_media_get_profiles( self.as_ref().to_glib_none().0, @@ -541,7 +534,7 @@ impl> RTSPMediaExt for O { } } - fn get_protocols(&self) -> gst_rtsp::RTSPLowerTrans { + fn protocols(&self) -> gst_rtsp::RTSPLowerTrans { unsafe { from_glib(ffi::gst_rtsp_media_get_protocols( self.as_ref().to_glib_none().0, @@ -549,7 +542,7 @@ impl> RTSPMediaExt for O { } } - fn get_publish_clock_mode(&self) -> RTSPPublishClockMode { + fn publish_clock_mode(&self) -> RTSPPublishClockMode { unsafe { from_glib(ffi::gst_rtsp_media_get_publish_clock_mode( self.as_ref().to_glib_none().0, @@ -569,7 +562,7 @@ impl> RTSPMediaExt for O { #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] - fn get_rate_control(&self) -> bool { + fn is_rate_control(&self) -> bool { unsafe { from_glib(ffi::gst_rtsp_media_get_rate_control( self.as_ref().to_glib_none().0, @@ -579,7 +572,7 @@ impl> RTSPMediaExt for O { #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] - fn get_rates(&self) -> Option<(f64, f64)> { + fn rates(&self) -> Option<(f64, f64)> { unsafe { let mut rate = mem::MaybeUninit::uninit(); let mut applied_rate = mem::MaybeUninit::uninit(); @@ -598,7 +591,7 @@ impl> RTSPMediaExt for O { } } - fn get_retransmission_time(&self) -> gst::ClockTime { + fn retransmission_time(&self) -> gst::ClockTime { unsafe { from_glib(ffi::gst_rtsp_media_get_retransmission_time( self.as_ref().to_glib_none().0, @@ -606,7 +599,7 @@ impl> RTSPMediaExt for O { } } - fn get_status(&self) -> RTSPMediaStatus { + fn status(&self) -> RTSPMediaStatus { unsafe { from_glib(ffi::gst_rtsp_media_get_status( self.as_ref().to_glib_none().0, @@ -623,7 +616,7 @@ impl> RTSPMediaExt for O { } } - fn get_suspend_mode(&self) -> RTSPSuspendMode { + fn suspend_mode(&self) -> RTSPSuspendMode { unsafe { from_glib(ffi::gst_rtsp_media_get_suspend_mode( self.as_ref().to_glib_none().0, @@ -635,7 +628,7 @@ impl> RTSPMediaExt for O { // unsafe { TODO: call ffi:gst_rtsp_media_get_time_provider() } //} - fn get_transport_mode(&self) -> RTSPTransportMode { + fn transport_mode(&self) -> RTSPTransportMode { unsafe { from_glib(ffi::gst_rtsp_media_get_transport_mode( self.as_ref().to_glib_none().0, @@ -1038,21 +1031,6 @@ impl> RTSPMediaExt for O { } } - fn get_property_eos_shutdown(&self) -> bool { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"eos-shutdown\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `eos-shutdown` getter") - .unwrap() - } - } - fn get_property_max_mcast_ttl(&self) -> u32 { unsafe { let mut value = glib::Value::from_type(::static_type()); @@ -1078,52 +1056,7 @@ impl> RTSPMediaExt for O { } } - fn get_property_reusable(&self) -> bool { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"reusable\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `reusable` getter") - .unwrap() - } - } - - fn get_property_shared(&self) -> bool { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"shared\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `shared` getter") - .unwrap() - } - } - - fn get_property_stop_on_disconnect(&self) -> bool { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"stop-on-disconnect\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `stop-on-disconnect` getter") - .unwrap() - } - } - - fn set_property_time_provider(&self, time_provider: bool) { + fn set_time_provider(&self, time_provider: bool) { unsafe { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, diff --git a/gstreamer-rtsp-server/src/auto/rtsp_media_factory.rs b/gstreamer-rtsp-server/src/auto/rtsp_media_factory.rs index 51d469a9d..852e1c42e 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_media_factory.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_media_factory.rs @@ -55,61 +55,61 @@ pub trait RTSPMediaFactoryExt: 'static { fn create_element(&self, url: &gst_rtsp::RTSPUrl) -> Result; #[doc(alias = "gst_rtsp_media_factory_get_address_pool")] - fn get_address_pool(&self) -> Option; + fn address_pool(&self) -> Option; #[doc(alias = "gst_rtsp_media_factory_get_buffer_size")] - fn get_buffer_size(&self) -> u32; + fn buffer_size(&self) -> u32; #[doc(alias = "gst_rtsp_media_factory_get_clock")] - fn get_clock(&self) -> Option; + fn clock(&self) -> Option; #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[doc(alias = "gst_rtsp_media_factory_get_do_retransmission")] - fn get_do_retransmission(&self) -> bool; + fn does_retransmission(&self) -> bool; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[doc(alias = "gst_rtsp_media_factory_get_dscp_qos")] - fn get_dscp_qos(&self) -> i32; + fn dscp_qos(&self) -> i32; #[doc(alias = "gst_rtsp_media_factory_get_latency")] - fn get_latency(&self) -> u32; + fn latency(&self) -> u32; #[doc(alias = "gst_rtsp_media_factory_get_launch")] - fn get_launch(&self) -> Option; + fn launch(&self) -> Option; #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[doc(alias = "gst_rtsp_media_factory_get_max_mcast_ttl")] - fn get_max_mcast_ttl(&self) -> u32; + fn max_mcast_ttl(&self) -> u32; #[doc(alias = "gst_rtsp_media_factory_get_media_gtype")] - fn get_media_gtype(&self) -> glib::types::Type; + fn media_gtype(&self) -> glib::types::Type; #[doc(alias = "gst_rtsp_media_factory_get_multicast_iface")] - fn get_multicast_iface(&self) -> Option; + fn multicast_iface(&self) -> Option; //#[doc(alias = "gst_rtsp_media_factory_get_permissions")] - //fn get_permissions(&self) -> /*Ignored*/Option; + //fn permissions(&self) -> /*Ignored*/Option; #[doc(alias = "gst_rtsp_media_factory_get_profiles")] - fn get_profiles(&self) -> gst_rtsp::RTSPProfile; + fn profiles(&self) -> gst_rtsp::RTSPProfile; #[doc(alias = "gst_rtsp_media_factory_get_protocols")] - fn get_protocols(&self) -> gst_rtsp::RTSPLowerTrans; + fn protocols(&self) -> gst_rtsp::RTSPLowerTrans; #[doc(alias = "gst_rtsp_media_factory_get_publish_clock_mode")] - fn get_publish_clock_mode(&self) -> RTSPPublishClockMode; + fn publish_clock_mode(&self) -> RTSPPublishClockMode; #[doc(alias = "gst_rtsp_media_factory_get_retransmission_time")] - fn get_retransmission_time(&self) -> gst::ClockTime; + fn retransmission_time(&self) -> gst::ClockTime; #[doc(alias = "gst_rtsp_media_factory_get_suspend_mode")] - fn get_suspend_mode(&self) -> RTSPSuspendMode; + fn suspend_mode(&self) -> RTSPSuspendMode; #[doc(alias = "gst_rtsp_media_factory_get_transport_mode")] - fn get_transport_mode(&self) -> RTSPTransportMode; + fn transport_mode(&self) -> RTSPTransportMode; #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] @@ -204,15 +204,12 @@ pub trait RTSPMediaFactoryExt: 'static { fn set_property_dscp_qos(&self, dscp_qos: i32); - fn get_property_eos_shutdown(&self) -> bool; - fn get_property_max_mcast_ttl(&self) -> u32; fn set_property_max_mcast_ttl(&self, max_mcast_ttl: u32); - fn get_property_shared(&self) -> bool; - - fn get_property_stop_on_disconnect(&self) -> bool; + #[doc(alias = "get_property_stop_on_disconnect")] + fn is_stop_on_disconnect(&self) -> bool; fn connect_media_configure( &self, @@ -320,7 +317,7 @@ impl> RTSPMediaFactoryExt for O { } } - fn get_address_pool(&self) -> Option { + fn address_pool(&self) -> Option { unsafe { from_glib_full(ffi::gst_rtsp_media_factory_get_address_pool( self.as_ref().to_glib_none().0, @@ -328,11 +325,11 @@ impl> RTSPMediaFactoryExt for O { } } - fn get_buffer_size(&self) -> u32 { + fn buffer_size(&self) -> u32 { unsafe { ffi::gst_rtsp_media_factory_get_buffer_size(self.as_ref().to_glib_none().0) } } - fn get_clock(&self) -> Option { + fn clock(&self) -> Option { unsafe { from_glib_full(ffi::gst_rtsp_media_factory_get_clock( self.as_ref().to_glib_none().0, @@ -342,7 +339,7 @@ impl> RTSPMediaFactoryExt for O { #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] - fn get_do_retransmission(&self) -> bool { + fn does_retransmission(&self) -> bool { unsafe { from_glib(ffi::gst_rtsp_media_factory_get_do_retransmission( self.as_ref().to_glib_none().0, @@ -352,15 +349,15 @@ impl> RTSPMediaFactoryExt for O { #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] - fn get_dscp_qos(&self) -> i32 { + fn dscp_qos(&self) -> i32 { unsafe { ffi::gst_rtsp_media_factory_get_dscp_qos(self.as_ref().to_glib_none().0) } } - fn get_latency(&self) -> u32 { + fn latency(&self) -> u32 { unsafe { ffi::gst_rtsp_media_factory_get_latency(self.as_ref().to_glib_none().0) } } - fn get_launch(&self) -> Option { + fn launch(&self) -> Option { unsafe { from_glib_full(ffi::gst_rtsp_media_factory_get_launch( self.as_ref().to_glib_none().0, @@ -370,11 +367,11 @@ impl> RTSPMediaFactoryExt for O { #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] - fn get_max_mcast_ttl(&self) -> u32 { + fn max_mcast_ttl(&self) -> u32 { unsafe { ffi::gst_rtsp_media_factory_get_max_mcast_ttl(self.as_ref().to_glib_none().0) } } - fn get_media_gtype(&self) -> glib::types::Type { + fn media_gtype(&self) -> glib::types::Type { unsafe { from_glib(ffi::gst_rtsp_media_factory_get_media_gtype( self.as_ref().to_glib_none().0, @@ -382,7 +379,7 @@ impl> RTSPMediaFactoryExt for O { } } - fn get_multicast_iface(&self) -> Option { + fn multicast_iface(&self) -> Option { unsafe { from_glib_full(ffi::gst_rtsp_media_factory_get_multicast_iface( self.as_ref().to_glib_none().0, @@ -390,11 +387,11 @@ impl> RTSPMediaFactoryExt for O { } } - //fn get_permissions(&self) -> /*Ignored*/Option { + //fn permissions(&self) -> /*Ignored*/Option { // unsafe { TODO: call ffi:gst_rtsp_media_factory_get_permissions() } //} - fn get_profiles(&self) -> gst_rtsp::RTSPProfile { + fn profiles(&self) -> gst_rtsp::RTSPProfile { unsafe { from_glib(ffi::gst_rtsp_media_factory_get_profiles( self.as_ref().to_glib_none().0, @@ -402,7 +399,7 @@ impl> RTSPMediaFactoryExt for O { } } - fn get_protocols(&self) -> gst_rtsp::RTSPLowerTrans { + fn protocols(&self) -> gst_rtsp::RTSPLowerTrans { unsafe { from_glib(ffi::gst_rtsp_media_factory_get_protocols( self.as_ref().to_glib_none().0, @@ -410,7 +407,7 @@ impl> RTSPMediaFactoryExt for O { } } - fn get_publish_clock_mode(&self) -> RTSPPublishClockMode { + fn publish_clock_mode(&self) -> RTSPPublishClockMode { unsafe { from_glib(ffi::gst_rtsp_media_factory_get_publish_clock_mode( self.as_ref().to_glib_none().0, @@ -418,7 +415,7 @@ impl> RTSPMediaFactoryExt for O { } } - fn get_retransmission_time(&self) -> gst::ClockTime { + fn retransmission_time(&self) -> gst::ClockTime { unsafe { from_glib(ffi::gst_rtsp_media_factory_get_retransmission_time( self.as_ref().to_glib_none().0, @@ -426,7 +423,7 @@ impl> RTSPMediaFactoryExt for O { } } - fn get_suspend_mode(&self) -> RTSPSuspendMode { + fn suspend_mode(&self) -> RTSPSuspendMode { unsafe { from_glib(ffi::gst_rtsp_media_factory_get_suspend_mode( self.as_ref().to_glib_none().0, @@ -434,7 +431,7 @@ impl> RTSPMediaFactoryExt for O { } } - fn get_transport_mode(&self) -> RTSPTransportMode { + fn transport_mode(&self) -> RTSPTransportMode { unsafe { from_glib(ffi::gst_rtsp_media_factory_get_transport_mode( self.as_ref().to_glib_none().0, @@ -709,21 +706,6 @@ impl> RTSPMediaFactoryExt for O { } } - fn get_property_eos_shutdown(&self) -> bool { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"eos-shutdown\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `eos-shutdown` getter") - .unwrap() - } - } - fn get_property_max_mcast_ttl(&self) -> u32 { unsafe { let mut value = glib::Value::from_type(::static_type()); @@ -749,22 +731,7 @@ impl> RTSPMediaFactoryExt for O { } } - fn get_property_shared(&self) -> bool { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"shared\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `shared` getter") - .unwrap() - } - } - - fn get_property_stop_on_disconnect(&self) -> bool { + fn is_stop_on_disconnect(&self) -> bool { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( diff --git a/gstreamer-rtsp-server/src/auto/rtsp_media_factory_uri.rs b/gstreamer-rtsp-server/src/auto/rtsp_media_factory_uri.rs index be4fc7e62..a1648f61d 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_media_factory_uri.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_media_factory_uri.rs @@ -42,14 +42,16 @@ pub const NONE_RTSP_MEDIA_FACTORY_URI: Option<&RTSPMediaFactoryURI> = None; pub trait RTSPMediaFactoryURIExt: 'static { #[doc(alias = "gst_rtsp_media_factory_uri_get_uri")] - fn get_uri(&self) -> Option; + fn uri(&self) -> Option; #[doc(alias = "gst_rtsp_media_factory_uri_set_uri")] fn set_uri(&self, uri: &str); - fn get_property_use_gstpay(&self) -> bool; + #[doc(alias = "get_property_use_gstpay")] + fn uses_gstpay(&self) -> bool; - fn set_property_use_gstpay(&self, use_gstpay: bool); + #[doc(alias = "set_property_use_gstpay")] + fn set_use_gstpay(&self, use_gstpay: bool); fn connect_property_uri_notify( &self, @@ -63,7 +65,7 @@ pub trait RTSPMediaFactoryURIExt: 'static { } impl> RTSPMediaFactoryURIExt for O { - fn get_uri(&self) -> Option { + fn uri(&self) -> Option { unsafe { from_glib_full(ffi::gst_rtsp_media_factory_uri_get_uri( self.as_ref().to_glib_none().0, @@ -80,7 +82,7 @@ impl> RTSPMediaFactoryURIExt for O { } } - fn get_property_use_gstpay(&self) -> bool { + fn uses_gstpay(&self) -> bool { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -95,7 +97,7 @@ impl> RTSPMediaFactoryURIExt for O { } } - fn set_property_use_gstpay(&self, use_gstpay: bool) { + fn set_use_gstpay(&self, use_gstpay: bool) { unsafe { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, diff --git a/gstreamer-rtsp-server/src/auto/rtsp_server.rs b/gstreamer-rtsp-server/src/auto/rtsp_server.rs index 63777f27b..8e859ae40 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_server.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_server.rs @@ -85,33 +85,33 @@ pub trait RTSPServerExt: 'static { ) -> Result; #[doc(alias = "gst_rtsp_server_get_address")] - fn get_address(&self) -> Option; + fn address(&self) -> Option; #[doc(alias = "gst_rtsp_server_get_auth")] - fn get_auth(&self) -> Option; + fn auth(&self) -> Option; #[doc(alias = "gst_rtsp_server_get_backlog")] - fn get_backlog(&self) -> i32; + fn backlog(&self) -> i32; #[doc(alias = "gst_rtsp_server_get_bound_port")] - fn get_bound_port(&self) -> i32; + fn bound_port(&self) -> i32; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[doc(alias = "gst_rtsp_server_get_content_length_limit")] - fn get_content_length_limit(&self) -> u32; + fn content_length_limit(&self) -> u32; #[doc(alias = "gst_rtsp_server_get_mount_points")] - fn get_mount_points(&self) -> Option; + fn mount_points(&self) -> Option; #[doc(alias = "gst_rtsp_server_get_service")] - fn get_service(&self) -> Option; + fn service(&self) -> Option; #[doc(alias = "gst_rtsp_server_get_session_pool")] - fn get_session_pool(&self) -> Option; + fn session_pool(&self) -> Option; #[doc(alias = "gst_rtsp_server_get_thread_pool")] - fn get_thread_pool(&self) -> Option; + fn thread_pool(&self) -> Option; #[doc(alias = "gst_rtsp_server_set_address")] fn set_address(&self, address: &str); @@ -273,7 +273,7 @@ impl> RTSPServerExt for O { } } - fn get_address(&self) -> Option { + fn address(&self) -> Option { unsafe { from_glib_full(ffi::gst_rtsp_server_get_address( self.as_ref().to_glib_none().0, @@ -281,7 +281,7 @@ impl> RTSPServerExt for O { } } - fn get_auth(&self) -> Option { + fn auth(&self) -> Option { unsafe { from_glib_full(ffi::gst_rtsp_server_get_auth( self.as_ref().to_glib_none().0, @@ -289,21 +289,21 @@ impl> RTSPServerExt for O { } } - fn get_backlog(&self) -> i32 { + fn backlog(&self) -> i32 { unsafe { ffi::gst_rtsp_server_get_backlog(self.as_ref().to_glib_none().0) } } - fn get_bound_port(&self) -> i32 { + fn bound_port(&self) -> i32 { unsafe { ffi::gst_rtsp_server_get_bound_port(self.as_ref().to_glib_none().0) } } #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] - fn get_content_length_limit(&self) -> u32 { + fn content_length_limit(&self) -> u32 { unsafe { ffi::gst_rtsp_server_get_content_length_limit(self.as_ref().to_glib_none().0) } } - fn get_mount_points(&self) -> Option { + fn mount_points(&self) -> Option { unsafe { from_glib_full(ffi::gst_rtsp_server_get_mount_points( self.as_ref().to_glib_none().0, @@ -311,7 +311,7 @@ impl> RTSPServerExt for O { } } - fn get_service(&self) -> Option { + fn service(&self) -> Option { unsafe { from_glib_full(ffi::gst_rtsp_server_get_service( self.as_ref().to_glib_none().0, @@ -319,7 +319,7 @@ impl> RTSPServerExt for O { } } - fn get_session_pool(&self) -> Option { + fn session_pool(&self) -> Option { unsafe { from_glib_full(ffi::gst_rtsp_server_get_session_pool( self.as_ref().to_glib_none().0, @@ -327,7 +327,7 @@ impl> RTSPServerExt for O { } } - fn get_thread_pool(&self) -> Option { + fn thread_pool(&self) -> Option { unsafe { from_glib_full(ffi::gst_rtsp_server_get_thread_pool( self.as_ref().to_glib_none().0, diff --git a/gstreamer-rtsp-server/src/auto/rtsp_session.rs b/gstreamer-rtsp-server/src/auto/rtsp_session.rs index 8a94df6ca..3ddfd8bc7 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_session.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_session.rs @@ -48,16 +48,16 @@ pub trait RTSPSessionExt: 'static { ) -> Vec; #[doc(alias = "gst_rtsp_session_get_header")] - fn get_header(&self) -> Option; + fn header(&self) -> Option; #[doc(alias = "gst_rtsp_session_get_media")] fn get_media(&self, path: &str) -> (Option, i32); #[doc(alias = "gst_rtsp_session_get_sessionid")] - fn get_sessionid(&self) -> Option; + fn sessionid(&self) -> Option; #[doc(alias = "gst_rtsp_session_get_timeout")] - fn get_timeout(&self) -> u32; + fn timeout(&self) -> u32; //#[doc(alias = "gst_rtsp_session_is_expired")] //fn is_expired(&self, now: /*Ignored*/&mut glib::TimeVal) -> bool; @@ -90,13 +90,17 @@ pub trait RTSPSessionExt: 'static { #[doc(alias = "gst_rtsp_session_touch")] fn touch(&self); - fn get_property_extra_timeout(&self) -> u32; + #[doc(alias = "get_property_extra_timeout")] + fn extra_timeout(&self) -> u32; - fn set_property_extra_timeout(&self, extra_timeout: u32); + #[doc(alias = "set_property_extra_timeout")] + fn set_extra_timeout(&self, extra_timeout: u32); - fn get_property_timeout_always_visible(&self) -> bool; + #[doc(alias = "get_property_timeout_always_visible")] + fn is_timeout_always_visible(&self) -> bool; - fn set_property_timeout_always_visible(&self, timeout_always_visible: bool); + #[doc(alias = "set_property_timeout_always_visible")] + fn set_timeout_always_visible(&self, timeout_always_visible: bool); fn connect_property_extra_timeout_notify( &self, @@ -165,7 +169,7 @@ impl> RTSPSessionExt for O { } } - fn get_header(&self) -> Option { + fn header(&self) -> Option { unsafe { from_glib_full(ffi::gst_rtsp_session_get_header( self.as_ref().to_glib_none().0, @@ -186,7 +190,7 @@ impl> RTSPSessionExt for O { } } - fn get_sessionid(&self) -> Option { + fn sessionid(&self) -> Option { unsafe { from_glib_none(ffi::gst_rtsp_session_get_sessionid( self.as_ref().to_glib_none().0, @@ -194,7 +198,7 @@ impl> RTSPSessionExt for O { } } - fn get_timeout(&self) -> u32 { + fn timeout(&self) -> u32 { unsafe { ffi::gst_rtsp_session_get_timeout(self.as_ref().to_glib_none().0) } } @@ -261,7 +265,7 @@ impl> RTSPSessionExt for O { } } - fn get_property_extra_timeout(&self) -> u32 { + fn extra_timeout(&self) -> u32 { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -276,7 +280,7 @@ impl> RTSPSessionExt for O { } } - fn set_property_extra_timeout(&self, extra_timeout: u32) { + fn set_extra_timeout(&self, extra_timeout: u32) { unsafe { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, @@ -286,7 +290,7 @@ impl> RTSPSessionExt for O { } } - fn get_property_timeout_always_visible(&self) -> bool { + fn is_timeout_always_visible(&self) -> bool { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -301,7 +305,7 @@ impl> RTSPSessionExt for O { } } - fn set_property_timeout_always_visible(&self, timeout_always_visible: bool) { + fn set_timeout_always_visible(&self, timeout_always_visible: bool) { unsafe { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, diff --git a/gstreamer-rtsp-server/src/auto/rtsp_session_media.rs b/gstreamer-rtsp-server/src/auto/rtsp_session_media.rs index 13a44a25f..79c159db2 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_session_media.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_session_media.rs @@ -40,16 +40,16 @@ pub trait RTSPSessionMediaExt: 'static { //fn alloc_channels(&self, range: /*Ignored*/gst_rtsp::RTSPRange) -> bool; #[doc(alias = "gst_rtsp_session_media_get_base_time")] - fn get_base_time(&self) -> gst::ClockTime; + fn base_time(&self) -> gst::ClockTime; #[doc(alias = "gst_rtsp_session_media_get_media")] - fn get_media(&self) -> Option; + fn media(&self) -> Option; #[doc(alias = "gst_rtsp_session_media_get_rtpinfo")] - fn get_rtpinfo(&self) -> Option; + fn rtpinfo(&self) -> Option; //#[doc(alias = "gst_rtsp_session_media_get_rtsp_state")] - //fn get_rtsp_state(&self) -> /*Ignored*/gst_rtsp::RTSPState; + //fn rtsp_state(&self) -> /*Ignored*/gst_rtsp::RTSPState; #[doc(alias = "gst_rtsp_session_media_get_transport")] fn get_transport(&self, idx: u32) -> Option; @@ -57,7 +57,7 @@ pub trait RTSPSessionMediaExt: 'static { #[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[doc(alias = "gst_rtsp_session_media_get_transports")] - fn get_transports(&self) -> Vec; + fn transports(&self) -> Vec; #[doc(alias = "gst_rtsp_session_media_matches")] fn matches(&self, path: &str) -> Option; @@ -77,7 +77,7 @@ impl> RTSPSessionMediaExt for O { // unsafe { TODO: call ffi:gst_rtsp_session_media_alloc_channels() } //} - fn get_base_time(&self) -> gst::ClockTime { + fn base_time(&self) -> gst::ClockTime { unsafe { from_glib(ffi::gst_rtsp_session_media_get_base_time( self.as_ref().to_glib_none().0, @@ -85,7 +85,7 @@ impl> RTSPSessionMediaExt for O { } } - fn get_media(&self) -> Option { + fn media(&self) -> Option { unsafe { from_glib_none(ffi::gst_rtsp_session_media_get_media( self.as_ref().to_glib_none().0, @@ -93,7 +93,7 @@ impl> RTSPSessionMediaExt for O { } } - fn get_rtpinfo(&self) -> Option { + fn rtpinfo(&self) -> Option { unsafe { from_glib_full(ffi::gst_rtsp_session_media_get_rtpinfo( self.as_ref().to_glib_none().0, @@ -101,7 +101,7 @@ impl> RTSPSessionMediaExt for O { } } - //fn get_rtsp_state(&self) -> /*Ignored*/gst_rtsp::RTSPState { + //fn rtsp_state(&self) -> /*Ignored*/gst_rtsp::RTSPState { // unsafe { TODO: call ffi:gst_rtsp_session_media_get_rtsp_state() } //} @@ -116,7 +116,7 @@ impl> RTSPSessionMediaExt for O { #[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] - fn get_transports(&self) -> Vec { + fn transports(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_full(ffi::gst_rtsp_session_media_get_transports( self.as_ref().to_glib_none().0, diff --git a/gstreamer-rtsp-server/src/auto/rtsp_session_pool.rs b/gstreamer-rtsp-server/src/auto/rtsp_session_pool.rs index dcd3384de..11690ba9b 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_session_pool.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_session_pool.rs @@ -57,10 +57,10 @@ pub trait RTSPSessionPoolExt: 'static { fn find(&self, sessionid: &str) -> Option; #[doc(alias = "gst_rtsp_session_pool_get_max_sessions")] - fn get_max_sessions(&self) -> u32; + fn max_sessions(&self) -> u32; #[doc(alias = "gst_rtsp_session_pool_get_n_sessions")] - fn get_n_sessions(&self) -> u32; + fn n_sessions(&self) -> u32; #[doc(alias = "gst_rtsp_session_pool_remove")] fn remove>(&self, sess: &P) -> Result<(), glib::error::BoolError>; @@ -146,11 +146,11 @@ impl> RTSPSessionPoolExt for O { } } - fn get_max_sessions(&self) -> u32 { + fn max_sessions(&self) -> u32 { unsafe { ffi::gst_rtsp_session_pool_get_max_sessions(self.as_ref().to_glib_none().0) } } - fn get_n_sessions(&self) -> u32 { + fn n_sessions(&self) -> u32 { unsafe { ffi::gst_rtsp_session_pool_get_n_sessions(self.as_ref().to_glib_none().0) } } diff --git a/gstreamer-rtsp-server/src/auto/rtsp_stream.rs b/gstreamer-rtsp-server/src/auto/rtsp_stream.rs index f83c6fa8f..8242142f5 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_stream.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_stream.rs @@ -75,36 +75,36 @@ pub trait RTSPStreamExt: 'static { //fn complete_stream(&self, transport: /*Ignored*/&gst_rtsp::RTSPTransport) -> bool; #[doc(alias = "gst_rtsp_stream_get_address_pool")] - fn get_address_pool(&self) -> Option; + fn address_pool(&self) -> Option; #[doc(alias = "gst_rtsp_stream_get_buffer_size")] - fn get_buffer_size(&self) -> u32; + fn buffer_size(&self) -> u32; #[doc(alias = "gst_rtsp_stream_get_caps")] - fn get_caps(&self) -> Option; + fn caps(&self) -> Option; #[doc(alias = "gst_rtsp_stream_get_control")] - fn get_control(&self) -> Option; + fn control(&self) -> Option; #[doc(alias = "gst_rtsp_stream_get_current_seqnum")] - fn get_current_seqnum(&self) -> u16; + fn current_seqnum(&self) -> u16; #[doc(alias = "gst_rtsp_stream_get_dscp_qos")] - fn get_dscp_qos(&self) -> i32; + fn dscp_qos(&self) -> i32; #[doc(alias = "gst_rtsp_stream_get_index")] - fn get_index(&self) -> u32; + fn index(&self) -> u32; #[doc(alias = "gst_rtsp_stream_get_joined_bin")] - fn get_joined_bin(&self) -> Option; + fn joined_bin(&self) -> Option; #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[doc(alias = "gst_rtsp_stream_get_max_mcast_ttl")] - fn get_max_mcast_ttl(&self) -> u32; + fn max_mcast_ttl(&self) -> u32; #[doc(alias = "gst_rtsp_stream_get_mtu")] - fn get_mtu(&self) -> u32; + fn mtu(&self) -> u32; #[doc(alias = "gst_rtsp_stream_get_multicast_address")] fn get_multicast_address(&self, family: gio::SocketFamily) -> Option; @@ -112,38 +112,38 @@ pub trait RTSPStreamExt: 'static { #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[doc(alias = "gst_rtsp_stream_get_multicast_client_addresses")] - fn get_multicast_client_addresses(&self) -> Option; + fn multicast_client_addresses(&self) -> Option; #[doc(alias = "gst_rtsp_stream_get_multicast_iface")] - fn get_multicast_iface(&self) -> Option; + fn multicast_iface(&self) -> Option; #[doc(alias = "gst_rtsp_stream_get_profiles")] - fn get_profiles(&self) -> gst_rtsp::RTSPProfile; + fn profiles(&self) -> gst_rtsp::RTSPProfile; #[doc(alias = "gst_rtsp_stream_get_protocols")] - fn get_protocols(&self) -> gst_rtsp::RTSPLowerTrans; + fn protocols(&self) -> gst_rtsp::RTSPLowerTrans; #[doc(alias = "gst_rtsp_stream_get_pt")] - fn get_pt(&self) -> u32; + fn pt(&self) -> u32; #[doc(alias = "gst_rtsp_stream_get_publish_clock_mode")] - fn get_publish_clock_mode(&self) -> RTSPPublishClockMode; + fn publish_clock_mode(&self) -> RTSPPublishClockMode; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[doc(alias = "gst_rtsp_stream_get_rate_control")] - fn get_rate_control(&self) -> bool; + fn is_rate_control(&self) -> bool; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[doc(alias = "gst_rtsp_stream_get_rates")] - fn get_rates(&self) -> Option<(f64, f64)>; + fn rates(&self) -> Option<(f64, f64)>; #[doc(alias = "gst_rtsp_stream_get_retransmission_pt")] - fn get_retransmission_pt(&self) -> u32; + fn retransmission_pt(&self) -> u32; #[doc(alias = "gst_rtsp_stream_get_retransmission_time")] - fn get_retransmission_time(&self) -> gst::ClockTime; + fn retransmission_time(&self) -> gst::ClockTime; #[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] @@ -160,38 +160,38 @@ pub trait RTSPStreamExt: 'static { fn get_rtp_socket(&self, family: gio::SocketFamily) -> Option; #[doc(alias = "gst_rtsp_stream_get_rtpinfo")] - fn get_rtpinfo(&self) -> Option<(u32, u32, u32, gst::ClockTime)>; + fn rtpinfo(&self) -> Option<(u32, u32, u32, gst::ClockTime)>; #[doc(alias = "gst_rtsp_stream_get_rtpsession")] - fn get_rtpsession(&self) -> Option; + fn rtpsession(&self) -> Option; //#[doc(alias = "gst_rtsp_stream_get_server_port")] //fn get_server_port(&self, server_port: /*Ignored*/gst_rtsp::RTSPRange, family: gio::SocketFamily); #[doc(alias = "gst_rtsp_stream_get_sinkpad")] - fn get_sinkpad(&self) -> Option; + fn sinkpad(&self) -> Option; #[doc(alias = "gst_rtsp_stream_get_srcpad")] - fn get_srcpad(&self) -> Option; + fn srcpad(&self) -> Option; #[doc(alias = "gst_rtsp_stream_get_srtp_encoder")] - fn get_srtp_encoder(&self) -> Option; + fn srtp_encoder(&self) -> Option; #[doc(alias = "gst_rtsp_stream_get_ssrc")] - fn get_ssrc(&self) -> u32; + fn ssrc(&self) -> u32; #[doc(alias = "gst_rtsp_stream_get_ulpfec_enabled")] - fn get_ulpfec_enabled(&self) -> bool; + fn is_ulpfec_enabled(&self) -> bool; #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[doc(alias = "gst_rtsp_stream_get_ulpfec_percentage")] - fn get_ulpfec_percentage(&self) -> u32; + fn ulpfec_percentage(&self) -> u32; #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[doc(alias = "gst_rtsp_stream_get_ulpfec_pt")] - fn get_ulpfec_pt(&self) -> u32; + fn ulpfec_pt(&self) -> u32; #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] @@ -455,7 +455,7 @@ impl> RTSPStreamExt for O { // unsafe { TODO: call ffi:gst_rtsp_stream_complete_stream() } //} - fn get_address_pool(&self) -> Option { + fn address_pool(&self) -> Option { unsafe { from_glib_full(ffi::gst_rtsp_stream_get_address_pool( self.as_ref().to_glib_none().0, @@ -463,11 +463,11 @@ impl> RTSPStreamExt for O { } } - fn get_buffer_size(&self) -> u32 { + fn buffer_size(&self) -> u32 { unsafe { ffi::gst_rtsp_stream_get_buffer_size(self.as_ref().to_glib_none().0) } } - fn get_caps(&self) -> Option { + fn caps(&self) -> Option { unsafe { from_glib_full(ffi::gst_rtsp_stream_get_caps( self.as_ref().to_glib_none().0, @@ -475,7 +475,7 @@ impl> RTSPStreamExt for O { } } - fn get_control(&self) -> Option { + fn control(&self) -> Option { unsafe { from_glib_full(ffi::gst_rtsp_stream_get_control( self.as_ref().to_glib_none().0, @@ -483,19 +483,19 @@ impl> RTSPStreamExt for O { } } - fn get_current_seqnum(&self) -> u16 { + fn current_seqnum(&self) -> u16 { unsafe { ffi::gst_rtsp_stream_get_current_seqnum(self.as_ref().to_glib_none().0) } } - fn get_dscp_qos(&self) -> i32 { + fn dscp_qos(&self) -> i32 { unsafe { ffi::gst_rtsp_stream_get_dscp_qos(self.as_ref().to_glib_none().0) } } - fn get_index(&self) -> u32 { + fn index(&self) -> u32 { unsafe { ffi::gst_rtsp_stream_get_index(self.as_ref().to_glib_none().0) } } - fn get_joined_bin(&self) -> Option { + fn joined_bin(&self) -> Option { unsafe { from_glib_full(ffi::gst_rtsp_stream_get_joined_bin( self.as_ref().to_glib_none().0, @@ -505,11 +505,11 @@ impl> RTSPStreamExt for O { #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] - fn get_max_mcast_ttl(&self) -> u32 { + fn max_mcast_ttl(&self) -> u32 { unsafe { ffi::gst_rtsp_stream_get_max_mcast_ttl(self.as_ref().to_glib_none().0) } } - fn get_mtu(&self) -> u32 { + fn mtu(&self) -> u32 { unsafe { ffi::gst_rtsp_stream_get_mtu(self.as_ref().to_glib_none().0) } } @@ -524,7 +524,7 @@ impl> RTSPStreamExt for O { #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] - fn get_multicast_client_addresses(&self) -> Option { + fn multicast_client_addresses(&self) -> Option { unsafe { from_glib_full(ffi::gst_rtsp_stream_get_multicast_client_addresses( self.as_ref().to_glib_none().0, @@ -532,7 +532,7 @@ impl> RTSPStreamExt for O { } } - fn get_multicast_iface(&self) -> Option { + fn multicast_iface(&self) -> Option { unsafe { from_glib_full(ffi::gst_rtsp_stream_get_multicast_iface( self.as_ref().to_glib_none().0, @@ -540,7 +540,7 @@ impl> RTSPStreamExt for O { } } - fn get_profiles(&self) -> gst_rtsp::RTSPProfile { + fn profiles(&self) -> gst_rtsp::RTSPProfile { unsafe { from_glib(ffi::gst_rtsp_stream_get_profiles( self.as_ref().to_glib_none().0, @@ -548,7 +548,7 @@ impl> RTSPStreamExt for O { } } - fn get_protocols(&self) -> gst_rtsp::RTSPLowerTrans { + fn protocols(&self) -> gst_rtsp::RTSPLowerTrans { unsafe { from_glib(ffi::gst_rtsp_stream_get_protocols( self.as_ref().to_glib_none().0, @@ -556,11 +556,11 @@ impl> RTSPStreamExt for O { } } - fn get_pt(&self) -> u32 { + fn pt(&self) -> u32 { unsafe { ffi::gst_rtsp_stream_get_pt(self.as_ref().to_glib_none().0) } } - fn get_publish_clock_mode(&self) -> RTSPPublishClockMode { + fn publish_clock_mode(&self) -> RTSPPublishClockMode { unsafe { from_glib(ffi::gst_rtsp_stream_get_publish_clock_mode( self.as_ref().to_glib_none().0, @@ -570,7 +570,7 @@ impl> RTSPStreamExt for O { #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] - fn get_rate_control(&self) -> bool { + fn is_rate_control(&self) -> bool { unsafe { from_glib(ffi::gst_rtsp_stream_get_rate_control( self.as_ref().to_glib_none().0, @@ -580,7 +580,7 @@ impl> RTSPStreamExt for O { #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] - fn get_rates(&self) -> Option<(f64, f64)> { + fn rates(&self) -> Option<(f64, f64)> { unsafe { let mut rate = mem::MaybeUninit::uninit(); let mut applied_rate = mem::MaybeUninit::uninit(); @@ -599,11 +599,11 @@ impl> RTSPStreamExt for O { } } - fn get_retransmission_pt(&self) -> u32 { + fn retransmission_pt(&self) -> u32 { unsafe { ffi::gst_rtsp_stream_get_retransmission_pt(self.as_ref().to_glib_none().0) } } - fn get_retransmission_time(&self) -> gst::ClockTime { + fn retransmission_time(&self) -> gst::ClockTime { unsafe { from_glib(ffi::gst_rtsp_stream_get_retransmission_time( self.as_ref().to_glib_none().0, @@ -649,7 +649,7 @@ impl> RTSPStreamExt for O { } } - fn get_rtpinfo(&self) -> Option<(u32, u32, u32, gst::ClockTime)> { + fn rtpinfo(&self) -> Option<(u32, u32, u32, gst::ClockTime)> { unsafe { let mut rtptime = mem::MaybeUninit::uninit(); let mut seq = mem::MaybeUninit::uninit(); @@ -674,7 +674,7 @@ impl> RTSPStreamExt for O { } } - fn get_rtpsession(&self) -> Option { + fn rtpsession(&self) -> Option { unsafe { from_glib_full(ffi::gst_rtsp_stream_get_rtpsession( self.as_ref().to_glib_none().0, @@ -686,7 +686,7 @@ impl> RTSPStreamExt for O { // unsafe { TODO: call ffi:gst_rtsp_stream_get_server_port() } //} - fn get_sinkpad(&self) -> Option { + fn sinkpad(&self) -> Option { unsafe { from_glib_full(ffi::gst_rtsp_stream_get_sinkpad( self.as_ref().to_glib_none().0, @@ -694,7 +694,7 @@ impl> RTSPStreamExt for O { } } - fn get_srcpad(&self) -> Option { + fn srcpad(&self) -> Option { unsafe { from_glib_full(ffi::gst_rtsp_stream_get_srcpad( self.as_ref().to_glib_none().0, @@ -702,7 +702,7 @@ impl> RTSPStreamExt for O { } } - fn get_srtp_encoder(&self) -> Option { + fn srtp_encoder(&self) -> Option { unsafe { from_glib_full(ffi::gst_rtsp_stream_get_srtp_encoder( self.as_ref().to_glib_none().0, @@ -710,7 +710,7 @@ impl> RTSPStreamExt for O { } } - fn get_ssrc(&self) -> u32 { + fn ssrc(&self) -> u32 { unsafe { let mut ssrc = mem::MaybeUninit::uninit(); ffi::gst_rtsp_stream_get_ssrc(self.as_ref().to_glib_none().0, ssrc.as_mut_ptr()); @@ -719,7 +719,7 @@ impl> RTSPStreamExt for O { } } - fn get_ulpfec_enabled(&self) -> bool { + fn is_ulpfec_enabled(&self) -> bool { unsafe { from_glib(ffi::gst_rtsp_stream_get_ulpfec_enabled( self.as_ref().to_glib_none().0, @@ -729,13 +729,13 @@ impl> RTSPStreamExt for O { #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] - fn get_ulpfec_percentage(&self) -> u32 { + fn ulpfec_percentage(&self) -> u32 { unsafe { ffi::gst_rtsp_stream_get_ulpfec_percentage(self.as_ref().to_glib_none().0) } } #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] - fn get_ulpfec_pt(&self) -> u32 { + fn ulpfec_pt(&self) -> u32 { unsafe { ffi::gst_rtsp_stream_get_ulpfec_pt(self.as_ref().to_glib_none().0) } } diff --git a/gstreamer-rtsp-server/src/auto/rtsp_stream_transport.rs b/gstreamer-rtsp-server/src/auto/rtsp_stream_transport.rs index ddfa43117..cfcb14d37 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_stream_transport.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_stream_transport.rs @@ -30,13 +30,13 @@ pub trait RTSPStreamTransportExt: 'static { fn get_rtpinfo(&self, start_time: gst::ClockTime) -> Option; #[doc(alias = "gst_rtsp_stream_transport_get_stream")] - fn get_stream(&self) -> Option; + fn stream(&self) -> Option; //#[doc(alias = "gst_rtsp_stream_transport_get_transport")] - //fn get_transport(&self) -> /*Ignored*/Option; + //fn transport(&self) -> /*Ignored*/Option; #[doc(alias = "gst_rtsp_stream_transport_get_url")] - fn get_url(&self) -> Option; + fn url(&self) -> Option; #[doc(alias = "gst_rtsp_stream_transport_is_timed_out")] fn is_timed_out(&self) -> bool; @@ -107,7 +107,7 @@ impl> RTSPStreamTransportExt for O { } } - fn get_stream(&self) -> Option { + fn stream(&self) -> Option { unsafe { from_glib_none(ffi::gst_rtsp_stream_transport_get_stream( self.as_ref().to_glib_none().0, @@ -115,11 +115,11 @@ impl> RTSPStreamTransportExt for O { } } - //fn get_transport(&self) -> /*Ignored*/Option { + //fn transport(&self) -> /*Ignored*/Option { // unsafe { TODO: call ffi:gst_rtsp_stream_transport_get_transport() } //} - fn get_url(&self) -> Option { + fn url(&self) -> Option { unsafe { from_glib_none(ffi::gst_rtsp_stream_transport_get_url( self.as_ref().to_glib_none().0, diff --git a/gstreamer-rtsp-server/src/auto/rtsp_thread_pool.rs b/gstreamer-rtsp-server/src/auto/rtsp_thread_pool.rs index 421e697d8..d14bc24f5 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_thread_pool.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_thread_pool.rs @@ -51,7 +51,7 @@ pub const NONE_RTSP_THREAD_POOL: Option<&RTSPThreadPool> = None; pub trait RTSPThreadPoolExt: 'static { #[doc(alias = "gst_rtsp_thread_pool_get_max_threads")] - fn get_max_threads(&self) -> i32; + fn max_threads(&self) -> i32; #[doc(alias = "gst_rtsp_thread_pool_get_thread")] fn get_thread(&self, type_: RTSPThreadType, ctx: &RTSPContext) -> Option; @@ -66,7 +66,7 @@ pub trait RTSPThreadPoolExt: 'static { } impl> RTSPThreadPoolExt for O { - fn get_max_threads(&self) -> i32 { + fn max_threads(&self) -> i32 { unsafe { ffi::gst_rtsp_thread_pool_get_max_threads(self.as_ref().to_glib_none().0) } } diff --git a/gstreamer-rtsp-server/src/auto/versions.txt b/gstreamer-rtsp-server/src/auto/versions.txt index 2061f177b..3895717b6 100644 --- a/gstreamer-rtsp-server/src/auto/versions.txt +++ b/gstreamer-rtsp-server/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) diff --git a/gstreamer-rtsp-server/sys/build.rs b/gstreamer-rtsp-server/sys/build.rs index d68dd0cdc..961fb48a8 100644 --- a/gstreamer-rtsp-server/sys/build.rs +++ b/gstreamer-rtsp-server/sys/build.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-rtsp-server/sys/src/lib.rs b/gstreamer-rtsp-server/sys/src/lib.rs index cc14f7987..f85cb120f 100644 --- a/gstreamer-rtsp-server/sys/src/lib.rs +++ b/gstreamer-rtsp-server/sys/src/lib.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-rtsp-server/sys/tests/abi.rs b/gstreamer-rtsp-server/sys/tests/abi.rs index c3706f37f..9923932bb 100644 --- a/gstreamer-rtsp-server/sys/tests/abi.rs +++ b/gstreamer-rtsp-server/sys/tests/abi.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-rtsp-server/sys/tests/constant.c b/gstreamer-rtsp-server/sys/tests/constant.c index ca1bfc725..c7de4ed65 100644 --- a/gstreamer-rtsp-server/sys/tests/constant.c +++ b/gstreamer-rtsp-server/sys/tests/constant.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-rtsp-server/sys/tests/layout.c b/gstreamer-rtsp-server/sys/tests/layout.c index d384f7dc7..db65e44d7 100644 --- a/gstreamer-rtsp-server/sys/tests/layout.c +++ b/gstreamer-rtsp-server/sys/tests/layout.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-rtsp/src/auto/rtsp_url.rs b/gstreamer-rtsp/src/auto/rtsp_url.rs index b8261c3c2..4e5b67171 100644 --- a/gstreamer-rtsp/src/auto/rtsp_url.rs +++ b/gstreamer-rtsp/src/auto/rtsp_url.rs @@ -29,7 +29,7 @@ impl RTSPUrl { } #[doc(alias = "gst_rtsp_url_get_request_uri")] - pub fn get_request_uri(&self) -> Option { + pub fn request_uri(&self) -> Option { unsafe { from_glib_full(ffi::gst_rtsp_url_get_request_uri(self.to_glib_none().0)) } } diff --git a/gstreamer-rtsp/src/auto/versions.txt b/gstreamer-rtsp/src/auto/versions.txt index 2061f177b..3895717b6 100644 --- a/gstreamer-rtsp/src/auto/versions.txt +++ b/gstreamer-rtsp/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) diff --git a/gstreamer-rtsp/sys/build.rs b/gstreamer-rtsp/sys/build.rs index d68dd0cdc..961fb48a8 100644 --- a/gstreamer-rtsp/sys/build.rs +++ b/gstreamer-rtsp/sys/build.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-rtsp/sys/src/lib.rs b/gstreamer-rtsp/sys/src/lib.rs index ede5ee50e..0d006b706 100644 --- a/gstreamer-rtsp/sys/src/lib.rs +++ b/gstreamer-rtsp/sys/src/lib.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-rtsp/sys/tests/abi.rs b/gstreamer-rtsp/sys/tests/abi.rs index e96519254..c30bb5293 100644 --- a/gstreamer-rtsp/sys/tests/abi.rs +++ b/gstreamer-rtsp/sys/tests/abi.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-rtsp/sys/tests/constant.c b/gstreamer-rtsp/sys/tests/constant.c index 73e08312d..c36d4e725 100644 --- a/gstreamer-rtsp/sys/tests/constant.c +++ b/gstreamer-rtsp/sys/tests/constant.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-rtsp/sys/tests/layout.c b/gstreamer-rtsp/sys/tests/layout.c index 656034e30..92f7a9dae 100644 --- a/gstreamer-rtsp/sys/tests/layout.c +++ b/gstreamer-rtsp/sys/tests/layout.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-sdp/src/auto/versions.txt b/gstreamer-sdp/src/auto/versions.txt index 2061f177b..3895717b6 100644 --- a/gstreamer-sdp/src/auto/versions.txt +++ b/gstreamer-sdp/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) diff --git a/gstreamer-sdp/sys/build.rs b/gstreamer-sdp/sys/build.rs index d68dd0cdc..961fb48a8 100644 --- a/gstreamer-sdp/sys/build.rs +++ b/gstreamer-sdp/sys/build.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-sdp/sys/src/lib.rs b/gstreamer-sdp/sys/src/lib.rs index 73d09832c..d71bffbf9 100644 --- a/gstreamer-sdp/sys/src/lib.rs +++ b/gstreamer-sdp/sys/src/lib.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-sdp/sys/tests/abi.rs b/gstreamer-sdp/sys/tests/abi.rs index 20bf8947b..78f7945e1 100644 --- a/gstreamer-sdp/sys/tests/abi.rs +++ b/gstreamer-sdp/sys/tests/abi.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-sdp/sys/tests/constant.c b/gstreamer-sdp/sys/tests/constant.c index de0d49bfe..7efcfe8ef 100644 --- a/gstreamer-sdp/sys/tests/constant.c +++ b/gstreamer-sdp/sys/tests/constant.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-sdp/sys/tests/layout.c b/gstreamer-sdp/sys/tests/layout.c index d9d18ed73..06e89d7e7 100644 --- a/gstreamer-sdp/sys/tests/layout.c +++ b/gstreamer-sdp/sys/tests/layout.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-tag/sys/build.rs b/gstreamer-tag/sys/build.rs index d68dd0cdc..961fb48a8 100644 --- a/gstreamer-tag/sys/build.rs +++ b/gstreamer-tag/sys/build.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-tag/sys/src/lib.rs b/gstreamer-tag/sys/src/lib.rs index dfd9c7056..c0657f171 100644 --- a/gstreamer-tag/sys/src/lib.rs +++ b/gstreamer-tag/sys/src/lib.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-tag/sys/tests/abi.rs b/gstreamer-tag/sys/tests/abi.rs index a90b3cbf0..fb5623afa 100644 --- a/gstreamer-tag/sys/tests/abi.rs +++ b/gstreamer-tag/sys/tests/abi.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-tag/sys/tests/constant.c b/gstreamer-tag/sys/tests/constant.c index 8f2e94dbb..5392cedc3 100644 --- a/gstreamer-tag/sys/tests/constant.c +++ b/gstreamer-tag/sys/tests/constant.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-tag/sys/tests/layout.c b/gstreamer-tag/sys/tests/layout.c index b194666c9..d27b15ef9 100644 --- a/gstreamer-tag/sys/tests/layout.c +++ b/gstreamer-tag/sys/tests/layout.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-video/src/auto/versions.txt b/gstreamer-video/src/auto/versions.txt index 2061f177b..3895717b6 100644 --- a/gstreamer-video/src/auto/versions.txt +++ b/gstreamer-video/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) diff --git a/gstreamer-video/src/auto/video_decoder.rs b/gstreamer-video/src/auto/video_decoder.rs index 10606bcce..3669cfa18 100644 --- a/gstreamer-video/src/auto/video_decoder.rs +++ b/gstreamer-video/src/auto/video_decoder.rs @@ -46,28 +46,28 @@ pub trait VideoDecoderExt: 'static { fn allocate_output_buffer(&self) -> Result; #[doc(alias = "gst_video_decoder_get_buffer_pool")] - fn get_buffer_pool(&self) -> Option; + fn buffer_pool(&self) -> Option; #[doc(alias = "gst_video_decoder_get_estimate_rate")] - fn get_estimate_rate(&self) -> i32; + fn estimate_rate(&self) -> i32; #[doc(alias = "gst_video_decoder_get_max_decode_time")] fn get_max_decode_time(&self, frame: &VideoCodecFrame) -> gst::ClockTimeDiff; #[doc(alias = "gst_video_decoder_get_max_errors")] - fn get_max_errors(&self) -> i32; + fn max_errors(&self) -> i32; #[doc(alias = "gst_video_decoder_get_needs_format")] - fn get_needs_format(&self) -> bool; + fn is_needs_format(&self) -> bool; #[doc(alias = "gst_video_decoder_get_packetized")] - fn get_packetized(&self) -> bool; + fn is_packetized(&self) -> bool; #[doc(alias = "gst_video_decoder_get_pending_frame_size")] - fn get_pending_frame_size(&self) -> usize; + fn pending_frame_size(&self) -> usize; #[doc(alias = "gst_video_decoder_get_qos_proportion")] - fn get_qos_proportion(&self) -> f64; + fn qos_proportion(&self) -> f64; #[doc(alias = "gst_video_decoder_merge_tags")] fn merge_tags(&self, tags: Option<&gst::TagList>, mode: gst::TagMergeMode); @@ -92,11 +92,13 @@ pub trait VideoDecoderExt: 'static { #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] - fn get_property_qos(&self) -> bool; + #[doc(alias = "get_property_qos")] + fn is_qos(&self) -> bool; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] - fn set_property_qos(&self, qos: bool); + #[doc(alias = "set_property_qos")] + fn set_qos(&self, qos: bool); #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] @@ -129,7 +131,7 @@ impl> VideoDecoderExt for O { } } - fn get_buffer_pool(&self) -> Option { + fn buffer_pool(&self) -> Option { unsafe { from_glib_full(ffi::gst_video_decoder_get_buffer_pool( self.as_ref().to_glib_none().0, @@ -137,7 +139,7 @@ impl> VideoDecoderExt for O { } } - fn get_estimate_rate(&self) -> i32 { + fn estimate_rate(&self) -> i32 { unsafe { ffi::gst_video_decoder_get_estimate_rate(self.as_ref().to_glib_none().0) } } @@ -150,11 +152,11 @@ impl> VideoDecoderExt for O { } } - fn get_max_errors(&self) -> i32 { + fn max_errors(&self) -> i32 { unsafe { ffi::gst_video_decoder_get_max_errors(self.as_ref().to_glib_none().0) } } - fn get_needs_format(&self) -> bool { + fn is_needs_format(&self) -> bool { unsafe { from_glib(ffi::gst_video_decoder_get_needs_format( self.as_ref().to_glib_none().0, @@ -162,7 +164,7 @@ impl> VideoDecoderExt for O { } } - fn get_packetized(&self) -> bool { + fn is_packetized(&self) -> bool { unsafe { from_glib(ffi::gst_video_decoder_get_packetized( self.as_ref().to_glib_none().0, @@ -170,11 +172,11 @@ impl> VideoDecoderExt for O { } } - fn get_pending_frame_size(&self) -> usize { + fn pending_frame_size(&self) -> usize { unsafe { ffi::gst_video_decoder_get_pending_frame_size(self.as_ref().to_glib_none().0) } } - fn get_qos_proportion(&self) -> f64 { + fn qos_proportion(&self) -> f64 { unsafe { ffi::gst_video_decoder_get_qos_proportion(self.as_ref().to_glib_none().0) } } @@ -242,7 +244,7 @@ impl> VideoDecoderExt for O { #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] - fn get_property_qos(&self) -> bool { + fn is_qos(&self) -> bool { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -259,7 +261,7 @@ impl> VideoDecoderExt for O { #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] - fn set_property_qos(&self, qos: bool) { + fn set_qos(&self, qos: bool) { unsafe { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, diff --git a/gstreamer-video/src/auto/video_encoder.rs b/gstreamer-video/src/auto/video_encoder.rs index 435fe2962..7cff2ffb0 100644 --- a/gstreamer-video/src/auto/video_encoder.rs +++ b/gstreamer-video/src/auto/video_encoder.rs @@ -40,7 +40,7 @@ pub trait VideoEncoderExt: 'static { #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[doc(alias = "gst_video_encoder_get_min_force_key_unit_interval")] - fn get_min_force_key_unit_interval(&self) -> gst::ClockTime; + fn min_force_key_unit_interval(&self) -> gst::ClockTime; #[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] @@ -69,9 +69,11 @@ pub trait VideoEncoderExt: 'static { #[doc(alias = "gst_video_encoder_set_qos_enabled")] fn set_qos_enabled(&self, enabled: bool); - fn get_property_qos(&self) -> bool; + #[doc(alias = "get_property_qos")] + fn is_qos(&self) -> bool; - fn set_property_qos(&self, qos: bool); + #[doc(alias = "set_property_qos")] + fn set_qos(&self, qos: bool); #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] @@ -110,7 +112,7 @@ impl> VideoEncoderExt for O { #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] - fn get_min_force_key_unit_interval(&self) -> gst::ClockTime { + fn min_force_key_unit_interval(&self) -> gst::ClockTime { unsafe { from_glib(ffi::gst_video_encoder_get_min_force_key_unit_interval( self.as_ref().to_glib_none().0, @@ -185,7 +187,7 @@ impl> VideoEncoderExt for O { } } - fn get_property_qos(&self) -> bool { + fn is_qos(&self) -> bool { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -200,7 +202,7 @@ impl> VideoEncoderExt for O { } } - fn set_property_qos(&self, qos: bool) { + fn set_qos(&self, qos: bool) { unsafe { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, diff --git a/gstreamer-video/src/auto/video_orientation.rs b/gstreamer-video/src/auto/video_orientation.rs index 4daee9160..96e5aaefc 100644 --- a/gstreamer-video/src/auto/video_orientation.rs +++ b/gstreamer-video/src/auto/video_orientation.rs @@ -22,16 +22,16 @@ pub const NONE_VIDEO_ORIENTATION: Option<&VideoOrientation> = None; pub trait VideoOrientationExt: 'static { #[doc(alias = "gst_video_orientation_get_hcenter")] - fn get_hcenter(&self) -> Option; + fn hcenter(&self) -> Option; #[doc(alias = "gst_video_orientation_get_hflip")] - fn get_hflip(&self) -> Option; + fn hflip(&self) -> Option; #[doc(alias = "gst_video_orientation_get_vcenter")] - fn get_vcenter(&self) -> Option; + fn vcenter(&self) -> Option; #[doc(alias = "gst_video_orientation_get_vflip")] - fn get_vflip(&self) -> Option; + fn vflip(&self) -> Option; #[doc(alias = "gst_video_orientation_set_hcenter")] fn set_hcenter(&self, center: i32) -> Result<(), glib::error::BoolError>; @@ -47,7 +47,7 @@ pub trait VideoOrientationExt: 'static { } impl> VideoOrientationExt for O { - fn get_hcenter(&self) -> Option { + fn hcenter(&self) -> Option { unsafe { let mut center = mem::MaybeUninit::uninit(); let ret = from_glib(ffi::gst_video_orientation_get_hcenter( @@ -63,7 +63,7 @@ impl> VideoOrientationExt for O { } } - fn get_hflip(&self) -> Option { + fn hflip(&self) -> Option { unsafe { let mut flip = mem::MaybeUninit::uninit(); let ret = from_glib(ffi::gst_video_orientation_get_hflip( @@ -79,7 +79,7 @@ impl> VideoOrientationExt for O { } } - fn get_vcenter(&self) -> Option { + fn vcenter(&self) -> Option { unsafe { let mut center = mem::MaybeUninit::uninit(); let ret = from_glib(ffi::gst_video_orientation_get_vcenter( @@ -95,7 +95,7 @@ impl> VideoOrientationExt for O { } } - fn get_vflip(&self) -> Option { + fn vflip(&self) -> Option { unsafe { let mut flip = mem::MaybeUninit::uninit(); let ret = from_glib(ffi::gst_video_orientation_get_vflip( diff --git a/gstreamer-video/src/auto/video_sink.rs b/gstreamer-video/src/auto/video_sink.rs index 8b521c68f..22e70af38 100644 --- a/gstreamer-video/src/auto/video_sink.rs +++ b/gstreamer-video/src/auto/video_sink.rs @@ -26,9 +26,11 @@ unsafe impl Sync for VideoSink {} pub const NONE_VIDEO_SINK: Option<&VideoSink> = None; pub trait VideoSinkExt: 'static { - fn get_property_show_preroll_frame(&self) -> bool; + #[doc(alias = "get_property_show_preroll_frame")] + fn shows_preroll_frame(&self) -> bool; - fn set_property_show_preroll_frame(&self, show_preroll_frame: bool); + #[doc(alias = "set_property_show_preroll_frame")] + fn set_show_preroll_frame(&self, show_preroll_frame: bool); fn connect_property_show_preroll_frame_notify( &self, @@ -37,7 +39,7 @@ pub trait VideoSinkExt: 'static { } impl> VideoSinkExt for O { - fn get_property_show_preroll_frame(&self) -> bool { + fn shows_preroll_frame(&self) -> bool { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -52,7 +54,7 @@ impl> VideoSinkExt for O { } } - fn set_property_show_preroll_frame(&self, show_preroll_frame: bool) { + fn set_show_preroll_frame(&self, show_preroll_frame: bool) { unsafe { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, diff --git a/gstreamer-video/sys/build.rs b/gstreamer-video/sys/build.rs index d68dd0cdc..961fb48a8 100644 --- a/gstreamer-video/sys/build.rs +++ b/gstreamer-video/sys/build.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-video/sys/src/lib.rs b/gstreamer-video/sys/src/lib.rs index 17516cf89..1947bd5b0 100644 --- a/gstreamer-video/sys/src/lib.rs +++ b/gstreamer-video/sys/src/lib.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-video/sys/tests/abi.rs b/gstreamer-video/sys/tests/abi.rs index 48e91c646..84c203245 100644 --- a/gstreamer-video/sys/tests/abi.rs +++ b/gstreamer-video/sys/tests/abi.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-video/sys/tests/constant.c b/gstreamer-video/sys/tests/constant.c index d0b004d42..5dc696a49 100644 --- a/gstreamer-video/sys/tests/constant.c +++ b/gstreamer-video/sys/tests/constant.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-video/sys/tests/layout.c b/gstreamer-video/sys/tests/layout.c index eff741d27..f4f16260e 100644 --- a/gstreamer-video/sys/tests/layout.c +++ b/gstreamer-video/sys/tests/layout.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-webrtc/src/auto/versions.txt b/gstreamer-webrtc/src/auto/versions.txt index 2061f177b..3895717b6 100644 --- a/gstreamer-webrtc/src/auto/versions.txt +++ b/gstreamer-webrtc/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) diff --git a/gstreamer-webrtc/src/auto/web_rtc_data_channel.rs b/gstreamer-webrtc/src/auto/web_rtc_data_channel.rs index e58212a0e..9b2d59487 100644 --- a/gstreamer-webrtc/src/auto/web_rtc_data_channel.rs +++ b/gstreamer-webrtc/src/auto/web_rtc_data_channel.rs @@ -85,7 +85,8 @@ impl WebRTCDataChannel { } } - pub fn get_property_buffered_amount(&self) -> u64 { + #[doc(alias = "get_property_buffered_amount")] + pub fn buffered_amount(&self) -> u64 { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -100,7 +101,8 @@ impl WebRTCDataChannel { } } - pub fn get_property_buffered_amount_low_threshold(&self) -> u64 { + #[doc(alias = "get_property_buffered_amount_low_threshold")] + pub fn buffered_amount_low_threshold(&self) -> u64 { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -115,7 +117,8 @@ impl WebRTCDataChannel { } } - pub fn set_property_buffered_amount_low_threshold(&self, buffered_amount_low_threshold: u64) { + #[doc(alias = "set_property_buffered_amount_low_threshold")] + pub fn set_buffered_amount_low_threshold(&self, buffered_amount_low_threshold: u64) { unsafe { glib::gobject_ffi::g_object_set_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, @@ -127,7 +130,8 @@ impl WebRTCDataChannel { } } - pub fn get_property_id(&self) -> i32 { + #[doc(alias = "get_property_id")] + pub fn id(&self) -> i32 { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -142,7 +146,8 @@ impl WebRTCDataChannel { } } - pub fn get_property_label(&self) -> Option { + #[doc(alias = "get_property_label")] + pub fn label(&self) -> Option { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -156,7 +161,8 @@ impl WebRTCDataChannel { } } - pub fn get_property_max_packet_lifetime(&self) -> i32 { + #[doc(alias = "get_property_max_packet_lifetime")] + pub fn max_packet_lifetime(&self) -> i32 { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -171,7 +177,8 @@ impl WebRTCDataChannel { } } - pub fn get_property_max_retransmits(&self) -> i32 { + #[doc(alias = "get_property_max_retransmits")] + pub fn max_retransmits(&self) -> i32 { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -186,7 +193,8 @@ impl WebRTCDataChannel { } } - pub fn get_property_negotiated(&self) -> bool { + #[doc(alias = "get_property_negotiated")] + pub fn is_negotiated(&self) -> bool { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -201,7 +209,8 @@ impl WebRTCDataChannel { } } - pub fn get_property_ordered(&self) -> bool { + #[doc(alias = "get_property_ordered")] + pub fn is_ordered(&self) -> bool { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -216,7 +225,8 @@ impl WebRTCDataChannel { } } - pub fn get_property_priority(&self) -> WebRTCPriorityType { + #[doc(alias = "get_property_priority")] + pub fn priority(&self) -> WebRTCPriorityType { unsafe { let mut value = glib::Value::from_type(::static_type()); @@ -232,7 +242,8 @@ impl WebRTCDataChannel { } } - pub fn get_property_protocol(&self) -> Option { + #[doc(alias = "get_property_protocol")] + pub fn protocol(&self) -> Option { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -246,7 +257,8 @@ impl WebRTCDataChannel { } } - pub fn get_property_ready_state(&self) -> WebRTCDataChannelState { + #[doc(alias = "get_property_ready_state")] + pub fn ready_state(&self) -> WebRTCDataChannelState { unsafe { let mut value = glib::Value::from_type(::static_type()); diff --git a/gstreamer-webrtc/src/auto/web_rtcdtls_transport.rs b/gstreamer-webrtc/src/auto/web_rtcdtls_transport.rs index 530964d94..109e513d2 100644 --- a/gstreamer-webrtc/src/auto/web_rtcdtls_transport.rs +++ b/gstreamer-webrtc/src/auto/web_rtcdtls_transport.rs @@ -43,7 +43,8 @@ impl WebRTCDTLSTransport { } } - pub fn get_property_certificate(&self) -> Option { + #[doc(alias = "get_property_certificate")] + pub fn certificate(&self) -> Option { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -57,7 +58,8 @@ impl WebRTCDTLSTransport { } } - pub fn set_property_certificate(&self, certificate: Option<&str>) { + #[doc(alias = "set_property_certificate")] + pub fn set_certificate(&self, certificate: Option<&str>) { unsafe { glib::gobject_ffi::g_object_set_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, @@ -67,7 +69,8 @@ impl WebRTCDTLSTransport { } } - pub fn get_property_client(&self) -> bool { + #[doc(alias = "get_property_client")] + pub fn is_client(&self) -> bool { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -82,7 +85,8 @@ impl WebRTCDTLSTransport { } } - pub fn set_property_client(&self, client: bool) { + #[doc(alias = "set_property_client")] + pub fn set_client(&self, client: bool) { unsafe { glib::gobject_ffi::g_object_set_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, @@ -92,7 +96,8 @@ impl WebRTCDTLSTransport { } } - pub fn get_property_remote_certificate(&self) -> Option { + #[doc(alias = "get_property_remote_certificate")] + pub fn remote_certificate(&self) -> Option { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -106,7 +111,8 @@ impl WebRTCDTLSTransport { } } - pub fn get_property_rtcp(&self) -> bool { + #[doc(alias = "get_property_rtcp")] + pub fn is_rtcp(&self) -> bool { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -121,7 +127,8 @@ impl WebRTCDTLSTransport { } } - pub fn get_property_session_id(&self) -> u32 { + #[doc(alias = "get_property_session_id")] + pub fn session_id(&self) -> u32 { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -136,7 +143,8 @@ impl WebRTCDTLSTransport { } } - pub fn get_property_state(&self) -> WebRTCDTLSTransportState { + #[doc(alias = "get_property_state")] + pub fn state(&self) -> WebRTCDTLSTransportState { unsafe { let mut value = glib::Value::from_type(::static_type()); @@ -152,7 +160,8 @@ impl WebRTCDTLSTransport { } } - pub fn get_property_transport(&self) -> Option { + #[doc(alias = "get_property_transport")] + pub fn transport(&self) -> Option { unsafe { let mut value = glib::Value::from_type(::static_type()); diff --git a/gstreamer-webrtc/src/auto/web_rtcice_transport.rs b/gstreamer-webrtc/src/auto/web_rtcice_transport.rs index 41e330fdc..9019d4752 100644 --- a/gstreamer-webrtc/src/auto/web_rtcice_transport.rs +++ b/gstreamer-webrtc/src/auto/web_rtcice_transport.rs @@ -62,7 +62,8 @@ impl WebRTCICETransport { } } - pub fn get_property_component(&self) -> WebRTCICEComponent { + #[doc(alias = "get_property_component")] + pub fn component(&self) -> WebRTCICEComponent { unsafe { let mut value = glib::Value::from_type(::static_type()); @@ -78,7 +79,8 @@ impl WebRTCICETransport { } } - pub fn get_property_gathering_state(&self) -> WebRTCICEGatheringState { + #[doc(alias = "get_property_gathering_state")] + pub fn gathering_state(&self) -> WebRTCICEGatheringState { unsafe { let mut value = glib::Value::from_type(::static_type()); @@ -94,7 +96,8 @@ impl WebRTCICETransport { } } - pub fn get_property_state(&self) -> WebRTCICEConnectionState { + #[doc(alias = "get_property_state")] + pub fn state(&self) -> WebRTCICEConnectionState { unsafe { let mut value = glib::Value::from_type(::static_type()); diff --git a/gstreamer-webrtc/src/auto/web_rtcrtp_transceiver.rs b/gstreamer-webrtc/src/auto/web_rtcrtp_transceiver.rs index ae2d4d3a3..c67b8fc4b 100644 --- a/gstreamer-webrtc/src/auto/web_rtcrtp_transceiver.rs +++ b/gstreamer-webrtc/src/auto/web_rtcrtp_transceiver.rs @@ -35,7 +35,8 @@ glib::wrapper! { impl WebRTCRTPTransceiver { #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] - pub fn get_property_direction(&self) -> WebRTCRTPTransceiverDirection { + #[doc(alias = "get_property_direction")] + pub fn direction(&self) -> WebRTCRTPTransceiverDirection { unsafe { let mut value = glib::Value::from_type( ::static_type(), @@ -54,7 +55,8 @@ impl WebRTCRTPTransceiver { #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] - pub fn set_property_direction(&self, direction: WebRTCRTPTransceiverDirection) { + #[doc(alias = "set_property_direction")] + pub fn set_direction(&self, direction: WebRTCRTPTransceiverDirection) { unsafe { glib::gobject_ffi::g_object_set_property( self.as_ptr() as *mut glib::gobject_ffi::GObject, @@ -64,7 +66,8 @@ impl WebRTCRTPTransceiver { } } - pub fn get_property_mlineindex(&self) -> u32 { + #[doc(alias = "get_property_mlineindex")] + pub fn mlineindex(&self) -> u32 { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -79,7 +82,8 @@ impl WebRTCRTPTransceiver { } } - pub fn get_property_receiver(&self) -> Option { + #[doc(alias = "get_property_receiver")] + pub fn receiver(&self) -> Option { unsafe { let mut value = glib::Value::from_type(::static_type()); @@ -94,7 +98,8 @@ impl WebRTCRTPTransceiver { } } - pub fn get_property_sender(&self) -> Option { + #[doc(alias = "get_property_sender")] + pub fn sender(&self) -> Option { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( diff --git a/gstreamer-webrtc/sys/build.rs b/gstreamer-webrtc/sys/build.rs index d68dd0cdc..961fb48a8 100644 --- a/gstreamer-webrtc/sys/build.rs +++ b/gstreamer-webrtc/sys/build.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-webrtc/sys/src/lib.rs b/gstreamer-webrtc/sys/src/lib.rs index 1c7f69c8b..3d07a944e 100644 --- a/gstreamer-webrtc/sys/src/lib.rs +++ b/gstreamer-webrtc/sys/src/lib.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-webrtc/sys/tests/abi.rs b/gstreamer-webrtc/sys/tests/abi.rs index 75aed5dc2..d84020c96 100644 --- a/gstreamer-webrtc/sys/tests/abi.rs +++ b/gstreamer-webrtc/sys/tests/abi.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-webrtc/sys/tests/constant.c b/gstreamer-webrtc/sys/tests/constant.c index 2ea674da5..6cc1b8429 100644 --- a/gstreamer-webrtc/sys/tests/constant.c +++ b/gstreamer-webrtc/sys/tests/constant.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-webrtc/sys/tests/layout.c b/gstreamer-webrtc/sys/tests/layout.c index 57fe0cf6b..1b9d23f85 100644 --- a/gstreamer-webrtc/sys/tests/layout.c +++ b/gstreamer-webrtc/sys/tests/layout.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer/src/auto/bin.rs b/gstreamer/src/auto/bin.rs index cd4ff0c20..798f68b7f 100644 --- a/gstreamer/src/auto/bin.rs +++ b/gstreamer/src/auto/bin.rs @@ -63,7 +63,7 @@ pub trait GstBinExt: 'static { #[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] #[doc(alias = "gst_bin_get_suppressed_flags")] - fn get_suppressed_flags(&self) -> ElementFlags; + fn suppressed_flags(&self) -> ElementFlags; //#[cfg(any(feature = "v1_18", feature = "dox"))] //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] @@ -105,13 +105,17 @@ pub trait GstBinExt: 'static { #[doc(alias = "gst_bin_sync_children_states")] fn sync_children_states(&self) -> Result<(), glib::error::BoolError>; - fn get_property_async_handling(&self) -> bool; + #[doc(alias = "get_property_async_handling")] + fn is_async_handling(&self) -> bool; - fn set_property_async_handling(&self, async_handling: bool); + #[doc(alias = "set_property_async_handling")] + fn set_async_handling(&self, async_handling: bool); - fn get_property_message_forward(&self) -> bool; + #[doc(alias = "get_property_message_forward")] + fn is_message_forward(&self) -> bool; - fn set_property_message_forward(&self, message_forward: bool); + #[doc(alias = "set_property_message_forward")] + fn set_message_forward(&self, message_forward: bool); #[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] @@ -203,7 +207,7 @@ impl> GstBinExt for O { #[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] - fn get_suppressed_flags(&self) -> ElementFlags { + fn suppressed_flags(&self) -> ElementFlags { unsafe { from_glib(ffi::gst_bin_get_suppressed_flags( self.as_ref().to_glib_none().0, @@ -283,7 +287,7 @@ impl> GstBinExt for O { } } - fn get_property_async_handling(&self) -> bool { + fn is_async_handling(&self) -> bool { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -298,7 +302,7 @@ impl> GstBinExt for O { } } - fn set_property_async_handling(&self, async_handling: bool) { + fn set_async_handling(&self, async_handling: bool) { unsafe { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, @@ -308,7 +312,7 @@ impl> GstBinExt for O { } } - fn get_property_message_forward(&self) -> bool { + fn is_message_forward(&self) -> bool { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -323,7 +327,7 @@ impl> GstBinExt for O { } } - fn set_property_message_forward(&self, message_forward: bool) { + fn set_message_forward(&self, message_forward: bool) { unsafe { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, diff --git a/gstreamer/src/auto/buffer_pool.rs b/gstreamer/src/auto/buffer_pool.rs index 5bfa3ee30..b7c8ef03a 100644 --- a/gstreamer/src/auto/buffer_pool.rs +++ b/gstreamer/src/auto/buffer_pool.rs @@ -22,7 +22,7 @@ pub const NONE_BUFFER_POOL: Option<&BufferPool> = None; pub trait BufferPoolExt: 'static { #[doc(alias = "gst_buffer_pool_get_options")] - fn get_options(&self) -> Vec; + fn options(&self) -> Vec; #[doc(alias = "gst_buffer_pool_has_option")] fn has_option(&self, option: &str) -> bool; @@ -38,7 +38,7 @@ pub trait BufferPoolExt: 'static { } impl> BufferPoolExt for O { - fn get_options(&self) -> Vec { + fn options(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_none(ffi::gst_buffer_pool_get_options( self.as_ref().to_glib_none().0, diff --git a/gstreamer/src/auto/bus.rs b/gstreamer/src/auto/bus.rs index 08c6ac5fe..7590b544f 100644 --- a/gstreamer/src/auto/bus.rs +++ b/gstreamer/src/auto/bus.rs @@ -57,7 +57,7 @@ impl Bus { //#[cfg(any(feature = "v1_14", feature = "dox"))] //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] //#[doc(alias = "gst_bus_get_pollfd")] - //pub fn get_pollfd(&self, fd: /*Ignored*/glib::PollFD) { + //pub fn pollfd(&self, fd: /*Ignored*/glib::PollFD) { // unsafe { TODO: call ffi:gst_bus_get_pollfd() } //} diff --git a/gstreamer/src/auto/child_proxy.rs b/gstreamer/src/auto/child_proxy.rs index a706d53a0..c2624407a 100644 --- a/gstreamer/src/auto/child_proxy.rs +++ b/gstreamer/src/auto/child_proxy.rs @@ -41,7 +41,7 @@ pub trait ChildProxyExt: 'static { fn get_child_by_name(&self, name: &str) -> Option; #[doc(alias = "gst_child_proxy_get_children_count")] - fn get_children_count(&self) -> u32; + fn children_count(&self) -> u32; //#[doc(alias = "gst_child_proxy_get_valist")] //fn get_valist(&self, first_property_name: &str, var_args: /*Unknown conversion*//*Unimplemented*/Unsupported); @@ -109,7 +109,7 @@ impl> ChildProxyExt for O { } } - fn get_children_count(&self) -> u32 { + fn children_count(&self) -> u32 { unsafe { ffi::gst_child_proxy_get_children_count(self.as_ref().to_glib_none().0) } } diff --git a/gstreamer/src/auto/clock.rs b/gstreamer/src/auto/clock.rs index 0ed9d6e92..c3675a7b9 100644 --- a/gstreamer/src/auto/clock.rs +++ b/gstreamer/src/auto/clock.rs @@ -94,22 +94,22 @@ pub trait ClockExt: 'static { fn adjust_unlocked(&self, internal: ClockTime) -> ClockTime; #[doc(alias = "gst_clock_get_calibration")] - fn get_calibration(&self) -> (ClockTime, ClockTime, ClockTime, ClockTime); + fn calibration(&self) -> (ClockTime, ClockTime, ClockTime, ClockTime); #[doc(alias = "gst_clock_get_internal_time")] - fn get_internal_time(&self) -> ClockTime; + fn internal_time(&self) -> ClockTime; #[doc(alias = "gst_clock_get_master")] - fn get_master(&self) -> Option; + fn master(&self) -> Option; #[doc(alias = "gst_clock_get_resolution")] - fn get_resolution(&self) -> ClockTime; + fn resolution(&self) -> ClockTime; #[doc(alias = "gst_clock_get_time")] - fn get_time(&self) -> ClockTime; + fn time(&self) -> ClockTime; #[doc(alias = "gst_clock_get_timeout")] - fn get_timeout(&self) -> ClockTime; + fn timeout(&self) -> ClockTime; #[doc(alias = "gst_clock_is_synced")] fn is_synced(&self) -> bool; @@ -153,13 +153,17 @@ pub trait ClockExt: 'static { #[doc(alias = "gst_clock_wait_for_sync")] fn wait_for_sync(&self, timeout: ClockTime) -> Result<(), glib::error::BoolError>; - fn get_property_window_size(&self) -> i32; + #[doc(alias = "get_property_window_size")] + fn window_size(&self) -> i32; - fn set_property_window_size(&self, window_size: i32); + #[doc(alias = "set_property_window_size")] + fn set_window_size(&self, window_size: i32); - fn get_property_window_threshold(&self) -> i32; + #[doc(alias = "get_property_window_threshold")] + fn window_threshold(&self) -> i32; - fn set_property_window_threshold(&self, window_threshold: i32); + #[doc(alias = "set_property_window_threshold")] + fn set_window_threshold(&self, window_threshold: i32); fn connect_synced(&self, f: F) -> SignalHandlerId; @@ -247,7 +251,7 @@ impl> ClockExt for O { } } - fn get_calibration(&self) -> (ClockTime, ClockTime, ClockTime, ClockTime) { + fn calibration(&self) -> (ClockTime, ClockTime, ClockTime, ClockTime) { unsafe { let mut internal = mem::MaybeUninit::uninit(); let mut external = mem::MaybeUninit::uninit(); @@ -273,7 +277,7 @@ impl> ClockExt for O { } } - fn get_internal_time(&self) -> ClockTime { + fn internal_time(&self) -> ClockTime { unsafe { from_glib(ffi::gst_clock_get_internal_time( self.as_ref().to_glib_none().0, @@ -281,11 +285,11 @@ impl> ClockExt for O { } } - fn get_master(&self) -> Option { + fn master(&self) -> Option { unsafe { from_glib_full(ffi::gst_clock_get_master(self.as_ref().to_glib_none().0)) } } - fn get_resolution(&self) -> ClockTime { + fn resolution(&self) -> ClockTime { unsafe { from_glib(ffi::gst_clock_get_resolution( self.as_ref().to_glib_none().0, @@ -293,11 +297,11 @@ impl> ClockExt for O { } } - fn get_time(&self) -> ClockTime { + fn time(&self) -> ClockTime { unsafe { from_glib(ffi::gst_clock_get_time(self.as_ref().to_glib_none().0)) } } - fn get_timeout(&self) -> ClockTime { + fn timeout(&self) -> ClockTime { unsafe { from_glib(ffi::gst_clock_get_timeout(self.as_ref().to_glib_none().0)) } } @@ -390,7 +394,7 @@ impl> ClockExt for O { } } - fn get_property_window_size(&self) -> i32 { + fn window_size(&self) -> i32 { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -405,7 +409,7 @@ impl> ClockExt for O { } } - fn set_property_window_size(&self, window_size: i32) { + fn set_window_size(&self, window_size: i32) { unsafe { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, @@ -415,7 +419,7 @@ impl> ClockExt for O { } } - fn get_property_window_threshold(&self) -> i32 { + fn window_threshold(&self) -> i32 { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -430,7 +434,7 @@ impl> ClockExt for O { } } - fn set_property_window_threshold(&self, window_threshold: i32) { + fn set_window_threshold(&self, window_threshold: i32) { unsafe { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, diff --git a/gstreamer/src/auto/control_binding.rs b/gstreamer/src/auto/control_binding.rs index 5ae153e69..d18955017 100644 --- a/gstreamer/src/auto/control_binding.rs +++ b/gstreamer/src/auto/control_binding.rs @@ -43,7 +43,8 @@ pub trait ControlBindingExt: 'static { last_sync: ClockTime, ) -> bool; - fn get_property_object(&self) -> Option; + #[doc(alias = "get_property_object")] + fn object(&self) -> Option; } impl> ControlBindingExt for O { @@ -93,7 +94,7 @@ impl> ControlBindingExt for O { } } - fn get_property_object(&self) -> Option { + fn object(&self) -> Option { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( diff --git a/gstreamer/src/auto/date_time.rs b/gstreamer/src/auto/date_time.rs index 524e86ba5..8d5695e6a 100644 --- a/gstreamer/src/auto/date_time.rs +++ b/gstreamer/src/auto/date_time.rs @@ -89,7 +89,7 @@ impl DateTime { } #[doc(alias = "gst_date_time_get_year")] - pub fn get_year(&self) -> i32 { + pub fn year(&self) -> i32 { unsafe { ffi::gst_date_time_get_year(self.to_glib_none().0) } } diff --git a/gstreamer/src/auto/device.rs b/gstreamer/src/auto/device.rs index 858c61ef0..9ac36da97 100644 --- a/gstreamer/src/auto/device.rs +++ b/gstreamer/src/auto/device.rs @@ -33,16 +33,16 @@ pub trait DeviceExt: 'static { fn create_element(&self, name: Option<&str>) -> Result; #[doc(alias = "gst_device_get_caps")] - fn get_caps(&self) -> Option; + fn caps(&self) -> Option; #[doc(alias = "gst_device_get_device_class")] - fn get_device_class(&self) -> glib::GString; + fn device_class(&self) -> glib::GString; #[doc(alias = "gst_device_get_display_name")] - fn get_display_name(&self) -> glib::GString; + fn display_name(&self) -> glib::GString; #[doc(alias = "gst_device_get_properties")] - fn get_properties(&self) -> Option; + fn properties(&self) -> Option; #[doc(alias = "gst_device_has_classes")] fn has_classes(&self, classes: &str) -> bool; @@ -70,11 +70,11 @@ impl> DeviceExt for O { } } - fn get_caps(&self) -> Option { + fn caps(&self) -> Option { unsafe { from_glib_full(ffi::gst_device_get_caps(self.as_ref().to_glib_none().0)) } } - fn get_device_class(&self) -> glib::GString { + fn device_class(&self) -> glib::GString { unsafe { from_glib_full(ffi::gst_device_get_device_class( self.as_ref().to_glib_none().0, @@ -82,7 +82,7 @@ impl> DeviceExt for O { } } - fn get_display_name(&self) -> glib::GString { + fn display_name(&self) -> glib::GString { unsafe { from_glib_full(ffi::gst_device_get_display_name( self.as_ref().to_glib_none().0, @@ -90,7 +90,7 @@ impl> DeviceExt for O { } } - fn get_properties(&self) -> Option { + fn properties(&self) -> Option { unsafe { from_glib_full(ffi::gst_device_get_properties( self.as_ref().to_glib_none().0, diff --git a/gstreamer/src/auto/device_monitor.rs b/gstreamer/src/auto/device_monitor.rs index ae537ed31..00f025859 100644 --- a/gstreamer/src/auto/device_monitor.rs +++ b/gstreamer/src/auto/device_monitor.rs @@ -30,16 +30,16 @@ pub const NONE_DEVICE_MONITOR: Option<&DeviceMonitor> = None; pub trait DeviceMonitorExt: 'static { #[doc(alias = "gst_device_monitor_get_bus")] - fn get_bus(&self) -> Bus; + fn bus(&self) -> Bus; #[doc(alias = "gst_device_monitor_get_devices")] - fn get_devices(&self) -> Vec; + fn devices(&self) -> Vec; #[doc(alias = "gst_device_monitor_get_providers")] - fn get_providers(&self) -> Vec; + fn providers(&self) -> Vec; #[doc(alias = "gst_device_monitor_get_show_all_devices")] - fn get_show_all_devices(&self) -> bool; + fn shows_all_devices(&self) -> bool; #[doc(alias = "gst_device_monitor_set_show_all_devices")] fn set_show_all_devices(&self, show_all: bool); @@ -50,9 +50,11 @@ pub trait DeviceMonitorExt: 'static { #[doc(alias = "gst_device_monitor_stop")] fn stop(&self); - fn get_property_show_all(&self) -> bool; + #[doc(alias = "get_property_show_all")] + fn shows_all(&self) -> bool; - fn set_property_show_all(&self, show_all: bool); + #[doc(alias = "set_property_show_all")] + fn set_show_all(&self, show_all: bool); fn connect_property_show_all_notify( &self, @@ -61,7 +63,7 @@ pub trait DeviceMonitorExt: 'static { } impl> DeviceMonitorExt for O { - fn get_bus(&self) -> Bus { + fn bus(&self) -> Bus { unsafe { from_glib_full(ffi::gst_device_monitor_get_bus( self.as_ref().to_glib_none().0, @@ -69,7 +71,7 @@ impl> DeviceMonitorExt for O { } } - fn get_devices(&self) -> Vec { + fn devices(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_full(ffi::gst_device_monitor_get_devices( self.as_ref().to_glib_none().0, @@ -77,7 +79,7 @@ impl> DeviceMonitorExt for O { } } - fn get_providers(&self) -> Vec { + fn providers(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_full(ffi::gst_device_monitor_get_providers( self.as_ref().to_glib_none().0, @@ -85,7 +87,7 @@ impl> DeviceMonitorExt for O { } } - fn get_show_all_devices(&self) -> bool { + fn shows_all_devices(&self) -> bool { unsafe { from_glib(ffi::gst_device_monitor_get_show_all_devices( self.as_ref().to_glib_none().0, @@ -117,7 +119,7 @@ impl> DeviceMonitorExt for O { } } - fn get_property_show_all(&self) -> bool { + fn shows_all(&self) -> bool { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -132,7 +134,7 @@ impl> DeviceMonitorExt for O { } } - fn set_property_show_all(&self, show_all: bool) { + fn set_show_all(&self, show_all: bool) { unsafe { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, diff --git a/gstreamer/src/auto/device_provider.rs b/gstreamer/src/auto/device_provider.rs index af3c2c98b..21699ec79 100644 --- a/gstreamer/src/auto/device_provider.rs +++ b/gstreamer/src/auto/device_provider.rs @@ -44,16 +44,16 @@ pub trait DeviceProviderExt: 'static { fn device_remove>(&self, device: &P); #[doc(alias = "gst_device_provider_get_bus")] - fn get_bus(&self) -> Bus; + fn bus(&self) -> Bus; #[doc(alias = "gst_device_provider_get_devices")] - fn get_devices(&self) -> Vec; + fn devices(&self) -> Vec; #[doc(alias = "gst_device_provider_get_factory")] - fn get_factory(&self) -> Option; + fn factory(&self) -> Option; #[doc(alias = "gst_device_provider_get_hidden_providers")] - fn get_hidden_providers(&self) -> Vec; + fn hidden_providers(&self) -> Vec; #[doc(alias = "gst_device_provider_hide_provider")] fn hide_provider(&self, name: &str); @@ -117,7 +117,7 @@ impl> DeviceProviderExt for O { } } - fn get_bus(&self) -> Bus { + fn bus(&self) -> Bus { unsafe { from_glib_full(ffi::gst_device_provider_get_bus( self.as_ref().to_glib_none().0, @@ -125,7 +125,7 @@ impl> DeviceProviderExt for O { } } - fn get_devices(&self) -> Vec { + fn devices(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_full(ffi::gst_device_provider_get_devices( self.as_ref().to_glib_none().0, @@ -133,7 +133,7 @@ impl> DeviceProviderExt for O { } } - fn get_factory(&self) -> Option { + fn factory(&self) -> Option { unsafe { from_glib_none(ffi::gst_device_provider_get_factory( self.as_ref().to_glib_none().0, @@ -141,7 +141,7 @@ impl> DeviceProviderExt for O { } } - fn get_hidden_providers(&self) -> Vec { + fn hidden_providers(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_full(ffi::gst_device_provider_get_hidden_providers( self.as_ref().to_glib_none().0, diff --git a/gstreamer/src/auto/device_provider_factory.rs b/gstreamer/src/auto/device_provider_factory.rs index 67d00134f..a9baa3b59 100644 --- a/gstreamer/src/auto/device_provider_factory.rs +++ b/gstreamer/src/auto/device_provider_factory.rs @@ -24,7 +24,7 @@ impl DeviceProviderFactory { } #[doc(alias = "gst_device_provider_factory_get_device_provider_type")] - pub fn get_device_provider_type(&self) -> glib::types::Type { + pub fn device_provider_type(&self) -> glib::types::Type { unsafe { from_glib(ffi::gst_device_provider_factory_get_device_provider_type( self.to_glib_none().0, @@ -43,7 +43,7 @@ impl DeviceProviderFactory { } #[doc(alias = "gst_device_provider_factory_get_metadata_keys")] - pub fn get_metadata_keys(&self) -> Vec { + pub fn metadata_keys(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_full( ffi::gst_device_provider_factory_get_metadata_keys(self.to_glib_none().0), diff --git a/gstreamer/src/auto/element.rs b/gstreamer/src/auto/element.rs index 4415077a9..c800a0e7d 100644 --- a/gstreamer/src/auto/element.rs +++ b/gstreamer/src/auto/element.rs @@ -87,13 +87,13 @@ pub trait ElementExt: 'static { fn foreach_src_pad bool>(&self, func: P) -> bool; #[doc(alias = "gst_element_get_base_time")] - fn get_base_time(&self) -> ClockTime; + fn base_time(&self) -> ClockTime; #[doc(alias = "gst_element_get_bus")] - fn get_bus(&self) -> Option; + fn bus(&self) -> Option; #[doc(alias = "gst_element_get_clock")] - fn get_clock(&self) -> Option; + fn clock(&self) -> Option; #[doc(alias = "gst_element_get_compatible_pad")] fn get_compatible_pad>(&self, pad: &P, caps: Option<&Caps>) -> Option; @@ -105,16 +105,16 @@ pub trait ElementExt: 'static { fn get_context(&self, context_type: &str) -> Option; #[doc(alias = "gst_element_get_contexts")] - fn get_contexts(&self) -> Vec; + fn contexts(&self) -> Vec; #[doc(alias = "gst_element_get_factory")] - fn get_factory(&self) -> Option; + fn factory(&self) -> Option; #[doc(alias = "gst_element_get_request_pad")] fn get_request_pad(&self, name: &str) -> Option; #[doc(alias = "gst_element_get_start_time")] - fn get_start_time(&self) -> ClockTime; + fn start_time(&self) -> ClockTime; #[doc(alias = "gst_element_get_static_pad")] fn get_static_pad(&self, name: &str) -> Option; @@ -347,7 +347,7 @@ impl> ElementExt for O { } } - fn get_base_time(&self) -> ClockTime { + fn base_time(&self) -> ClockTime { unsafe { from_glib(ffi::gst_element_get_base_time( self.as_ref().to_glib_none().0, @@ -355,11 +355,11 @@ impl> ElementExt for O { } } - fn get_bus(&self) -> Option { + fn bus(&self) -> Option { unsafe { from_glib_full(ffi::gst_element_get_bus(self.as_ref().to_glib_none().0)) } } - fn get_clock(&self) -> Option { + fn clock(&self) -> Option { unsafe { from_glib_full(ffi::gst_element_get_clock(self.as_ref().to_glib_none().0)) } } @@ -391,7 +391,7 @@ impl> ElementExt for O { } } - fn get_contexts(&self) -> Vec { + fn contexts(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_full(ffi::gst_element_get_contexts( self.as_ref().to_glib_none().0, @@ -399,7 +399,7 @@ impl> ElementExt for O { } } - fn get_factory(&self) -> Option { + fn factory(&self) -> Option { unsafe { from_glib_none(ffi::gst_element_get_factory(self.as_ref().to_glib_none().0)) } } @@ -412,7 +412,7 @@ impl> ElementExt for O { } } - fn get_start_time(&self) -> ClockTime { + fn start_time(&self) -> ClockTime { unsafe { from_glib(ffi::gst_element_get_start_time( self.as_ref().to_glib_none().0, diff --git a/gstreamer/src/auto/element_factory.rs b/gstreamer/src/auto/element_factory.rs index c2321edf8..ee70d365c 100644 --- a/gstreamer/src/auto/element_factory.rs +++ b/gstreamer/src/auto/element_factory.rs @@ -75,7 +75,7 @@ impl ElementFactory { } #[doc(alias = "gst_element_factory_get_element_type")] - pub fn get_element_type(&self) -> glib::types::Type { + pub fn element_type(&self) -> glib::types::Type { unsafe { from_glib(ffi::gst_element_factory_get_element_type( self.to_glib_none().0, @@ -94,7 +94,7 @@ impl ElementFactory { } #[doc(alias = "gst_element_factory_get_metadata_keys")] - pub fn get_metadata_keys(&self) -> Vec { + pub fn metadata_keys(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_full(ffi::gst_element_factory_get_metadata_keys( self.to_glib_none().0, @@ -103,12 +103,12 @@ impl ElementFactory { } #[doc(alias = "gst_element_factory_get_num_pad_templates")] - pub fn get_num_pad_templates(&self) -> u32 { + pub fn num_pad_templates(&self) -> u32 { unsafe { ffi::gst_element_factory_get_num_pad_templates(self.to_glib_none().0) } } #[doc(alias = "gst_element_factory_get_static_pad_templates")] - pub fn get_static_pad_templates(&self) -> Vec { + pub fn static_pad_templates(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_none(ffi::gst_element_factory_get_static_pad_templates( self.to_glib_none().0, @@ -117,7 +117,7 @@ impl ElementFactory { } #[doc(alias = "gst_element_factory_get_uri_protocols")] - pub fn get_uri_protocols(&self) -> Vec { + pub fn uri_protocols(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_none(ffi::gst_element_factory_get_uri_protocols( self.to_glib_none().0, @@ -126,7 +126,7 @@ impl ElementFactory { } #[doc(alias = "gst_element_factory_get_uri_type")] - pub fn get_uri_type(&self) -> URIType { + pub fn uri_type(&self) -> URIType { unsafe { from_glib(ffi::gst_element_factory_get_uri_type(self.to_glib_none().0)) } } diff --git a/gstreamer/src/auto/enums.rs b/gstreamer/src/auto/enums.rs index 37b209ebd..0013e0f76 100644 --- a/gstreamer/src/auto/enums.rs +++ b/gstreamer/src/auto/enums.rs @@ -606,7 +606,7 @@ pub enum DebugLevel { } impl DebugLevel { - pub fn get_name<'a>(self) -> &'a str { + pub fn name<'a>(self) -> &'a str { unsafe { CStr::from_ptr( ffi::gst_debug_level_get_name(self.to_glib()) @@ -622,7 +622,7 @@ impl DebugLevel { impl fmt::Display for DebugLevel { #[inline] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - f.write_str(&self.get_name()) + f.write_str(&self.name()) } } @@ -773,12 +773,12 @@ pub enum EventType { impl EventType { #[doc(alias = "gst_event_type_get_flags")] - pub fn get_flags(self) -> EventTypeFlags { + pub fn flags(self) -> EventTypeFlags { assert_initialized_main_thread!(); unsafe { from_glib(ffi::gst_event_type_get_flags(self.to_glib())) } } - pub fn get_name<'a>(self) -> &'a str { + pub fn name<'a>(self) -> &'a str { unsafe { CStr::from_ptr( ffi::gst_event_type_get_name(self.to_glib()) @@ -800,7 +800,7 @@ impl EventType { impl fmt::Display for EventType { #[inline] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - f.write_str(&self.get_name()) + f.write_str(&self.name()) } } @@ -1061,7 +1061,7 @@ impl Format { //} #[doc(alias = "gst_format_get_name")] - pub fn get_name(self) -> Option { + pub fn name(self) -> Option { assert_initialized_main_thread!(); unsafe { from_glib_none(ffi::gst_format_get_name(self.to_glib())) } } @@ -1404,7 +1404,7 @@ pub enum PadMode { } impl PadMode { - pub fn get_name<'a>(self) -> &'a str { + pub fn name<'a>(self) -> &'a str { unsafe { CStr::from_ptr( ffi::gst_pad_mode_get_name(self.to_glib()) @@ -1420,7 +1420,7 @@ impl PadMode { impl fmt::Display for PadMode { #[inline] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - f.write_str(&self.get_name()) + f.write_str(&self.name()) } } @@ -2423,7 +2423,7 @@ pub enum StateChange { impl fmt::Display for StateChange { #[inline] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - f.write_str(&self.get_name()) + f.write_str(&self.name()) } } diff --git a/gstreamer/src/auto/ghost_pad.rs b/gstreamer/src/auto/ghost_pad.rs index 685ac7b77..d2d9778bd 100644 --- a/gstreamer/src/auto/ghost_pad.rs +++ b/gstreamer/src/auto/ghost_pad.rs @@ -24,14 +24,14 @@ pub const NONE_GHOST_PAD: Option<&GhostPad> = None; pub trait GhostPadExt: 'static { #[doc(alias = "gst_ghost_pad_get_target")] - fn get_target(&self) -> Option; + fn target(&self) -> Option; #[doc(alias = "gst_ghost_pad_set_target")] fn set_target>(&self, newtarget: Option<&P>) -> Result<(), glib::error::BoolError>; } impl> GhostPadExt for O { - fn get_target(&self) -> Option { + fn target(&self) -> Option { unsafe { from_glib_full(ffi::gst_ghost_pad_get_target( self.as_ref().to_glib_none().0, diff --git a/gstreamer/src/auto/object.rs b/gstreamer/src/auto/object.rs index 96094b4bf..37b128cdf 100644 --- a/gstreamer/src/auto/object.rs +++ b/gstreamer/src/auto/object.rs @@ -53,7 +53,7 @@ impl Object { impl fmt::Display for Object { #[inline] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - f.write_str(&GstObjectExt::get_name(self)) + f.write_str(&GstObjectExt::name(self)) } } @@ -76,16 +76,16 @@ pub trait GstObjectExt: 'static { fn get_control_binding(&self, property_name: &str) -> Option; #[doc(alias = "gst_object_get_control_rate")] - fn get_control_rate(&self) -> ClockTime; + fn control_rate(&self) -> ClockTime; #[doc(alias = "gst_object_get_name")] - fn get_name(&self) -> glib::GString; + fn name(&self) -> glib::GString; #[doc(alias = "gst_object_get_parent")] - fn get_parent(&self) -> Option; + fn parent(&self) -> Option; #[doc(alias = "gst_object_get_path_string")] - fn get_path_string(&self) -> glib::GString; + fn path_string(&self) -> glib::GString; #[doc(alias = "gst_object_get_value")] fn get_value(&self, property_name: &str, timestamp: ClockTime) -> Option; @@ -172,7 +172,7 @@ impl> GstObjectExt for O { } } - fn get_control_rate(&self) -> ClockTime { + fn control_rate(&self) -> ClockTime { unsafe { from_glib(ffi::gst_object_get_control_rate( self.as_ref().to_glib_none().0, @@ -180,15 +180,15 @@ impl> GstObjectExt for O { } } - fn get_name(&self) -> glib::GString { + fn name(&self) -> glib::GString { unsafe { from_glib_full(ffi::gst_object_get_name(self.as_ref().to_glib_none().0)) } } - fn get_parent(&self) -> Option { + fn parent(&self) -> Option { unsafe { from_glib_full(ffi::gst_object_get_parent(self.as_ref().to_glib_none().0)) } } - fn get_path_string(&self) -> glib::GString { + fn path_string(&self) -> glib::GString { unsafe { from_glib_full(ffi::gst_object_get_path_string( self.as_ref().to_glib_none().0, diff --git a/gstreamer/src/auto/pad.rs b/gstreamer/src/auto/pad.rs index 61af3c796..87201f152 100644 --- a/gstreamer/src/auto/pad.rs +++ b/gstreamer/src/auto/pad.rs @@ -69,36 +69,36 @@ pub trait PadExt: 'static { fn forward bool>(&self, forward: P) -> bool; #[doc(alias = "gst_pad_get_allowed_caps")] - fn get_allowed_caps(&self) -> Option; + fn allowed_caps(&self) -> Option; #[doc(alias = "gst_pad_get_current_caps")] - fn get_current_caps(&self) -> Option; + fn current_caps(&self) -> Option; #[doc(alias = "gst_pad_get_direction")] - fn get_direction(&self) -> PadDirection; + fn direction(&self) -> PadDirection; //#[doc(alias = "gst_pad_get_element_private")] - //fn get_element_private(&self) -> /*Unimplemented*/Option; + //fn element_private(&self) -> /*Unimplemented*/Option; #[doc(alias = "gst_pad_get_offset")] - fn get_offset(&self) -> i64; + fn offset(&self) -> i64; #[doc(alias = "gst_pad_get_pad_template")] - fn get_pad_template(&self) -> Option; + fn pad_template(&self) -> Option; #[doc(alias = "gst_pad_get_pad_template_caps")] - fn get_pad_template_caps(&self) -> Caps; + fn pad_template_caps(&self) -> Caps; #[doc(alias = "gst_pad_get_parent_element")] - fn get_parent_element(&self) -> Option; + fn parent_element(&self) -> Option; #[doc(alias = "gst_pad_get_peer")] - fn get_peer(&self) -> Option; + fn peer(&self) -> Option; #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[doc(alias = "gst_pad_get_single_internal_link")] - fn get_single_internal_link(&self) -> Option; + fn single_internal_link(&self) -> Option; #[doc(alias = "gst_pad_get_sticky_event")] fn get_sticky_event(&self, event_type: EventType, idx: u32) -> Option; @@ -106,15 +106,15 @@ pub trait PadExt: 'static { #[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] #[doc(alias = "gst_pad_get_stream")] - fn get_stream(&self) -> Option; + fn stream(&self) -> Option; #[doc(alias = "gst_pad_get_stream_id")] - fn get_stream_id(&self) -> Option; + fn stream_id(&self) -> Option; #[cfg(any(feature = "v1_12", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] #[doc(alias = "gst_pad_get_task_state")] - fn get_task_state(&self) -> TaskState; + fn task_state(&self) -> TaskState; #[doc(alias = "gst_pad_has_current_caps")] fn has_current_caps(&self) -> bool; @@ -190,7 +190,8 @@ pub trait PadExt: 'static { #[doc(alias = "gst_pad_use_fixed_caps")] fn use_fixed_caps(&self); - fn get_property_caps(&self) -> Option; + #[doc(alias = "get_property_caps")] + fn caps(&self) -> Option; fn connect_linked(&self, f: F) -> SignalHandlerId; @@ -283,7 +284,7 @@ impl> PadExt for O { } } - fn get_allowed_caps(&self) -> Option { + fn allowed_caps(&self) -> Option { unsafe { from_glib_full(ffi::gst_pad_get_allowed_caps( self.as_ref().to_glib_none().0, @@ -291,7 +292,7 @@ impl> PadExt for O { } } - fn get_current_caps(&self) -> Option { + fn current_caps(&self) -> Option { unsafe { from_glib_full(ffi::gst_pad_get_current_caps( self.as_ref().to_glib_none().0, @@ -299,19 +300,19 @@ impl> PadExt for O { } } - fn get_direction(&self) -> PadDirection { + fn direction(&self) -> PadDirection { unsafe { from_glib(ffi::gst_pad_get_direction(self.as_ref().to_glib_none().0)) } } - //fn get_element_private(&self) -> /*Unimplemented*/Option { + //fn element_private(&self) -> /*Unimplemented*/Option { // unsafe { TODO: call ffi:gst_pad_get_element_private() } //} - fn get_offset(&self) -> i64 { + fn offset(&self) -> i64 { unsafe { ffi::gst_pad_get_offset(self.as_ref().to_glib_none().0) } } - fn get_pad_template(&self) -> Option { + fn pad_template(&self) -> Option { unsafe { from_glib_full(ffi::gst_pad_get_pad_template( self.as_ref().to_glib_none().0, @@ -319,7 +320,7 @@ impl> PadExt for O { } } - fn get_pad_template_caps(&self) -> Caps { + fn pad_template_caps(&self) -> Caps { unsafe { from_glib_full(ffi::gst_pad_get_pad_template_caps( self.as_ref().to_glib_none().0, @@ -327,7 +328,7 @@ impl> PadExt for O { } } - fn get_parent_element(&self) -> Option { + fn parent_element(&self) -> Option { unsafe { from_glib_full(ffi::gst_pad_get_parent_element( self.as_ref().to_glib_none().0, @@ -335,13 +336,13 @@ impl> PadExt for O { } } - fn get_peer(&self) -> Option { + fn peer(&self) -> Option { unsafe { from_glib_full(ffi::gst_pad_get_peer(self.as_ref().to_glib_none().0)) } } #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] - fn get_single_internal_link(&self) -> Option { + fn single_internal_link(&self) -> Option { unsafe { from_glib_full(ffi::gst_pad_get_single_internal_link( self.as_ref().to_glib_none().0, @@ -361,17 +362,17 @@ impl> PadExt for O { #[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] - fn get_stream(&self) -> Option { + fn stream(&self) -> Option { unsafe { from_glib_full(ffi::gst_pad_get_stream(self.as_ref().to_glib_none().0)) } } - fn get_stream_id(&self) -> Option { + fn stream_id(&self) -> Option { unsafe { from_glib_full(ffi::gst_pad_get_stream_id(self.as_ref().to_glib_none().0)) } } #[cfg(any(feature = "v1_12", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] - fn get_task_state(&self) -> TaskState { + fn task_state(&self) -> TaskState { unsafe { from_glib(ffi::gst_pad_get_task_state(self.as_ref().to_glib_none().0)) } } @@ -545,7 +546,7 @@ impl> PadExt for O { } } - fn get_property_caps(&self) -> Option { + fn caps(&self) -> Option { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( diff --git a/gstreamer/src/auto/pad_template.rs b/gstreamer/src/auto/pad_template.rs index 7f2d41f4a..22154e732 100644 --- a/gstreamer/src/auto/pad_template.rs +++ b/gstreamer/src/auto/pad_template.rs @@ -69,14 +69,14 @@ impl PadTemplate { } #[doc(alias = "gst_pad_template_get_caps")] - pub fn get_caps(&self) -> Caps { + pub fn caps(&self) -> Caps { unsafe { from_glib_full(ffi::gst_pad_template_get_caps(self.to_glib_none().0)) } } #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[doc(alias = "gst_pad_template_get_documentation_caps")] - pub fn get_documentation_caps(&self) -> Caps { + pub fn documentation_caps(&self) -> Caps { unsafe { from_glib_full(ffi::gst_pad_template_get_documentation_caps( self.to_glib_none().0, @@ -103,7 +103,8 @@ impl PadTemplate { } } - pub fn get_property_direction(&self) -> PadDirection { + #[doc(alias = "get_property_direction")] + pub fn direction(&self) -> PadDirection { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -120,7 +121,8 @@ impl PadTemplate { #[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] - pub fn get_property_gtype(&self) -> glib::types::Type { + #[doc(alias = "get_property_gtype")] + pub fn gtype(&self) -> glib::types::Type { unsafe { let mut value = glib::Value::from_type(::static_type()); @@ -136,7 +138,8 @@ impl PadTemplate { } } - pub fn get_property_name_template(&self) -> Option { + #[doc(alias = "get_property_name_template")] + pub fn name_template(&self) -> Option { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -150,7 +153,8 @@ impl PadTemplate { } } - pub fn get_property_presence(&self) -> PadPresence { + #[doc(alias = "get_property_presence")] + pub fn presence(&self) -> PadPresence { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( diff --git a/gstreamer/src/auto/pipeline.rs b/gstreamer/src/auto/pipeline.rs index 1e07e8ae7..b045304db 100644 --- a/gstreamer/src/auto/pipeline.rs +++ b/gstreamer/src/auto/pipeline.rs @@ -45,16 +45,16 @@ pub trait PipelineExt: 'static { fn auto_clock(&self); #[doc(alias = "gst_pipeline_get_auto_flush_bus")] - fn get_auto_flush_bus(&self) -> bool; + fn is_auto_flush_bus(&self) -> bool; #[doc(alias = "gst_pipeline_get_delay")] - fn get_delay(&self) -> ClockTime; + fn delay(&self) -> ClockTime; #[doc(alias = "gst_pipeline_get_latency")] - fn get_latency(&self) -> ClockTime; + fn latency(&self) -> ClockTime; #[doc(alias = "gst_pipeline_get_pipeline_clock")] - fn get_pipeline_clock(&self) -> Clock; + fn pipeline_clock(&self) -> Clock; #[doc(alias = "gst_pipeline_set_auto_flush_bus")] fn set_auto_flush_bus(&self, auto_flush: bool); @@ -91,7 +91,7 @@ impl> PipelineExt for O { } } - fn get_auto_flush_bus(&self) -> bool { + fn is_auto_flush_bus(&self) -> bool { unsafe { from_glib(ffi::gst_pipeline_get_auto_flush_bus( self.as_ref().to_glib_none().0, @@ -99,11 +99,11 @@ impl> PipelineExt for O { } } - fn get_delay(&self) -> ClockTime { + fn delay(&self) -> ClockTime { unsafe { from_glib(ffi::gst_pipeline_get_delay(self.as_ref().to_glib_none().0)) } } - fn get_latency(&self) -> ClockTime { + fn latency(&self) -> ClockTime { unsafe { from_glib(ffi::gst_pipeline_get_latency( self.as_ref().to_glib_none().0, @@ -111,7 +111,7 @@ impl> PipelineExt for O { } } - fn get_pipeline_clock(&self) -> Clock { + fn pipeline_clock(&self) -> Clock { unsafe { from_glib_full(ffi::gst_pipeline_get_pipeline_clock( self.as_ref().to_glib_none().0, diff --git a/gstreamer/src/auto/plugin.rs b/gstreamer/src/auto/plugin.rs index 365553661..29b6c3409 100644 --- a/gstreamer/src/auto/plugin.rs +++ b/gstreamer/src/auto/plugin.rs @@ -56,32 +56,32 @@ impl Plugin { } #[doc(alias = "gst_plugin_get_description")] - pub fn get_description(&self) -> glib::GString { + pub fn description(&self) -> glib::GString { unsafe { from_glib_none(ffi::gst_plugin_get_description(self.to_glib_none().0)) } } #[doc(alias = "gst_plugin_get_filename")] - pub fn get_filename(&self) -> Option { + pub fn filename(&self) -> Option { unsafe { from_glib_none(ffi::gst_plugin_get_filename(self.to_glib_none().0)) } } #[doc(alias = "gst_plugin_get_license")] - pub fn get_license(&self) -> glib::GString { + pub fn license(&self) -> glib::GString { unsafe { from_glib_none(ffi::gst_plugin_get_license(self.to_glib_none().0)) } } #[doc(alias = "gst_plugin_get_origin")] - pub fn get_origin(&self) -> glib::GString { + pub fn origin(&self) -> glib::GString { unsafe { from_glib_none(ffi::gst_plugin_get_origin(self.to_glib_none().0)) } } #[doc(alias = "gst_plugin_get_package")] - pub fn get_package(&self) -> glib::GString { + pub fn package(&self) -> glib::GString { unsafe { from_glib_none(ffi::gst_plugin_get_package(self.to_glib_none().0)) } } #[doc(alias = "gst_plugin_get_release_date_string")] - pub fn get_release_date_string(&self) -> Option { + pub fn release_date_string(&self) -> Option { unsafe { from_glib_none(ffi::gst_plugin_get_release_date_string( self.to_glib_none().0, @@ -90,12 +90,12 @@ impl Plugin { } #[doc(alias = "gst_plugin_get_source")] - pub fn get_source(&self) -> glib::GString { + pub fn source(&self) -> glib::GString { unsafe { from_glib_none(ffi::gst_plugin_get_source(self.to_glib_none().0)) } } #[doc(alias = "gst_plugin_get_version")] - pub fn get_version(&self) -> glib::GString { + pub fn version(&self) -> glib::GString { unsafe { from_glib_none(ffi::gst_plugin_get_version(self.to_glib_none().0)) } } diff --git a/gstreamer/src/auto/plugin_feature.rs b/gstreamer/src/auto/plugin_feature.rs index aa301cb52..8cf3e88e1 100644 --- a/gstreamer/src/auto/plugin_feature.rs +++ b/gstreamer/src/auto/plugin_feature.rs @@ -26,10 +26,10 @@ pub trait PluginFeatureExt: 'static { fn check_version(&self, min_major: u32, min_minor: u32, min_micro: u32) -> bool; #[doc(alias = "gst_plugin_feature_get_plugin")] - fn get_plugin(&self) -> Option; + fn plugin(&self) -> Option; #[doc(alias = "gst_plugin_feature_get_plugin_name")] - fn get_plugin_name(&self) -> Option; + fn plugin_name(&self) -> Option; } impl> PluginFeatureExt for O { @@ -44,7 +44,7 @@ impl> PluginFeatureExt for O { } } - fn get_plugin(&self) -> Option { + fn plugin(&self) -> Option { unsafe { from_glib_full(ffi::gst_plugin_feature_get_plugin( self.as_ref().to_glib_none().0, @@ -52,7 +52,7 @@ impl> PluginFeatureExt for O { } } - fn get_plugin_name(&self) -> Option { + fn plugin_name(&self) -> Option { unsafe { from_glib_none(ffi::gst_plugin_feature_get_plugin_name( self.as_ref().to_glib_none().0, diff --git a/gstreamer/src/auto/preset.rs b/gstreamer/src/auto/preset.rs index 630426a57..8cdd6733c 100644 --- a/gstreamer/src/auto/preset.rs +++ b/gstreamer/src/auto/preset.rs @@ -49,10 +49,10 @@ pub trait PresetExt: 'static { fn get_meta(&self, name: &str, tag: &str) -> Option; #[doc(alias = "gst_preset_get_preset_names")] - fn get_preset_names(&self) -> Vec; + fn preset_names(&self) -> Vec; #[doc(alias = "gst_preset_get_property_names")] - fn get_property_names(&self) -> Vec; + fn property_names(&self) -> Vec; #[doc(alias = "gst_preset_is_editable")] fn is_editable(&self) -> bool; @@ -105,7 +105,7 @@ impl> PresetExt for O { } } - fn get_preset_names(&self) -> Vec { + fn preset_names(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_full(ffi::gst_preset_get_preset_names( self.as_ref().to_glib_none().0, @@ -113,7 +113,7 @@ impl> PresetExt for O { } } - fn get_property_names(&self) -> Vec { + fn property_names(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_full(ffi::gst_preset_get_property_names( self.as_ref().to_glib_none().0, diff --git a/gstreamer/src/auto/proxy_pad.rs b/gstreamer/src/auto/proxy_pad.rs index d4ca397d0..c34fe1bac 100644 --- a/gstreamer/src/auto/proxy_pad.rs +++ b/gstreamer/src/auto/proxy_pad.rs @@ -30,11 +30,11 @@ pub const NONE_PROXY_PAD: Option<&ProxyPad> = None; pub trait ProxyPadExt: 'static { #[doc(alias = "gst_proxy_pad_get_internal")] - fn get_internal(&self) -> Option; + fn internal(&self) -> Option; } impl> ProxyPadExt for O { - fn get_internal(&self) -> Option { + fn internal(&self) -> Option { unsafe { from_glib_full(ffi::gst_proxy_pad_get_internal( self.as_ref().to_glib_none().0, diff --git a/gstreamer/src/auto/registry.rs b/gstreamer/src/auto/registry.rs index b785daf0e..5d991e98a 100644 --- a/gstreamer/src/auto/registry.rs +++ b/gstreamer/src/auto/registry.rs @@ -138,12 +138,12 @@ impl Registry { } #[doc(alias = "gst_registry_get_feature_list_cookie")] - pub fn get_feature_list_cookie(&self) -> u32 { + pub fn feature_list_cookie(&self) -> u32 { unsafe { ffi::gst_registry_get_feature_list_cookie(self.to_glib_none().0) } } #[doc(alias = "gst_registry_get_plugin_list")] - pub fn get_plugin_list(&self) -> Vec { + pub fn plugin_list(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_full(ffi::gst_registry_get_plugin_list( self.to_glib_none().0, diff --git a/gstreamer/src/auto/stream.rs b/gstreamer/src/auto/stream.rs index e86697402..327bd3263 100644 --- a/gstreamer/src/auto/stream.rs +++ b/gstreamer/src/auto/stream.rs @@ -25,27 +25,27 @@ glib::wrapper! { impl Stream { #[doc(alias = "gst_stream_get_caps")] - pub fn get_caps(&self) -> Option { + pub fn caps(&self) -> Option { unsafe { from_glib_full(ffi::gst_stream_get_caps(self.to_glib_none().0)) } } #[doc(alias = "gst_stream_get_stream_flags")] - pub fn get_stream_flags(&self) -> StreamFlags { + pub fn stream_flags(&self) -> StreamFlags { unsafe { from_glib(ffi::gst_stream_get_stream_flags(self.to_glib_none().0)) } } #[doc(alias = "gst_stream_get_stream_id")] - pub fn get_stream_id(&self) -> Option { + pub fn stream_id(&self) -> Option { unsafe { from_glib_none(ffi::gst_stream_get_stream_id(self.to_glib_none().0)) } } #[doc(alias = "gst_stream_get_stream_type")] - pub fn get_stream_type(&self) -> StreamType { + pub fn stream_type(&self) -> StreamType { unsafe { from_glib(ffi::gst_stream_get_stream_type(self.to_glib_none().0)) } } #[doc(alias = "gst_stream_get_tags")] - pub fn get_tags(&self) -> Option { + pub fn tags(&self) -> Option { unsafe { from_glib_full(ffi::gst_stream_get_tags(self.to_glib_none().0)) } } diff --git a/gstreamer/src/auto/stream_collection.rs b/gstreamer/src/auto/stream_collection.rs index 5896336b7..02d0260fd 100644 --- a/gstreamer/src/auto/stream_collection.rs +++ b/gstreamer/src/auto/stream_collection.rs @@ -17,7 +17,7 @@ glib::wrapper! { impl StreamCollection { #[doc(alias = "gst_stream_collection_get_size")] - pub fn get_size(&self) -> u32 { + pub fn size(&self) -> u32 { unsafe { ffi::gst_stream_collection_get_size(self.to_glib_none().0) } } @@ -32,7 +32,7 @@ impl StreamCollection { } #[doc(alias = "gst_stream_collection_get_upstream_id")] - pub fn get_upstream_id(&self) -> Option { + pub fn upstream_id(&self) -> Option { unsafe { from_glib_none(ffi::gst_stream_collection_get_upstream_id( self.to_glib_none().0, diff --git a/gstreamer/src/auto/system_clock.rs b/gstreamer/src/auto/system_clock.rs index c3e66fdc7..1b115721d 100644 --- a/gstreamer/src/auto/system_clock.rs +++ b/gstreamer/src/auto/system_clock.rs @@ -45,9 +45,11 @@ unsafe impl Sync for SystemClock {} pub const NONE_SYSTEM_CLOCK: Option<&SystemClock> = None; pub trait SystemClockExt: 'static { - fn get_property_clock_type(&self) -> ClockType; + #[doc(alias = "get_property_clock_type")] + fn clock_type(&self) -> ClockType; - fn set_property_clock_type(&self, clock_type: ClockType); + #[doc(alias = "set_property_clock_type")] + fn set_clock_type(&self, clock_type: ClockType); fn connect_property_clock_type_notify( &self, @@ -56,7 +58,7 @@ pub trait SystemClockExt: 'static { } impl> SystemClockExt for O { - fn get_property_clock_type(&self) -> ClockType { + fn clock_type(&self) -> ClockType { unsafe { let mut value = glib::Value::from_type(::static_type()); glib::gobject_ffi::g_object_get_property( @@ -71,7 +73,7 @@ impl> SystemClockExt for O { } } - fn set_property_clock_type(&self, clock_type: ClockType) { + fn set_clock_type(&self, clock_type: ClockType) { unsafe { glib::gobject_ffi::g_object_set_property( self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, diff --git a/gstreamer/src/auto/tag_setter.rs b/gstreamer/src/auto/tag_setter.rs index 8b2fb78b4..c2842284e 100644 --- a/gstreamer/src/auto/tag_setter.rs +++ b/gstreamer/src/auto/tag_setter.rs @@ -37,10 +37,10 @@ pub trait TagSetterExt: 'static { //fn add_tags(&self, mode: TagMergeMode, tag: &str, : /*Unknown conversion*//*Unimplemented*/Fundamental: VarArgs); #[doc(alias = "gst_tag_setter_get_tag_list")] - fn get_tag_list(&self) -> Option; + fn tag_list(&self) -> Option; #[doc(alias = "gst_tag_setter_get_tag_merge_mode")] - fn get_tag_merge_mode(&self) -> TagMergeMode; + fn tag_merge_mode(&self) -> TagMergeMode; #[doc(alias = "gst_tag_setter_merge_tags")] fn merge_tags(&self, list: &TagList, mode: TagMergeMode); @@ -69,7 +69,7 @@ impl> TagSetterExt for O { // unsafe { TODO: call ffi:gst_tag_setter_add_tags() } //} - fn get_tag_list(&self) -> Option { + fn tag_list(&self) -> Option { unsafe { from_glib_none(ffi::gst_tag_setter_get_tag_list( self.as_ref().to_glib_none().0, @@ -77,7 +77,7 @@ impl> TagSetterExt for O { } } - fn get_tag_merge_mode(&self) -> TagMergeMode { + fn tag_merge_mode(&self) -> TagMergeMode { unsafe { from_glib(ffi::gst_tag_setter_get_tag_merge_mode( self.as_ref().to_glib_none().0, diff --git a/gstreamer/src/auto/toc_setter.rs b/gstreamer/src/auto/toc_setter.rs index aa078a723..b205ddf1c 100644 --- a/gstreamer/src/auto/toc_setter.rs +++ b/gstreamer/src/auto/toc_setter.rs @@ -24,7 +24,7 @@ pub const NONE_TOC_SETTER: Option<&TocSetter> = None; pub trait TocSetterExt: 'static { #[doc(alias = "gst_toc_setter_get_toc")] - fn get_toc(&self) -> Option; + fn toc(&self) -> Option; #[doc(alias = "gst_toc_setter_reset")] fn reset(&self); @@ -34,7 +34,7 @@ pub trait TocSetterExt: 'static { } impl> TocSetterExt for O { - fn get_toc(&self) -> Option { + fn toc(&self) -> Option { unsafe { from_glib_full(ffi::gst_toc_setter_get_toc(self.as_ref().to_glib_none().0)) } } diff --git a/gstreamer/src/auto/type_find_factory.rs b/gstreamer/src/auto/type_find_factory.rs index 839e4b276..486b51fbc 100644 --- a/gstreamer/src/auto/type_find_factory.rs +++ b/gstreamer/src/auto/type_find_factory.rs @@ -23,12 +23,12 @@ impl TypeFindFactory { //} #[doc(alias = "gst_type_find_factory_get_caps")] - pub fn get_caps(&self) -> Option { + pub fn caps(&self) -> Option { unsafe { from_glib_none(ffi::gst_type_find_factory_get_caps(self.to_glib_none().0)) } } #[doc(alias = "gst_type_find_factory_get_extensions")] - pub fn get_extensions(&self) -> Vec { + pub fn extensions(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_none(ffi::gst_type_find_factory_get_extensions( self.to_glib_none().0, diff --git a/gstreamer/src/auto/uri_handler.rs b/gstreamer/src/auto/uri_handler.rs index ba4174a7a..e2e1e6fc8 100644 --- a/gstreamer/src/auto/uri_handler.rs +++ b/gstreamer/src/auto/uri_handler.rs @@ -23,20 +23,20 @@ pub const NONE_URI_HANDLER: Option<&URIHandler> = None; pub trait URIHandlerExt: 'static { #[doc(alias = "gst_uri_handler_get_protocols")] - fn get_protocols(&self) -> Vec; + fn protocols(&self) -> Vec; #[doc(alias = "gst_uri_handler_get_uri")] - fn get_uri(&self) -> Option; + fn uri(&self) -> Option; #[doc(alias = "gst_uri_handler_get_uri_type")] - fn get_uri_type(&self) -> URIType; + fn uri_type(&self) -> URIType; #[doc(alias = "gst_uri_handler_set_uri")] fn set_uri(&self, uri: &str) -> Result<(), glib::Error>; } impl> URIHandlerExt for O { - fn get_protocols(&self) -> Vec { + fn protocols(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_none(ffi::gst_uri_handler_get_protocols( self.as_ref().to_glib_none().0, @@ -44,11 +44,11 @@ impl> URIHandlerExt for O { } } - fn get_uri(&self) -> Option { + fn uri(&self) -> Option { unsafe { from_glib_full(ffi::gst_uri_handler_get_uri(self.as_ref().to_glib_none().0)) } } - fn get_uri_type(&self) -> URIType { + fn uri_type(&self) -> URIType { unsafe { from_glib(ffi::gst_uri_handler_get_uri_type( self.as_ref().to_glib_none().0, diff --git a/gstreamer/src/auto/versions.txt b/gstreamer/src/auto/versions.txt index 2061f177b..3895717b6 100644 --- a/gstreamer/src/auto/versions.txt +++ b/gstreamer/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) diff --git a/gstreamer/sys/build.rs b/gstreamer/sys/build.rs index d68dd0cdc..961fb48a8 100644 --- a/gstreamer/sys/build.rs +++ b/gstreamer/sys/build.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer/sys/src/lib.rs b/gstreamer/sys/src/lib.rs index 50d466e79..9024247d3 100644 --- a/gstreamer/sys/src/lib.rs +++ b/gstreamer/sys/src/lib.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer/sys/tests/abi.rs b/gstreamer/sys/tests/abi.rs index 84d0d362b..bd0402b6e 100644 --- a/gstreamer/sys/tests/abi.rs +++ b/gstreamer/sys/tests/abi.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer/sys/tests/constant.c b/gstreamer/sys/tests/constant.c index 9032695db..cbc1314e0 100644 --- a/gstreamer/sys/tests/constant.c +++ b/gstreamer/sys/tests/constant.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer/sys/tests/layout.c b/gstreamer/sys/tests/layout.c index b612a0f69..3a38b676d 100644 --- a/gstreamer/sys/tests/layout.c +++ b/gstreamer/sys/tests/layout.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 28780fd) +// Generated by gir (https://github.com/gtk-rs/gir @ 3c6ebf4) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT