From 4daf6d84f7271cc19256c45b52c63b99ba7b4391 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Mon, 17 Sep 2018 18:11:47 +0200 Subject: Add configuration option to allow compiling without USB driver Using --with-dummy, libirecovery can be compiled in a way that it will not require any USB driver at all. This is only useful if you just want to query libirecovery's device database by product type or hardware model, namely using: irecv_devices_get_device_by_product_type(); irecv_devices_get_device_by_hardware_model(); All other function are either no-op or return IRECV_E_UNSUPPORTED if the library is compiled this way. --- include/libirecovery.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/libirecovery.h b/include/libirecovery.h index 7f9c2b4..73fe6f0 100644 --- a/include/libirecovery.h +++ b/include/libirecovery.h @@ -49,6 +49,7 @@ typedef enum { IRECV_E_USB_CONFIGURATION = -9, IRECV_E_PIPE = -10, IRECV_E_TIMEOUT = -11, + IRECV_E_UNSUPPORTED = -254, IRECV_E_UNKNOWN_ERROR = -255 } irecv_error_t; -- cgit v1.1-32-gdbae