Windows: Kill empty functions and switch to runtime checking
authorChris Dickens <christopher.a.dickens@gmail.com>
Thu, 4 Jan 2018 07:09:09 +0000 (23:09 -0800)
committerChris Dickens <christopher.a.dickens@gmail.com>
Thu, 4 Jan 2018 07:27:33 +0000 (23:27 -0800)
commitc4438b3c7b2e1db0be8d5fe5eab08756367135d6
treefc627c4b30159749ef160883965f5d9d42801fbd
parent886e3967685d270e24763839f1780546a351395c
Windows: Kill empty functions and switch to runtime checking

Instead of requiring each driver API to provide a complete set of
functions, some of which may be simple containers for returning an
unsupported error code, allow function pointers to be NULL and return
an error when a NULL pointer is encountered.

Also remove the unused sub_api parameter from the API init/exit
functions.

Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
libusb/os/windows_winusb.c
libusb/os/windows_winusb.h
libusb/version_nano.h