From aa5ae44cd4f04fae49c75559ca43f71d99e7a848 Mon Sep 17 00:00:00 2001 From: jvelilla Date: Fri, 15 May 2020 09:29:14 -0300 Subject: [PATCH] Updated hotplugtest example ecf to latest version. Updated libdevs exanple ecf to latest version. Updated testlibusb ecf example --- examples/hotplugtest/application.e | 6 +++--- examples/hotplugtest/hotplugtest.ecf | 14 ++++++++------ examples/listdevs/listdevs.ecf | 14 ++++++++------ examples/testlibusb/application.e | 3 --- examples/testlibusb/testlibusb.ecf | 14 ++++++++------ .../libusb_config_descriptor_struct_api.e | 2 +- 6 files changed, 28 insertions(+), 25 deletions(-) diff --git a/examples/hotplugtest/application.e b/examples/hotplugtest/application.e index 8333d32..813ff91 100644 --- a/examples/hotplugtest/application.e +++ b/examples/hotplugtest/application.e @@ -42,9 +42,9 @@ feature {NONE} -- Initialization print (l_val + "%N") end - - vendor_id := 0x0951 - product_id := 0x1607 + -- Set defaults vendor-id product-id, for testing. + vendor_id := 0x1058 --0x0951 + product_id := 0x0704 --0x1607 class_id := LIBUSB_HOTPLUG_MATCH_ANY diff --git a/examples/hotplugtest/hotplugtest.ecf b/examples/hotplugtest/hotplugtest.ecf index 5194690..39d9cd1 100644 --- a/examples/hotplugtest/hotplugtest.ecf +++ b/examples/hotplugtest/hotplugtest.ecf @@ -1,18 +1,20 @@ - + - + - /\.git$ - /\.svn$ /CVS$ /EIFGENs$ + /\.git$ + /\.svn$ - - + + + diff --git a/examples/listdevs/listdevs.ecf b/examples/listdevs/listdevs.ecf index 7810c32..e340eb0 100644 --- a/examples/listdevs/listdevs.ecf +++ b/examples/listdevs/listdevs.ecf @@ -1,18 +1,20 @@ - + - + - /\.git$ - /\.svn$ /CVS$ /EIFGENs$ + /\.git$ + /\.svn$ - - + + + diff --git a/examples/testlibusb/application.e b/examples/testlibusb/application.e index 62734d9..36edc14 100644 --- a/examples/testlibusb/application.e +++ b/examples/testlibusb/application.e @@ -23,9 +23,6 @@ feature {NONE} -- Initialization local ret: INTEGER list: LIBUSB_DEVICE_LIST - desc: LIBUSB_DEVICE_DESCRIPTOR_STRUCT_API - handle: LIBUSB_DEVICE_HANDLE_STRUCT_API - data: STRING i : INTEGER do ret := {LIBUSB_FUNCTIONS}.libusb_init (Void) diff --git a/examples/testlibusb/testlibusb.ecf b/examples/testlibusb/testlibusb.ecf index f67d1ac..d327cbc 100644 --- a/examples/testlibusb/testlibusb.ecf +++ b/examples/testlibusb/testlibusb.ecf @@ -1,18 +1,20 @@ - + - + - /\.git$ - /\.svn$ /CVS$ /EIFGENs$ + /\.git$ + /\.svn$ - - + + + diff --git a/library/manual_wrapper/libusb_config_descriptor_struct_api.e b/library/manual_wrapper/libusb_config_descriptor_struct_api.e index 4727aa5..282fcbc 100644 --- a/library/manual_wrapper/libusb_config_descriptor_struct_api.e +++ b/library/manual_wrapper/libusb_config_descriptor_struct_api.e @@ -243,7 +243,7 @@ feature {ANY} -- Member Access -- TODO check set_c_interface (item, a_value.item) ensure - interface_set: attached interface as l_value implies l_value.item = a_value.item + --interface_set: attached interface as l_value implies l_value.item = a_value.item end extra: detachable STRING