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.orglaforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-e1d/+/19041 )
Change subject: introduce notion of 'driver'
......................................................................
introduce notion of 'driver'
Change-Id: Ic168e25f2622b397bac2c133ec35f4a0a38f859b
---
M src/e1d.h
M src/intf_line.c
M src/usb.c
3 files changed, 12 insertions(+), 0 deletions(-)
Approvals:
Jenkins Builder: Verified
tnt: Looks good to me, but someone else must approve
laforge: Looks good to me, approved
diff --git a/src/e1d.h b/src/e1d.h
index 303757f..c1a28ce 100644
--- a/src/e1d.h
+++ b/src/e1d.h
@@ -65,12 +65,19 @@
struct e1_ts ts[32];
};
+enum e1_driver {
+ E1_DRIVER_USB,
+};
+
+extern const struct value_string e1_driver_names[];
+
struct e1_intf {
struct llist_head list;
struct e1_daemon *e1d;
uint8_t id;
+ enum e1_driver drv;
void *drv_data;
struct llist_head lines;
diff --git a/src/intf_line.c b/src/intf_line.c
index c3466e0..f572190 100644
--- a/src/intf_line.c
+++ b/src/intf_line.c
@@ -34,6 +34,10 @@
#include "e1d.h"
#include "log.h"
+const struct value_string e1_driver_names[] = {
+ { E1_DRIVER_USB, "usb" },
+ { 0, NULL }
+};
// ---------------------------------------------------------------------------
// e1d structures
diff --git a/src/usb.c b/src/usb.c
index 8cf96b4..5d38d32 100644
--- a/src/usb.c
+++ b/src/usb.c
@@ -300,6 +300,7 @@
intf_data->devh = devh;
intf = e1_intf_new(e1d, intf_data);
+ intf->drv = E1_DRIVER_USB;
ret = libusb_get_active_config_descriptor(dev, &cd);
if (ret) {
--
To view, visit https://gerrit.osmocom.org/c/osmo-e1d/+/19041
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-e1d
Gerrit-Branch: master
Gerrit-Change-Id: Ic168e25f2622b397bac2c133ec35f4a0a38f859b
Gerrit-Change-Number: 19041
Gerrit-PatchSet: 3
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-Assignee: tnt <tnt at 246tNt.com>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-Reviewer: tnt <tnt at 246tNt.com>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200630/3c198060/attachment.htm>