diff options
author | Arkadiusz Hiler <arkadiusz.hiler@intel.com> | 2020-02-25 18:56:41 +0200 |
---|---|---|
committer | Arkadiusz Hiler <arkadiusz.hiler@intel.com> | 2020-03-23 15:47:34 +0200 |
commit | 7cc807a29819b55932d052bc5e7ead51624451b5 (patch) | |
tree | 6e3bbda6fb98522d3ffdf84f9e7da03fb6831cee /lib/igt_chamelium.h | |
parent | 486659662d7345f6a4706b9adc3a7b3568602eee (diff) |
lib/chamelium: Make it clear that function asserts
chamelium_wait_reachable() is asserting internally if the chamelium not
reachable. Let's make it return bool instead and create
void chamelium_assert_reachable() that fails the run.
v2: Add docs (Petri)
Signed-off-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Reviewed-by: Petri Latvala <petri.latvala@intel.com>
Diffstat (limited to 'lib/igt_chamelium.h')
-rw-r--r-- | lib/igt_chamelium.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/igt_chamelium.h b/lib/igt_chamelium.h index bdfdd546..6d2b1002 100644 --- a/lib/igt_chamelium.h +++ b/lib/igt_chamelium.h @@ -112,7 +112,8 @@ drmModeConnector *chamelium_port_get_connector(struct chamelium *chamelium, bool reprobe); const char *chamelium_port_get_name(struct chamelium_port *port); -void chamelium_wait_reachable(struct chamelium *chamelium, int timeout); +bool chamelium_wait_reachable(struct chamelium *chamelium, int timeout); +void chamelium_assert_reachable(struct chamelium *chamelium, int timeout); void chamelium_plug(struct chamelium *chamelium, struct chamelium_port *port); void chamelium_unplug(struct chamelium *chamelium, struct chamelium_port *port); bool chamelium_is_plugged(struct chamelium *chamelium, |