mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-22 09:31:06 +00:00
Change some empty structs to empty enums
These should only really exist at the type-level.
This commit is contained in:
parent
26d9d304c4
commit
632d5f4c57
3 changed files with 6 additions and 5 deletions
|
@ -20,8 +20,9 @@ use std::ops;
|
|||
use std::ptr;
|
||||
use std::slice;
|
||||
|
||||
pub struct Readable;
|
||||
pub struct Writable;
|
||||
pub enum Readable {}
|
||||
pub enum Writable {}
|
||||
|
||||
pub struct VideoFrame<T>(
|
||||
ffi::GstVideoFrame,
|
||||
Option<gst::Buffer>,
|
||||
|
|
|
@ -24,8 +24,8 @@ use glib;
|
|||
use glib::translate::{from_glib, from_glib_full, ToGlib};
|
||||
use glib_ffi;
|
||||
|
||||
pub struct Readable;
|
||||
pub struct Writable;
|
||||
pub enum Readable {}
|
||||
pub enum Writable {}
|
||||
|
||||
#[repr(C)]
|
||||
pub struct BufferRef(ffi::GstBuffer);
|
||||
|
|
|
@ -30,7 +30,7 @@ pub trait Tag<'a> {
|
|||
|
||||
macro_rules! impl_tag(
|
||||
($name:ident, $t:ty, $rust_tag:ident, $gst_tag:ident) => {
|
||||
pub struct $name;
|
||||
pub enum $name {}
|
||||
impl<'a> Tag<'a> for $name {
|
||||
type TagType = $t;
|
||||
fn tag_name<'b>() -> &'b str {
|
||||
|
|
Loading…
Reference in a new issue