Change in osmo-e1d[master]: move usb.c function declarations to newly-created usb.h

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Sat Dec 19 11:38:53 UTC 2020


laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-e1d/+/21802 )


Change subject: move usb.c function declarations to newly-created usb.h
......................................................................

move usb.c function declarations to newly-created usb.h

Change-Id: Icab91d73e37119960ca3c953bf91c2ec9d821311
---
M src/Makefile.am
M src/osmo-e1d.c
A src/usb.h
3 files changed, 19 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-e1d refs/changes/02/21802/1

diff --git a/src/Makefile.am b/src/Makefile.am
index 09cf0e4..fd61f5a 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -23,6 +23,7 @@
 	e1d.h \
 	ice1usb_proto.h \
 	log.h \
+	usb.h \
 	$(NULL)
 
 
diff --git a/src/osmo-e1d.c b/src/osmo-e1d.c
index 10d7a5e..3ac9642 100644
--- a/src/osmo-e1d.c
+++ b/src/osmo-e1d.c
@@ -43,6 +43,7 @@
 #include <osmocom/e1d/proto.h>
 
 #include "e1d.h"
+#include "usb.h"
 #include "log.h"
 
 #ifndef OSMO_VTY_PORT_E1D
@@ -50,8 +51,6 @@
 #endif
 
 extern struct osmo_e1dp_server_handler e1d_ctl_handlers[];
-extern int e1_usb_probe(struct e1_daemon *e1d);
-
 
 static const char *g_config_file = "osmo-e1d.cfg";
 static void *g_e1d_ctx = NULL;
diff --git a/src/usb.h b/src/usb.h
new file mode 100644
index 0000000..42b8681
--- /dev/null
+++ b/src/usb.h
@@ -0,0 +1,17 @@
+#pragma once
+
+#include "ice1usb_proto.h"
+
+struct e1d_line;
+struct e1_daemon;
+struct libusb_device;
+
+int e1_usb_ctrl_set_tx_cfg(struct e1_line *line, enum ice1usb_tx_mode mode,
+			   enum ice1usb_tx_timing timing, enum ice1usb_tx_ext_loopback ext_loop,
+			   uint8_t alarm);
+
+int e1_usb_ctrl_set_rx_cfg(struct e1_line *line, enum ice1usb_rx_mode mode);
+
+int _e1_usb_open_device(struct e1_daemon *e1d, struct libusb_device *dev);
+
+int e1_usb_probe(struct e1_daemon *e1d);

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-e1d/+/21802
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-e1d
Gerrit-Branch: master
Gerrit-Change-Id: Icab91d73e37119960ca3c953bf91c2ec9d821311
Gerrit-Change-Number: 21802
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201219/723f7204/attachment.htm>


More information about the gerrit-log mailing list