RDK Documentation (Open Sourced RDK Components)
device_manager Class Reference
Collaboration diagram for device_manager:
Collaboration graph

Data Structures

class  device_record
 

Public Member Functions

rusbCtrl_result_t init ()
 
rusbCtrl_result_t term ()
 
char * get_property (int identifier, const char *key)
 
int register_callback (rusbCtrl_devCallback_t callback, void *callback_data, int **device_list, int *device_list_size)
 
void process_control_event ()
 
void monitor_for_changes ()
 

Static Public Member Functions

static void * monitor_thread_wrapper (void *data)
 

Private Member Functions

void reset_device_records ()
 
void get_connected_devices_list (int **device_list, int *device_list_size)
 
rusbCtrl_result_t enumerate_connected_devices ()
 
bool add_device_to_records (struct udev_device *device, int &identifier)
 
bool remove_device_from_records (struct udev_device *device, int &identifier)
 
void print_device_properties (struct udev_device *device)
 
void process_udev_monitor_event ()
 
int get_new_identifier ()
 

Private Attributes

std::list< device_record * > m_device_records
 
pthread_mutex_t m_mutex
 
rusbCtrl_devCallback_t m_callback
 
void * m_callback_data
 
struct udev * m_udev_context
 
int m_last_used_identifier
 
bool m_enable_monitoring
 
pthread_t m_monitor_thread
 
struct udev_monitor * m_monitor
 
int m_control_pipe [2]
 

yes

Definition at line 67 of file usbctrl.cpp.


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