From 38f2db4e387cd5abf63954424ec05eaa549deb2b Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Sun, 27 Mar 2022 18:31:48 +0200 Subject: [PATCH] Update --- Cargo.toml | 10 +++++----- examples/feinfo.rs | 2 +- examples/femon.rs | 2 +- examples/netinfo.rs | 4 ++-- src/fe/sys.rs | 3 +++ 5 files changed, 12 insertions(+), 9 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index bd214cc..6fd5f6f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,8 +12,8 @@ categories = ["api-bindings", "hardware-support"] edition = "2018" [dependencies] -nix = "0.19" -anyhow = "1.0" -strum = { version = "0.23", features = ["derive"] } -bitflags = "1.3.2" -itertools = "0.10.2" +nix = "^0.23" +anyhow = "^1.0" +strum = { version = "^0.23", features = ["derive"] } +bitflags = "^1.3.2" +itertools = "^0.10.2" diff --git a/examples/feinfo.rs b/examples/feinfo.rs index 9239e32..f90e096 100644 --- a/examples/feinfo.rs +++ b/examples/feinfo.rs @@ -1,6 +1,6 @@ use { anyhow::{bail, Context, Result}, - libdvb::{FeDevice, FeStatus}, + libdvb_rs::{FeDevice, FeStatus}, }; fn main() -> Result<()> { diff --git a/examples/femon.rs b/examples/femon.rs index 0d1d685..9a4fed2 100644 --- a/examples/femon.rs +++ b/examples/femon.rs @@ -1,6 +1,6 @@ use { anyhow::{bail, Context, Result}, - libdvb::{FeDevice, FeStatus}, + libdvb_rs::{FeDevice, FeStatus}, std::{thread, time::Duration}, }; diff --git a/examples/netinfo.rs b/examples/netinfo.rs index 4427792..ed97c75 100644 --- a/examples/netinfo.rs +++ b/examples/netinfo.rs @@ -1,6 +1,6 @@ use { anyhow::{bail, Context, Result}, - libdvb::NetDevice, + libdvb_rs::NetDevice, }; fn main() -> Result<()> { @@ -18,7 +18,7 @@ fn main() -> Result<()> { 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); let mac = interface.get_mac(); println!("MAC: {}", &mac); diff --git a/src/fe/sys.rs b/src/fe/sys.rs index 72b052b..c7db82a 100644 --- a/src/fe/sys.rs +++ b/src/fe/sys.rs @@ -863,6 +863,9 @@ macro_rules! dtv_property { ( $property:ident($data:expr) ) => { $property(DtvPropertyRequest::new($data)) }; + ( $property:ident, $data:expr ) => { + $property(DtvPropertyRequest::new($data)) + }; } #[macro_export]