#
1838dbf9 |
| 05-Jun-2024 |
Shawn McCarney <shawnmm@us.ibm.com> |
Move D-Bus finder class constructors
Three classes in this repository search for D-Bus interfaces and call a callback when interfaces are found: - DBusInterfacesFinder - CompatibleSystemTypesFinder
Move D-Bus finder class constructors
Three classes in this repository search for D-Bus interfaces and call a callback when interfaces are found: - DBusInterfacesFinder - CompatibleSystemTypesFinder - DeviceFinder
The constructors of these three classes may immediately call the callback. For this reason, these constructors should not be used in the initialization list of constructors in other classes. Otherwise the callback may be called before the other class is fully initialized, leading to unpredictable behavior.
Move usage of these three constructors from initialization lists to constructor bodies.
Tested: + CompatibleSystemTypesFinder + Test where compatible system types interface already exists on D-Bus + Verify callback is called immediately + Test where compatible system types interface does not already exist on D-Bus + Verify callback is called later when interface is added + Verify callback is passed the correct data + DeviceFinder + Test where device interface already exists on D-Bus + Verify callback is called immediately + Test where device interface does not already exist on D-Bus + Verify callback is called later when interface is added + Verify callback is passed the correct data
Change-Id: If089f4720012d837b464137b5d3c8fba5dbdc335 Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com>
show more ...
|
#
452de22e |
| 30-May-2024 |
Shawn McCarney <shawnmm@us.ibm.com> |
pseq: Create class for finding devices
Create class for finding power sequencer devices in the system.
Tested: * See test plan at https://gist.github.com/smccarney/115a90a26a04e28c226d4e86eaf84cb
pseq: Create class for finding devices
Create class for finding power sequencer devices in the system.
Tested: * See test plan at https://gist.github.com/smccarney/115a90a26a04e28c226d4e86eaf84cbf
Change-Id: I024eb6ccf82ea30c08c558194c19afcba8dcf5a2 Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com>
show more ...
|