Commit eb0499d8 authored by spiiroin's avatar spiiroin

[usb_moded] Refactor startup and exit

The main() function in usb-moded is long and difficult to read.

Move code into separate functions to deal with command line parsing,
initialization during service startup and cleaning up on exit path.
Signed-off-by: spiiroin's avatarSimo Piiroinen <simo.piiroinen@jollamobile.com>
parent 10ca284a
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment