aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTormod Volden <debian.tormod@gmail.com>2024-01-22 17:31:31 +0100
committerTormod Volden <debian.tormod@gmail.com>2024-01-27 10:52:30 +0100
commit655877883354cd9a3f7713cebbb1425b64341c63 (patch)
treea46fb3ea35f84850bf0785697a13e88c6b6f6d18
parenta5483bc0f735291eec23b65a76bb7f0fac90e6a8 (diff)
downloadlibusb-655877883354cd9a3f7713cebbb1425b64341c63.tar.gz
docs: Add more references in libusb_option section
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
-rw-r--r--libusb/core.c4
-rw-r--r--libusb/libusb.h11
-rw-r--r--libusb/version_nano.h2
3 files changed, 9 insertions, 8 deletions
diff --git a/libusb/core.c b/libusb/core.c
index e28e77f..ffe33b7 100644
--- a/libusb/core.c
+++ b/libusb/core.c
@@ -2205,8 +2205,8 @@ int API_EXPORTED libusb_set_auto_detach_kernel_driver(
}
/** \ingroup libusb_lib
- * Deprecated. Use libusb_set_option() or libusb_init_context() instead
- * using the \ref LIBUSB_OPTION_LOG_LEVEL option.
+ * Deprecated. Use libusb_set_option() or libusb_init_context() instead,
+ * with the \ref LIBUSB_OPTION_LOG_LEVEL option.
*/
void API_EXPORTED libusb_set_debug(libusb_context *ctx, int level)
{
diff --git a/libusb/libusb.h b/libusb/libusb.h
index 8a2deb7..f4e9203 100644
--- a/libusb/libusb.h
+++ b/libusb/libusb.h
@@ -1478,6 +1478,7 @@ enum libusb_log_cb_mode {
enum libusb_option {
/** Set the log message verbosity.
*
+ * This option must be provided an argument of type \ref libusb_log_level.
* The default level is LIBUSB_LOG_LEVEL_NONE, which means no messages are ever
* printed. If you choose to increase the message verbosity level, ensure
* that your application does not close the stderr file descriptor.
@@ -1533,11 +1534,11 @@ enum libusb_option {
/** Set the context log callback function.
*
* Set the log callback function either on a context or globally. This
- * option must be provided an argument of type libusb_log_cb. Using this
- * option with a NULL context is equivalent to calling libusb_set_log_cb
- * with mode LIBUSB_LOG_CB_GLOBAL. Using it with a non-NULL context is
- * equivalent to calling libusb_set_log_cb with mode
- * LIBUSB_LOG_CB_CONTEXT.
+ * option must be provided an argument of type \ref libusb_log_cb.
+ * Using this option with a NULL context is equivalent to calling
+ * libusb_set_log_cb() with mode \ref LIBUSB_LOG_CB_GLOBAL.
+ * Using it with a non-NULL context is equivalent to calling
+ * libusb_set_log_cb() with mode \ref LIBUSB_LOG_CB_CONTEXT.
*/
LIBUSB_OPTION_LOG_CB = 3,
diff --git a/libusb/version_nano.h b/libusb/version_nano.h
index 60baa17..effab3c 100644
--- a/libusb/version_nano.h
+++ b/libusb/version_nano.h
@@ -1 +1 @@
-#define LIBUSB_NANO 11876
+#define LIBUSB_NANO 11877