USBGuard
Software framework that protects your computer against rogue USB devices by implementing basic whitelisting and blacklisting capabilities.
Public Member Functions | List of all members
usbguard::DeviceManagerHooks Class Referenceabstract

Allows reacting to device events. More...

#include <DeviceManagerHooks.hpp>

Public Member Functions

virtual void dmHookDeviceEvent (DeviceManager::EventType event, std::shared_ptr< Device > device)
 Device manager hook can react to USB device event through this method. More...
 
virtual uint32_t dmHookAssignID ()=0
 Device manager hook can assign ID to the USB device through this method. More...
 
virtual void dmHookDeviceException (const std::string &message)=0
 Device manager hook can react to USB device exceptions through this method. More...
 

Detailed Description

Allows reacting to device events.

Member Function Documentation

◆ dmHookAssignID()

virtual uint32_t usbguard::DeviceManagerHooks::dmHookAssignID ( )
pure virtual

Device manager hook can assign ID to the USB device through this method.

Returns
New ID of USB device.

◆ dmHookDeviceEvent()

void usbguard::DeviceManagerHooks::dmHookDeviceEvent ( DeviceManager::EventType  event,
std::shared_ptr< Device device 
)
virtual

Device manager hook can react to USB device event through this method.

Parameters
eventUSB device event.
deviceUSB device that caused the event.

◆ dmHookDeviceException()

virtual void usbguard::DeviceManagerHooks::dmHookDeviceException ( const std::string &  message)
pure virtual

Device manager hook can react to USB device exceptions through this method.

Parameters
messageException message.

The documentation for this class was generated from the following files: