FU Logo
  • Startseite
  • Kontakt
  • Impressum
  • Home
  • Listenauswahl
  • Anleitungen

[linux-minidisc] [PATCH 2/6] This is no "WTF ?", simply a pointer to ISO packet descriptor.

<-- thread -->
<-- date -->
  • From: Vincent Pelletier <plr.vincent@gmail.com>
  • To: linux-minidisc@lists.fu-berlin.de
  • Date: Tue, 26 Jan 2010 21:25:43 +0100
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:in-reply-to:references:from:date:subject:to:x-length :x-uid:mime-version:content-type:content-transfer-encoding; b=xr5cyjVhIrRIqc27wfMOnVvZQu6fJG6Q8ZMmMvoxXWxLWWAL04W30Z2orAM1Qa0ezX vMwwFLQWW+haOVt0KGFhvLQWmnL3dl/J/w4j8994vFcvSJxaKldLOWJPl2dJLsGH4sdM 81IZgEmZ4TXJUh6ViK5wVfzGQp94VRClqKKU0=
  • Subject: [linux-minidisc] [PATCH 2/6] This is no "WTF ?", simply a pointer to ISO packet descriptor.

---
 netmd/libusb1.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/netmd/libusb1.py b/netmd/libusb1.py
index 7c99505..9f68be5 100644
--- a/netmd/libusb1.py
+++ b/netmd/libusb1.py
@@ -448,6 +448,7 @@ class libusb_iso_packet_descriptor(Structure):
     _fields_ = [('length', c_uint),
                 ('actual_length', c_uint),
                 ('status', c_int)] # enum libusb_transfer_status
+libusb_iso_packet_descriptor_p = POINTER(libusb_iso_packet_descriptor)
 
 class libusb_transfer(Structure):
     pass
@@ -467,8 +468,7 @@ libusb_transfer._fields_ = [('dev_handle', 
libusb_device_handle_p),
                             ('user_data', c_void_p),
                             ('buffer', c_char_p),
                             ('num_iso_packets', c_int),
-                            ('iso_packet_desc',
-                             libusb_iso_packet_descriptor * 0) # XXX: WTF ?
+                            ('iso_packet_desc', 
libusb_iso_packet_descriptor_p)
 ]
 
 #int libusb_init(libusb_context **ctx);
-- 
1.6.6





<-- thread -->
<-- date -->
  • linux-minidisc - January 2010 - Archives indexes sorted by:
    [ thread ] [ subject ] [ author ] [ date ]
  • Complete archive of the linux-minidisc mailing list
  • More info on this list...

Hilfe

  • FAQ
  • Dienstbeschreibung
  • ZEDAT Beratung
  • postmaster@lists.fu-berlin.de

Service-Navigation

  • Startseite
  • Listenauswahl

Einrichtung Mailingliste

  • ZEDAT-Portal
  • Mailinglisten Portal