linux-usb-gadgets / libusbgx

C library encapsulating the Linux kernel USB gadget configfs userspace API functionality
GNU General Public License v2.0
216 stars 72 forks source link

Printer header missing closing brace for extern "C" declaration #79

Closed nl250060 closed 1 year ago

nl250060 commented 1 year ago

The header has an opening extern "C" declaration but is missing the closing brace.

From 9c3e09d254c475d1299bd3047dc672358627e3ce Mon Sep 17 00:00:00 2001
From: Niall Leonard <nl250060@ncr.com>
Date: Fri, 28 Jul 2023 13:10:36 +0100
Subject: [PATCH] Added missing extern C closing brace

---
 include/usbg/function/printer.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/include/usbg/function/printer.h b/include/usbg/function/printer.h
index fecc17a..b556f39 100644
--- a/include/usbg/function/printer.h
+++ b/include/usbg/function/printer.h
@@ -48,4 +48,9 @@ union usbg_f_printer_attr_val {
 #define USBG_F_PRINTER_INT_TO_ATTR_VAL(WHAT) \
    USBG_TO_UNION(usbg_f_printer_attr_val, qmult, WHAT)

+
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* USBG_FUNCTION_PRINTER__ */
pabs3 commented 1 year ago

Merged. Next time, please submit pull requests instead of patches in issues. Please also mention the commit you are fixing in the commit message, I added it manually this time.