Index: /main/pyfprint/trunk/src/fprint.py
===================================================================
--- /main/pyfprint/trunk/src/fprint.py	(revision 11529)
+++ /main/pyfprint/trunk/src/fprint.py	(revision 11530)
@@ -65,21 +65,71 @@
         ('priv', ctypes.c_void_p),
         #  Device operations
-        ('discover', ctypes.CFUNCTYPE(
-            ctypes.c_int,  # Returntype?
-            ctypes.POINTER(libusb_device_descriptor),
-            ctypes.POINTER(ctypes.c_uint32)),
+        # int (*discover)(struct libusb_device_descriptor *dsc, uint32_t *devtype);
+        ('discover',
+         ctypes.CFUNCTYPE(
+                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);
+        ('open',
+         ctypes.CFUNCTYPE(
+                ctypes.c_int,  # Returntype?
+                ctypes.POINTER(fp_dev),       # dev
+                ctypes.c_ulong),              # driver_data
+         ),
         # void (*close)(struct fp_dev *dev);
+        ('close',
+         ctypes.CFUNCTYPE(
+                ctypes.c_void_p,  # Returntype?
+                ctypes.POINTER(fp_dev),       # dev
+                ),
+         ),
         # int (*enroll_start)(struct fp_dev *dev);
+        ('enroll_start',
+         ctypes.CFUNCTYPE(
+                ctypes.c_int,  # Returntype?
+                ctypes.POINTER(fp_dev)        # dev
+                ),
+         ),
         # int (*enroll_stop)(struct fp_dev *dev);
+        ('enroll_stop',
+         ctypes.CFUNCTYPE(
+                ctypes.c_int,  # Returntype?
+                ctypes.POINTER(fp_dev),       # dev
+                ),
+         ),
         # int (*verify_start)(struct fp_dev *dev);
+        ('verify_start',
+         ctypes.CFUNCTYPE(
+                ctypes.c_int,  # Returntype?
+                ctypes.POINTER(fp_dev),       # dev
+                ),
+         ),
         # int (*verify_stop)(struct fp_dev *dev, gboolean iterating);
+        ('verify_stop',
+         ctypes.CFUNCTYPE(
+                ctypes.c_int,  # Returntype?
+                ctypes.POINTER(fp_dev),  # dev
+                ctypes.c_int,            # iterating (glib.h gboolean=gint=int)
+                ),
+         ),
         # int (*identify_start)(struct fp_dev *dev);
+        ('identify_start',
+         ctypes.CFUNCTYPE(
+                ctypes.c_int,  # Returntype?
+                ctypes.POINTER(fp_dev),  # dev
+                ),
+         ),
         # int (*identify_stop)(struct fp_dev *dev, gboolean iterating);
-# };
-      
+        ('identify_stop',
+         ctypes.CFUNCTYPE(
+                ctypes.c_int,  # Returntype?
+                ctypes.POINTER(fp_dev),  # dev
+                ctypes.c_int,            # iterating (glib.h gboolean=gint=int)
+                ),
+         ),
         ]
+
 fp_print_data = None
 fp_img = None
