mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-22 17:41:05 +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::ptr;
|
||||||
use std::slice;
|
use std::slice;
|
||||||
|
|
||||||
pub struct Readable;
|
pub enum Readable {}
|
||||||
pub struct Writable;
|
pub enum Writable {}
|
||||||
|
|
||||||
pub struct VideoFrame<T>(
|
pub struct VideoFrame<T>(
|
||||||
ffi::GstVideoFrame,
|
ffi::GstVideoFrame,
|
||||||
Option<gst::Buffer>,
|
Option<gst::Buffer>,
|
||||||
|
|
|
@ -24,8 +24,8 @@ use glib;
|
||||||
use glib::translate::{from_glib, from_glib_full, ToGlib};
|
use glib::translate::{from_glib, from_glib_full, ToGlib};
|
||||||
use glib_ffi;
|
use glib_ffi;
|
||||||
|
|
||||||
pub struct Readable;
|
pub enum Readable {}
|
||||||
pub struct Writable;
|
pub enum Writable {}
|
||||||
|
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
pub struct BufferRef(ffi::GstBuffer);
|
pub struct BufferRef(ffi::GstBuffer);
|
||||||
|
|
|
@ -30,7 +30,7 @@ pub trait Tag<'a> {
|
||||||
|
|
||||||
macro_rules! impl_tag(
|
macro_rules! impl_tag(
|
||||||
($name:ident, $t:ty, $rust_tag:ident, $gst_tag:ident) => {
|
($name:ident, $t:ty, $rust_tag:ident, $gst_tag:ident) => {
|
||||||
pub struct $name;
|
pub enum $name {}
|
||||||
impl<'a> Tag<'a> for $name {
|
impl<'a> Tag<'a> for $name {
|
||||||
type TagType = $t;
|
type TagType = $t;
|
||||||
fn tag_name<'b>() -> &'b str {
|
fn tag_name<'b>() -> &'b str {
|
||||||
|
|
Loading…
Reference in a new issue