Skip to content
Open
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions devicedb/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
# Export for libnetmd
with open('../libnetmd/netmd_dev_ids.h', 'w') as fp:
print('#include "netmd_dev.h"', file=fp)
print('#include <stddef.h>', file=fp)
print('', file=fp)
print('static struct netmd_devices const known_devices[] = {', file=fp)
for vid, pid, name in models_by_mode['netmd']:
Expand All @@ -92,6 +93,7 @@

with open('../qhimdtransfer/qhimddetection_dev_ids.cpp', 'w') as fp:
print('#include "qhimddetection_dev_ids.h"', file=fp)
print('#include <cstddef>', file=fp)
print('', file=fp)
print('const char *identify_usb_device(int vid, int pid) {', file=fp)
for mode, devices in sorted(models_by_mode.items()):
Expand Down
1 change: 1 addition & 0 deletions libnetmd/netmd_dev_ids.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include "netmd_dev.h"
#include <stddef.h>

static struct netmd_devices const known_devices[] = {
{ 0x04da, 0x23b3, "Panasonic SJ-MR250" },
Expand Down
1 change: 1 addition & 0 deletions qhimdtransfer/qhimddetection_dev_ids.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include "qhimddetection_dev_ids.h"
#include <cstddef>

const char *identify_usb_device(int vid, int pid) {
if (vid == 0x054c && pid == 0x017f) {
Expand Down
2 changes: 2 additions & 0 deletions qhimdtransfer/qhimdtransfer.pro
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ HEADERS += qhimdaboutdialog.h \
qhimduploaddialog.h \
qhimdmainwindow.h \
qhimddetection.h \
qhimddetection_dev_ids.h \
qmdmodel.h \
qmdtrack.h \
qmddevice.h
Expand All @@ -73,6 +74,7 @@ SOURCES += main.cpp \
qhimduploaddialog.cpp \
qhimdmainwindow.cpp \
qhimddetection.cpp \
qhimddetection_dev_ids.cpp \
qmdmodel.cpp \
qmdtrack.cpp \
qmddevice.cpp
Expand Down