[PATCH 16/25] libusbg: Remove function_names from header file.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



function_names table is for internal usage only.
User should use function_types enum.

Signed-off-by: Krzysztof Opasiak <k.opasiak@xxxxxxxxxxx>
---
 include/usbg/usbg.h |   17 -----------------
 src/usbg.c          |   17 +++++++++++++++++
 2 files changed, 17 insertions(+), 17 deletions(-)

diff --git a/include/usbg/usbg.h b/include/usbg/usbg.h
index ac5f730..43bf429 100644
--- a/include/usbg/usbg.h
+++ b/include/usbg/usbg.h
@@ -151,23 +151,6 @@ enum function_type
 };
 
 /**
- * @var function_names
- * @brief Name strings for supported USB function types
- */
-const char *function_names[] =
-{
-	"gser",
-	"acm",
-	"obex",
-	"ecm",
-	"geth",
-	"ncm",
-	"eem",
-	"rndis",
-	"phonet",
-};
-
-/**
  * @struct serial_attrs
  * @brief Attributes for Serial, ACM, and OBEX USB functions
  */
diff --git a/src/usbg.c b/src/usbg.c
index 1f1e6d0..10025bf 100644
--- a/src/usbg.c
+++ b/src/usbg.c
@@ -36,6 +36,23 @@
  * @todo Error checking and return code propagation
  */
 
+/**
+ * @var function_names
+ * @brief Name strings for supported USB function types
+ */
+const char *function_names[] =
+{
+	"gser",
+	"acm",
+	"obex",
+	"ecm",
+	"geth",
+	"ncm",
+	"eem",
+	"rndis",
+	"phonet",
+};
+
 #define ERROR(msg, ...) do {\
                         char *str;\
                         fprintf(stderr, "%s()  "msg" \n", \
-- 
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux