Free some additional structures from winapi properly
This commit is contained in:
@@ -1,18 +1,12 @@
|
||||
use windows::{
|
||||
Win32::{
|
||||
Media::Audio::{
|
||||
IMMNotificationClient, IMMNotificationClient_Impl,
|
||||
},
|
||||
},
|
||||
};
|
||||
use windows::Win32::Media::Audio::{IMMNotificationClient, IMMNotificationClient_Impl};
|
||||
|
||||
pub trait DeviceNotificationObserver {
|
||||
fn add_device(&self, device_id : &windows::core::PCWSTR);
|
||||
fn add_device(&self, device_id: &windows::core::PCWSTR);
|
||||
}
|
||||
|
||||
#[windows::core::implement(IMMNotificationClient)]
|
||||
pub(crate) struct DeviceNotificationClient {
|
||||
pub observer: Box<dyn DeviceNotificationObserver>
|
||||
pub observer: Box<dyn DeviceNotificationObserver>,
|
||||
}
|
||||
|
||||
impl IMMNotificationClient_Impl for DeviceNotificationClient {
|
||||
|
||||
Reference in New Issue
Block a user