mirror of
https://github.com/danog/libdvb.git
synced 2024-11-26 20:04:39 +01:00
Update
This commit is contained in:
parent
9f1988adb8
commit
38f2db4e38
10
Cargo.toml
10
Cargo.toml
@ -12,8 +12,8 @@ categories = ["api-bindings", "hardware-support"]
|
|||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
nix = "0.19"
|
nix = "^0.23"
|
||||||
anyhow = "1.0"
|
anyhow = "^1.0"
|
||||||
strum = { version = "0.23", features = ["derive"] }
|
strum = { version = "^0.23", features = ["derive"] }
|
||||||
bitflags = "1.3.2"
|
bitflags = "^1.3.2"
|
||||||
itertools = "0.10.2"
|
itertools = "^0.10.2"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
use {
|
use {
|
||||||
anyhow::{bail, Context, Result},
|
anyhow::{bail, Context, Result},
|
||||||
libdvb::{FeDevice, FeStatus},
|
libdvb_rs::{FeDevice, FeStatus},
|
||||||
};
|
};
|
||||||
|
|
||||||
fn main() -> Result<()> {
|
fn main() -> Result<()> {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
use {
|
use {
|
||||||
anyhow::{bail, Context, Result},
|
anyhow::{bail, Context, Result},
|
||||||
libdvb::{FeDevice, FeStatus},
|
libdvb_rs::{FeDevice, FeStatus},
|
||||||
std::{thread, time::Duration},
|
std::{thread, time::Duration},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
use {
|
use {
|
||||||
anyhow::{bail, Context, Result},
|
anyhow::{bail, Context, Result},
|
||||||
libdvb::NetDevice,
|
libdvb_rs::NetDevice,
|
||||||
};
|
};
|
||||||
|
|
||||||
fn main() -> Result<()> {
|
fn main() -> Result<()> {
|
||||||
@ -18,7 +18,7 @@ fn main() -> Result<()> {
|
|||||||
|
|
||||||
let dev = NetDevice::open(adapter, device)?;
|
let dev = NetDevice::open(adapter, device)?;
|
||||||
|
|
||||||
let interface = dev.add_if(0, libdvb::net::sys::DVB_NET_FEEDTYPE_MPE)?;
|
let interface = dev.add_if(0, libdvb_rs::net::sys::DVB_NET_FEEDTYPE_MPE)?;
|
||||||
println!("Interface: {}", &interface);
|
println!("Interface: {}", &interface);
|
||||||
let mac = interface.get_mac();
|
let mac = interface.get_mac();
|
||||||
println!("MAC: {}", &mac);
|
println!("MAC: {}", &mac);
|
||||||
|
@ -863,6 +863,9 @@ macro_rules! dtv_property {
|
|||||||
( $property:ident($data:expr) ) => {
|
( $property:ident($data:expr) ) => {
|
||||||
$property(DtvPropertyRequest::new($data))
|
$property(DtvPropertyRequest::new($data))
|
||||||
};
|
};
|
||||||
|
( $property:ident, $data:expr ) => {
|
||||||
|
$property(DtvPropertyRequest::new($data))
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
|
Loading…
Reference in New Issue
Block a user