Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions libnvme/libnvme/nvme.i
Original file line number Diff line number Diff line change
Expand Up @@ -1268,3 +1268,12 @@ PyObject *nbft_get(const char * filename);
%rename($ignore, %$isvariable) ""; // ignore all variables

%include "../src/nvme/types.h"


%pythoncode %{
# Definitions for backward compatibility between libnvme 1.x and 3.x (there is no 2.x)
# Some terms (class/variable names) were changed and this allows running older python
# code written for libnvme 1.x with libnvme 3.x (and possibly later).
NVME_LOG_LID_DISCOVER = _nvme.NVME_LOG_LID_DISCOVERY
root = global_ctx
%}