if (handler_connected->wakelock_duration)
event_acquire_wakelock(handler_connected->id, handler_connected->wakelock_duration);
+ if (handler_connected->broadcast)
+ event_broadcast_id(handler_connected->id);
+
if (handler_connected->action)
device_notify(handler_connected->action, handler_connected->user_data);
if (handler_disconnected->wakelock_duration)
event_acquire_wakelock(handler_disconnected->id, handler_disconnected->wakelock_duration);
+ if (handler_disconnected->broadcast)
+ event_broadcast_id(handler_disconnected->id);
+
if (handler_disconnected->action)
device_notify(handler_disconnected->action, handler_disconnected->user_data);