Regenerate with latest gir

This switches the RTP constant strings over to once_cell::Lazy
This commit is contained in:
Sebastian Dröge 2020-01-22 19:13:24 +02:00
parent 5f3d241b7d
commit 196a9891cb
19 changed files with 136 additions and 171 deletions

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 5836573)
from gir-files (https://github.com/gtk-rs/gir-files @ c067e63)
Generated by gir (https://github.com/gtk-rs/gir @ 0a4cfc4)
from gir-files (https://github.com/gtk-rs/gir-files @ 4607c4a0)

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 5836573)
from gir-files (https://github.com/gtk-rs/gir-files @ 7e30d32)
Generated by gir (https://github.com/gtk-rs/gir @ 0a4cfc4)
from gir-files (https://github.com/gtk-rs/gir-files @ 4607c4a0)

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 5836573)
from gir-files (https://github.com/gtk-rs/gir-files @ c067e63)
Generated by gir (https://github.com/gtk-rs/gir @ 0a4cfc4)
from gir-files (https://github.com/gtk-rs/gir-files @ 4607c4a0)

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 5836573)
from gir-files (https://github.com/gtk-rs/gir-files @ c067e63)
Generated by gir (https://github.com/gtk-rs/gir @ 0a4cfc4)
from gir-files (https://github.com/gtk-rs/gir-files @ 4607c4a0)

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 5836573)
from gir-files (https://github.com/gtk-rs/gir-files @ c067e63)
Generated by gir (https://github.com/gtk-rs/gir @ 0a4cfc4)
from gir-files (https://github.com/gtk-rs/gir-files @ 4607c4a0)

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 5836573)
from gir-files (https://github.com/gtk-rs/gir-files @ c067e63)
Generated by gir (https://github.com/gtk-rs/gir @ 0a4cfc4)
from gir-files (https://github.com/gtk-rs/gir-files @ 4607c4a0)

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 5836573)
from gir-files (https://github.com/gtk-rs/gir-files @ c067e63)
Generated by gir (https://github.com/gtk-rs/gir @ 0a4cfc4)
from gir-files (https://github.com/gtk-rs/gir-files @ 4607c4a0)

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 5836573)
from gir-files (https://github.com/gtk-rs/gir-files @ c067e63)
Generated by gir (https://github.com/gtk-rs/gir @ 0a4cfc4)
from gir-files (https://github.com/gtk-rs/gir-files @ 4607c4a0)

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 5836573)
from gir-files (https://github.com/gtk-rs/gir-files @ c067e63)
Generated by gir (https://github.com/gtk-rs/gir @ 0a4cfc4)
from gir-files (https://github.com/gtk-rs/gir-files @ 4607c4a0)

View file

@ -14,7 +14,7 @@ build = "build.rs"
[dependencies]
bitflags = "1.0"
lazy_static = "1.0"
once_cell = "1.0"
glib-sys = { git = "https://github.com/gtk-rs/sys" }
gobject-sys = { git = "https://github.com/gtk-rs/sys" }
gstreamer-sys = { git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs-sys", features = ["v1_8"] }

View file

@ -5,241 +5,207 @@
use gst_rtp_sys;
use std::ffi::CStr;
lazy_static! {
pub static ref RTP_HDREXT_BASE: &'static str = unsafe {
pub static RTP_HDREXT_BASE: once_cell::sync::Lazy<&'static str> =
once_cell::sync::Lazy::new(|| unsafe {
CStr::from_ptr(gst_rtp_sys::GST_RTP_HDREXT_BASE)
.to_str()
.unwrap()
};
}
lazy_static! {
pub static ref RTP_HDREXT_NTP_56: &'static str = unsafe {
});
pub static RTP_HDREXT_NTP_56: once_cell::sync::Lazy<&'static str> =
once_cell::sync::Lazy::new(|| unsafe {
CStr::from_ptr(gst_rtp_sys::GST_RTP_HDREXT_NTP_56)
.to_str()
.unwrap()
};
}
lazy_static! {
pub static ref RTP_HDREXT_NTP_64: &'static str = unsafe {
});
pub static RTP_HDREXT_NTP_64: once_cell::sync::Lazy<&'static str> =
once_cell::sync::Lazy::new(|| unsafe {
CStr::from_ptr(gst_rtp_sys::GST_RTP_HDREXT_NTP_64)
.to_str()
.unwrap()
};
}
lazy_static! {
pub static ref RTP_PAYLOAD_1016_STRING: &'static str = unsafe {
});
pub static RTP_PAYLOAD_1016_STRING: once_cell::sync::Lazy<&'static str> =
once_cell::sync::Lazy::new(|| unsafe {
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_1016_STRING)
.to_str()
.unwrap()
};
}
lazy_static! {
pub static ref RTP_PAYLOAD_CELLB_STRING: &'static str = unsafe {
});
pub static RTP_PAYLOAD_CELLB_STRING: once_cell::sync::Lazy<&'static str> =
once_cell::sync::Lazy::new(|| unsafe {
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_CELLB_STRING)
.to_str()
.unwrap()
};
}
lazy_static! {
pub static ref RTP_PAYLOAD_CN_STRING: &'static str = unsafe {
});
pub static RTP_PAYLOAD_CN_STRING: once_cell::sync::Lazy<&'static str> =
once_cell::sync::Lazy::new(|| unsafe {
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_CN_STRING)
.to_str()
.unwrap()
};
}
lazy_static! {
pub static ref RTP_PAYLOAD_DVI4_11025_STRING: &'static str = unsafe {
});
pub static RTP_PAYLOAD_DVI4_11025_STRING: once_cell::sync::Lazy<&'static str> =
once_cell::sync::Lazy::new(|| unsafe {
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_DVI4_11025_STRING)
.to_str()
.unwrap()
};
}
lazy_static! {
pub static ref RTP_PAYLOAD_DVI4_16000_STRING: &'static str = unsafe {
});
pub static RTP_PAYLOAD_DVI4_16000_STRING: once_cell::sync::Lazy<&'static str> =
once_cell::sync::Lazy::new(|| unsafe {
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_DVI4_16000_STRING)
.to_str()
.unwrap()
};
}
lazy_static! {
pub static ref RTP_PAYLOAD_DVI4_22050_STRING: &'static str = unsafe {
});
pub static RTP_PAYLOAD_DVI4_22050_STRING: once_cell::sync::Lazy<&'static str> =
once_cell::sync::Lazy::new(|| unsafe {
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_DVI4_22050_STRING)
.to_str()
.unwrap()
};
}
lazy_static! {
pub static ref RTP_PAYLOAD_DVI4_8000_STRING: &'static str = unsafe {
});
pub static RTP_PAYLOAD_DVI4_8000_STRING: once_cell::sync::Lazy<&'static str> =
once_cell::sync::Lazy::new(|| unsafe {
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_DVI4_8000_STRING)
.to_str()
.unwrap()
};
}
lazy_static! {
pub static ref RTP_PAYLOAD_DYNAMIC_STRING: &'static str = unsafe {
});
pub static RTP_PAYLOAD_DYNAMIC_STRING: once_cell::sync::Lazy<&'static str> =
once_cell::sync::Lazy::new(|| unsafe {
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_DYNAMIC_STRING)
.to_str()
.unwrap()
};
}
lazy_static! {
pub static ref RTP_PAYLOAD_G721_STRING: &'static str = unsafe {
});
pub static RTP_PAYLOAD_G721_STRING: once_cell::sync::Lazy<&'static str> =
once_cell::sync::Lazy::new(|| unsafe {
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_G721_STRING)
.to_str()
.unwrap()
};
}
lazy_static! {
pub static ref RTP_PAYLOAD_G722_STRING: &'static str = unsafe {
});
pub static RTP_PAYLOAD_G722_STRING: once_cell::sync::Lazy<&'static str> =
once_cell::sync::Lazy::new(|| unsafe {
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_G722_STRING)
.to_str()
.unwrap()
};
}
lazy_static! {
pub static ref RTP_PAYLOAD_G723_53_STRING: &'static str = unsafe {
});
pub static RTP_PAYLOAD_G723_53_STRING: once_cell::sync::Lazy<&'static str> =
once_cell::sync::Lazy::new(|| unsafe {
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_G723_53_STRING)
.to_str()
.unwrap()
};
}
lazy_static! {
pub static ref RTP_PAYLOAD_G723_63_STRING: &'static str = unsafe {
});
pub static RTP_PAYLOAD_G723_63_STRING: once_cell::sync::Lazy<&'static str> =
once_cell::sync::Lazy::new(|| unsafe {
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_G723_63_STRING)
.to_str()
.unwrap()
};
}
lazy_static! {
pub static ref RTP_PAYLOAD_G723_STRING: &'static str = unsafe {
});
pub static RTP_PAYLOAD_G723_STRING: once_cell::sync::Lazy<&'static str> =
once_cell::sync::Lazy::new(|| unsafe {
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_G723_STRING)
.to_str()
.unwrap()
};
}
lazy_static! {
pub static ref RTP_PAYLOAD_G728_STRING: &'static str = unsafe {
});
pub static RTP_PAYLOAD_G728_STRING: once_cell::sync::Lazy<&'static str> =
once_cell::sync::Lazy::new(|| unsafe {
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_G728_STRING)
.to_str()
.unwrap()
};
}
lazy_static! {
pub static ref RTP_PAYLOAD_G729_STRING: &'static str = unsafe {
});
pub static RTP_PAYLOAD_G729_STRING: once_cell::sync::Lazy<&'static str> =
once_cell::sync::Lazy::new(|| unsafe {
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_G729_STRING)
.to_str()
.unwrap()
};
}
lazy_static! {
pub static ref RTP_PAYLOAD_GSM_STRING: &'static str = unsafe {
});
pub static RTP_PAYLOAD_GSM_STRING: once_cell::sync::Lazy<&'static str> =
once_cell::sync::Lazy::new(|| unsafe {
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_GSM_STRING)
.to_str()
.unwrap()
};
}
lazy_static! {
pub static ref RTP_PAYLOAD_H261_STRING: &'static str = unsafe {
});
pub static RTP_PAYLOAD_H261_STRING: once_cell::sync::Lazy<&'static str> =
once_cell::sync::Lazy::new(|| unsafe {
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_H261_STRING)
.to_str()
.unwrap()
};
}
lazy_static! {
pub static ref RTP_PAYLOAD_H263_STRING: &'static str = unsafe {
});
pub static RTP_PAYLOAD_H263_STRING: once_cell::sync::Lazy<&'static str> =
once_cell::sync::Lazy::new(|| unsafe {
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_H263_STRING)
.to_str()
.unwrap()
};
}
lazy_static! {
pub static ref RTP_PAYLOAD_JPEG_STRING: &'static str = unsafe {
});
pub static RTP_PAYLOAD_JPEG_STRING: once_cell::sync::Lazy<&'static str> =
once_cell::sync::Lazy::new(|| unsafe {
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_JPEG_STRING)
.to_str()
.unwrap()
};
}
lazy_static! {
pub static ref RTP_PAYLOAD_L16_MONO_STRING: &'static str = unsafe {
});
pub static RTP_PAYLOAD_L16_MONO_STRING: once_cell::sync::Lazy<&'static str> =
once_cell::sync::Lazy::new(|| unsafe {
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_L16_MONO_STRING)
.to_str()
.unwrap()
};
}
lazy_static! {
pub static ref RTP_PAYLOAD_L16_STEREO_STRING: &'static str = unsafe {
});
pub static RTP_PAYLOAD_L16_STEREO_STRING: once_cell::sync::Lazy<&'static str> =
once_cell::sync::Lazy::new(|| unsafe {
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_L16_STEREO_STRING)
.to_str()
.unwrap()
};
}
lazy_static! {
pub static ref RTP_PAYLOAD_LPC_STRING: &'static str = unsafe {
});
pub static RTP_PAYLOAD_LPC_STRING: once_cell::sync::Lazy<&'static str> =
once_cell::sync::Lazy::new(|| unsafe {
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_LPC_STRING)
.to_str()
.unwrap()
};
}
lazy_static! {
pub static ref RTP_PAYLOAD_MP2T_STRING: &'static str = unsafe {
});
pub static RTP_PAYLOAD_MP2T_STRING: once_cell::sync::Lazy<&'static str> =
once_cell::sync::Lazy::new(|| unsafe {
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_MP2T_STRING)
.to_str()
.unwrap()
};
}
lazy_static! {
pub static ref RTP_PAYLOAD_MPA_STRING: &'static str = unsafe {
});
pub static RTP_PAYLOAD_MPA_STRING: once_cell::sync::Lazy<&'static str> =
once_cell::sync::Lazy::new(|| unsafe {
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_MPA_STRING)
.to_str()
.unwrap()
};
}
lazy_static! {
pub static ref RTP_PAYLOAD_MPV_STRING: &'static str = unsafe {
});
pub static RTP_PAYLOAD_MPV_STRING: once_cell::sync::Lazy<&'static str> =
once_cell::sync::Lazy::new(|| unsafe {
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_MPV_STRING)
.to_str()
.unwrap()
};
}
lazy_static! {
pub static ref RTP_PAYLOAD_NV_STRING: &'static str = unsafe {
});
pub static RTP_PAYLOAD_NV_STRING: once_cell::sync::Lazy<&'static str> =
once_cell::sync::Lazy::new(|| unsafe {
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_NV_STRING)
.to_str()
.unwrap()
};
}
lazy_static! {
pub static ref RTP_PAYLOAD_PCMA_STRING: &'static str = unsafe {
});
pub static RTP_PAYLOAD_PCMA_STRING: once_cell::sync::Lazy<&'static str> =
once_cell::sync::Lazy::new(|| unsafe {
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_PCMA_STRING)
.to_str()
.unwrap()
};
}
lazy_static! {
pub static ref RTP_PAYLOAD_PCMU_STRING: &'static str = unsafe {
});
pub static RTP_PAYLOAD_PCMU_STRING: once_cell::sync::Lazy<&'static str> =
once_cell::sync::Lazy::new(|| unsafe {
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_PCMU_STRING)
.to_str()
.unwrap()
};
}
lazy_static! {
pub static ref RTP_PAYLOAD_QCELP_STRING: &'static str = unsafe {
});
pub static RTP_PAYLOAD_QCELP_STRING: once_cell::sync::Lazy<&'static str> =
once_cell::sync::Lazy::new(|| unsafe {
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_QCELP_STRING)
.to_str()
.unwrap()
};
}
lazy_static! {
pub static ref RTP_PAYLOAD_TS41_STRING: &'static str = unsafe {
});
pub static RTP_PAYLOAD_TS41_STRING: once_cell::sync::Lazy<&'static str> =
once_cell::sync::Lazy::new(|| unsafe {
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_TS41_STRING)
.to_str()
.unwrap()
};
}
lazy_static! {
pub static ref RTP_PAYLOAD_TS48_STRING: &'static str = unsafe {
});
pub static RTP_PAYLOAD_TS48_STRING: once_cell::sync::Lazy<&'static str> =
once_cell::sync::Lazy::new(|| unsafe {
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_TS48_STRING)
.to_str()
.unwrap()
};
}
});

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 5836573)
from gir-files (https://github.com/gtk-rs/gir-files @ c067e63)
Generated by gir (https://github.com/gtk-rs/gir @ 0a4cfc4)
from gir-files (https://github.com/gtk-rs/gir-files @ 4607c4a0)

View file

@ -8,8 +8,7 @@
#[macro_use]
extern crate bitflags;
#[macro_use]
extern crate lazy_static;
extern crate once_cell;
#[allow(unused_imports)]
#[macro_use]

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 5836573)
from gir-files (https://github.com/gtk-rs/gir-files @ c067e63)
Generated by gir (https://github.com/gtk-rs/gir @ 0a4cfc4)
from gir-files (https://github.com/gtk-rs/gir-files @ 4607c4a0)

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 5836573)
from gir-files (https://github.com/gtk-rs/gir-files @ c067e63)
Generated by gir (https://github.com/gtk-rs/gir @ 0a4cfc4)
from gir-files (https://github.com/gtk-rs/gir-files @ 4607c4a0)

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 5836573)
from gir-files (https://github.com/gtk-rs/gir-files @ c067e63)
Generated by gir (https://github.com/gtk-rs/gir @ 0a4cfc4)
from gir-files (https://github.com/gtk-rs/gir-files @ 4607c4a0)

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 5836573)
from gir-files (https://github.com/gtk-rs/gir-files @ c067e63)
Generated by gir (https://github.com/gtk-rs/gir @ 0a4cfc4)
from gir-files (https://github.com/gtk-rs/gir-files @ 4607c4a0)

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 5836573)
from gir-files (https://github.com/gtk-rs/gir-files @ c067e63)
Generated by gir (https://github.com/gtk-rs/gir @ 0a4cfc4)
from gir-files (https://github.com/gtk-rs/gir-files @ 4607c4a0)

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 5836573)
from gir-files (https://github.com/gtk-rs/gir-files @ c067e63)
Generated by gir (https://github.com/gtk-rs/gir @ 0a4cfc4)
from gir-files (https://github.com/gtk-rs/gir-files @ 4607c4a0)