Skip to content

Commit dcf4423

Browse files
committed
cmds: move command function to their own header
Split the ioctl APIs from the commands API. While at it, also remove a few of the unnecessary header dependencies. The aim here is to make the ioctl header as small as possible. This will make any porting attempts simpler. Signed-off-by: Daniel Wagner <[email protected]>
1 parent 6eaa535 commit dcf4423

10 files changed

Lines changed: 6910 additions & 6891 deletions

File tree

libnvme/src/libnvme-mi.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ extern "C" {
1414
#endif
1515

1616
#include <nvme/types.h>
17+
#include <nvme/cmds.h>
1718
#include <nvme/mi.h>
1819
#include <nvme/log.h>
1920

libnvme/src/libnvme.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ extern "C" {
1515
#endif
1616

1717
#include <nvme/types.h>
18+
#include <nvme/cmds.h>
1819
#include <nvme/linux.h>
1920
#include <nvme/ioctl.h>
2021
#include <nvme/nbft.h>

libnvme/src/meson.build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ install_headers(
100100
'nvme/filters.h',
101101
'nvme/ioctl.h',
102102
'nvme/linux.h',
103+
'nvme/cmds.h',
103104
'nvme/log.h',
104105
'nvme/nbft.h',
105106
'nvme/tree.h',

0 commit comments

Comments
 (0)