Skip to content

Commit 375efdf

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 63acf33 commit 375efdf

9 files changed

Lines changed: 6909 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>

0 commit comments

Comments
 (0)