tools/record: deduplicate the device opening logic
authorPeter Hutterer <peter.hutterer@who-t.net>
Fri, 26 Mar 2021 00:06:47 +0000 (10:06 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Mon, 29 Mar 2021 22:26:30 +0000 (08:26 +1000)
commit7f4df04d59b1182fb8497f16dc5588bd6e1d4225
treeba4b14f4903f81714701e948fabe0a9521a03383
parent4da9349a918848585e2fea57a295382b67f71cfa
tools/record: deduplicate the device opening logic

With a new helper function strv_from_argv we can re-use the device opening
loop for all the use-cases we have.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
src/util-strings.c
src/util-strings.h
test/test-utils.c
tools/libinput-record.c