diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-03-12 18:41:57 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-03-12 18:41:57 +0100 |
commit | ac1871e29a3fb3380d5682f4d6115463e92f984e (patch) | |
tree | 5ce463fe6b37058be294157a1ef1722879f988de | |
parent | drm: connection to multiple cards concurrently (diff) | |
download | blueshift-ac1871e29a3fb3380d5682f4d6115463e92f984e.tar.gz blueshift-ac1871e29a3fb3380d5682f4d6115463e92f984e.tar.bz2 blueshift-ac1871e29a3fb3380d5682f4d6115463e92f984e.tar.xz |
connect to multiple connectors concurrently
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/blueshift_drm_c.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/blueshift_drm_c.c b/src/blueshift_drm_c.c index 7d3df42..121b689 100644 --- a/src/blueshift_drm_c.c +++ b/src/blueshift_drm_c.c @@ -589,11 +589,21 @@ int main(int argc, char** argv) } } } - - blueshift_drm_close_connector(card, connector_i); } } + for (card_i = 0; card_i < card_n; card_i++) + { + int card = *(cards + card_i); + int connector_n = blueshift_drm_connector_count(card); + int connector_i; + + for (connector_i = 0; connector_i < connector_n; connector_i++) + blueshift_drm_close_connector(card, connector_i); + + blueshift_drm_close_card(card); + } + blueshift_drm_close(); return 0; } |