-
-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6735ea3
commit d430f7f
Showing
2 changed files
with
135 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,8 @@ | |
# Copyright (C) 2010-2016 Joanna Rutkowska <[email protected]> | ||
# Copyright (C) 2015-2016 Wojtek Porczyk <[email protected]> | ||
# Copyright (C) 2016 Bahtiar `kalkin-` Gadimov <[email protected]> | ||
# Copyright (C) 2024 Piotr Bartman-Szwarc | ||
# <[email protected]> | ||
# | ||
# This library is free software; you can redistribute it and/or | ||
# modify it under the terms of the GNU Lesser General Public | ||
|
@@ -41,9 +43,10 @@ | |
domain; it should return a list of appropriate DeviceInfo objects | ||
- handle `device-get:bus` event - get one device object exposed by this | ||
domain of given identifier | ||
- handle `device-list-attached:class` event - list devices currently attached | ||
- handle `device-list-attached:bus` event - list devices currently attached | ||
to this domain | ||
- fire `device-list-change:class` event when a device list change is detected | ||
- fire `device-list-change:bus` and following `device-added:bus` or | ||
`device-removed:bus` events when a device list change is detected | ||
(new/removed device) | ||
Note that device-listing event handlers cannot be asynchronous. This for | ||
|
@@ -931,7 +934,11 @@ class DeviceCollection: | |
.. event:: device-added:<class> (device) | ||
Fired when new device is discovered to a VM. | ||
Fired when new device is discovered. | ||
.. event:: device-removed:<class> (device) | ||
Fired when device is no longer exposed by a backend VM. | ||
.. event:: device-attach:<class> (device, options) | ||
|