mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-02-16 12:55:13 +00:00
doc: Mark request::user-agent as doc show default
This commit is contained in:
parent
67e651f57c
commit
16d804e761
2 changed files with 16 additions and 8 deletions
|
@ -2965,7 +2965,7 @@
|
||||||
"construct": false,
|
"construct": false,
|
||||||
"construct-only": false,
|
"construct-only": false,
|
||||||
"controllable": false,
|
"controllable": false,
|
||||||
"default": "GStreamer reqwesthttpsrc 0.9.0-1e55d9e1",
|
"default": "GStreamer reqwesthttpsrc",
|
||||||
"mutable": "ready",
|
"mutable": "ready",
|
||||||
"readable": true,
|
"readable": true,
|
||||||
"type": "gchararray",
|
"type": "gchararray",
|
||||||
|
|
|
@ -670,6 +670,20 @@ impl ReqwestHttpSrc {
|
||||||
impl ObjectImpl for ReqwestHttpSrc {
|
impl ObjectImpl for ReqwestHttpSrc {
|
||||||
fn properties() -> &'static [glib::ParamSpec] {
|
fn properties() -> &'static [glib::ParamSpec] {
|
||||||
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
|
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
|
||||||
|
#[allow(unused_mut)]
|
||||||
|
let mut user_agent_pspec = glib::ParamSpecString::builder("user-agent")
|
||||||
|
.nick("User-Agent")
|
||||||
|
.blurb("Value of the User-Agent HTTP request header field")
|
||||||
|
.default_value("GStreamer reqwesthttpsrc".into())
|
||||||
|
.readwrite()
|
||||||
|
.readwrite()
|
||||||
|
.mutable_ready();
|
||||||
|
|
||||||
|
#[cfg(feature = "doc")]
|
||||||
|
{
|
||||||
|
user_agent_pspec = user_agent_pspec.doc_show_default();
|
||||||
|
}
|
||||||
|
|
||||||
vec![
|
vec![
|
||||||
glib::ParamSpecString::builder("location")
|
glib::ParamSpecString::builder("location")
|
||||||
.nick("Location")
|
.nick("Location")
|
||||||
|
@ -677,13 +691,7 @@ impl ObjectImpl for ReqwestHttpSrc {
|
||||||
.readwrite()
|
.readwrite()
|
||||||
.mutable_ready()
|
.mutable_ready()
|
||||||
.build(),
|
.build(),
|
||||||
glib::ParamSpecString::builder("user-agent")
|
user_agent_pspec.build(),
|
||||||
.nick("User-Agent")
|
|
||||||
.blurb("Value of the User-Agent HTTP request header field")
|
|
||||||
.default_value(DEFAULT_USER_AGENT.into())
|
|
||||||
.readwrite()
|
|
||||||
.mutable_ready()
|
|
||||||
.build(),
|
|
||||||
glib::ParamSpecBoolean::builder("is-live")
|
glib::ParamSpecBoolean::builder("is-live")
|
||||||
.nick("Is Live")
|
.nick("Is Live")
|
||||||
.blurb("Act like a live source")
|
.blurb("Act like a live source")
|
||||||
|
|
Loading…
Reference in a new issue