Index: main/pyfprint/trunk/src/fprint.py
===================================================================
--- main/pyfprint/trunk/src/fprint.py	(revision 11526)
+++ main/pyfprint/trunk/src/fprint.py	(revision 11529)
@@ -2,5 +2,5 @@
 import ctypes
 
-lib = ctypes.cdll.LoadLibrary("libfprint.so")
+lib = ctypes.cdll.LoadLibrary("libfprint.so.0")
 
 #
@@ -28,4 +28,22 @@
         ]
 
+class libusb_device_descriptor(ctypes.Structure):
+    # from libusb.h
+    _fields_ = [
+        ('bLength', ctypes.c_uint8),
+        ('bDescriptorType', ctypes.c_uint8),
+        ('bcdUSB', ctypes.c_uint16),
+        ('bDeviceClass', ctypes.c_uint8),
+        ('bDeviceSubClass', ctypes.c_uint8),
+        ('bDeviceProtocol', ctypes.c_uint8),
+        ('bMaxPacketSize0', ctypes.c_uint8),
+        ('idVendor', ctypes.c_uint16),
+        ('idProduct', ctypes.c_uint16),
+        ('bcdDevice', ctypes.c_uint16),
+        ('iManufacturer', ctypes.c_uint8),
+        ('iProduct', ctypes.c_uint8),
+        ('iSerialNumber', ctypes.c_uint8),
+        ('bNumConfigurations', ctypes.c_uint8),
+        ]
 
 
@@ -48,6 +66,8 @@
         #  Device operations
         ('discover', ctypes.CFUNCTYPE(
-            c_int,  # Returntype?
-            POINTER(libusb_device_descriptor), ctypes.c_uint32_p),
+            ctypes.c_int,  # Returntype?
+            ctypes.POINTER(libusb_device_descriptor),
+            ctypes.POINTER(ctypes.c_uint32)),
+         ),
         # int (*discover)(struct libusb_device_descriptor *dsc, uint32_t *devtype);
         # int (*open)(struct fp_dev *dev, unsigned long driver_data);
@@ -59,5 +79,5 @@
         # int (*identify_start)(struct fp_dev *dev);
         # int (*identify_stop)(struct fp_dev *dev, gboolean iterating);
-};
+# };
       
         ]
