]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
print: Introduce print ops structure
authorDaniel Wagner <dwagner@suse.de>
Fri, 19 May 2023 16:33:29 +0000 (18:33 +0200)
committerDaniel Wagner <wagi@monom.org>
Mon, 5 Jun 2023 06:43:35 +0000 (08:43 +0200)
commit56a2ec76d2c1a2c14e179700e29a227deb0df48e
tree7da1a667e99be7c5c3c1c8941da7530058e305e9
parent0576d84bf4aa76bcbf9e3fab0f0a87ada74503c2
print: Introduce print ops structure

Introduce callbacks for printing the nvme data structures. With this we
are able to split the two printing types (stdout and json) and just use
the ops the user selects ('-o json' for example).

Signed-off-by: Daniel Wagner <dwagner@suse.de>
nvme-print.c
nvme-print.h