1
0
mirror of https://github.com/danog/libdvb.git synced 2024-11-26 20:04:39 +01:00

move sys::* to separate modules

This commit is contained in:
Andrey Dyldin 2021-01-22 21:46:15 +02:00
parent 7843edb216
commit cfa179f674
10 changed files with 21 additions and 31 deletions

View File

@ -2,6 +2,7 @@ mod asn1;
mod tpdu; mod tpdu;
mod spdu; mod spdu;
mod apdu; mod apdu;
mod sys;
use { use {
@ -26,13 +27,12 @@ use {
Context, Context,
}, },
crate::{ crate::ioctl::{
sys::{ ioctl,
ioctl, IoctlInt,
IoctlInt,
ca::*,
},
}, },
sys::*,
}; };

View File

@ -3,7 +3,7 @@ use {
mem, mem,
}, },
super::{ crate::ioctl::{
IoctlInt, IoctlInt,
io_none, io_none,
io_read, io_read,

1
src/dmx/mod.rs Normal file
View File

@ -0,0 +1 @@
mod sys;

View File

@ -1,5 +1,5 @@
use { use {
super::{ crate::ioctl::{
IoctlInt, IoctlInt,
io_none, io_none,
io_write, io_write,

View File

@ -1,4 +1,5 @@
mod status; mod status;
mod sys;
use { use {
@ -32,13 +33,12 @@ use {
libc, libc,
thiserror::Error, thiserror::Error,
crate::{ crate::ioctl::{
sys::{ ioctl,
ioctl, IoctlInt,
IoctlInt,
frontend::*,
},
}, },
sys::*,
}; };

View File

@ -3,9 +3,9 @@ use {
anyhow::Result, anyhow::Result,
crate::{ super::{
sys::frontend::*,
FeDevice, FeDevice,
sys::*,
}, },
}; };

View File

@ -6,7 +6,7 @@ use {
libc, libc,
super::{ crate::ioctl::{
IoctlInt, IoctlInt,
io_none, io_none,
io_read, io_read,

View File

@ -2,9 +2,11 @@
extern crate anyhow; extern crate anyhow;
pub mod sys; pub mod ioctl;
mod ca; mod ca;
mod fe; mod fe;
mod dmx;
pub use { pub use {

View File

@ -1,13 +0,0 @@
mod ioctl;
pub use ioctl::{
IoctlInt,
ioctl,
io_none,
io_read,
io_write,
io_rw,
};
pub mod ca;
pub mod dmx;
pub mod frontend;