mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-09-25 21:40:10 +00:00
31 lines
794 B
Rust
31 lines
794 B
Rust
// Copyright (C) 2018 Sebastian Dröge <sebastian@centricular.com>
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
|
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
|
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
|
// option. This file may not be copied, modified, or distributed
|
|
// except according to those terms.
|
|
|
|
use ffi;
|
|
|
|
#[repr(C)]
|
|
#[derive(Debug)]
|
|
pub struct MIKEYMapSRTP(ffi::GstMIKEYMapSRTP);
|
|
|
|
impl MIKEYMapSRTP {
|
|
pub fn new(policy: u8, ssrc: u32, roc: u32) -> MIKEYMapSRTP {
|
|
MIKEYMapSRTP(ffi::GstMIKEYMapSRTP { policy, ssrc, roc })
|
|
}
|
|
|
|
pub fn policy(&self) -> u8 {
|
|
self.0.policy
|
|
}
|
|
|
|
pub fn ssrc(&self) -> u32 {
|
|
self.0.ssrc
|
|
}
|
|
|
|
pub fn roc(&self) -> u32 {
|
|
self.0.roc
|
|
}
|
|
}
|