Changeset 11530 for main/pyfprint
- Timestamp:
- 19 Mar 2014, 18:25:01 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/pyfprint/trunk/src/fprint.py
r11529 r11530 65 65 ('priv', ctypes.c_void_p), 66 66 # Device operations 67 ('discover', ctypes.CFUNCTYPE( 68 ctypes.c_int, # Returntype? 69 ctypes.POINTER(libusb_device_descriptor), 70 ctypes.POINTER(ctypes.c_uint32)), 67 # int (*discover)(struct libusb_device_descriptor *dsc, uint32_t *devtype); 68 ('discover', 69 ctypes.CFUNCTYPE( 70 ctypes.c_int, # Returntype? 71 ctypes.POINTER(libusb_device_descriptor), 72 ctypes.POINTER(ctypes.c_uint32)), 71 73 ), 72 # int (*discover)(struct libusb_device_descriptor *dsc, uint32_t *devtype);73 74 # int (*open)(struct fp_dev *dev, unsigned long driver_data); 75 ('open', 76 ctypes.CFUNCTYPE( 77 ctypes.c_int, # Returntype? 78 ctypes.POINTER(fp_dev), # dev 79 ctypes.c_ulong), # driver_data 80 ), 74 81 # void (*close)(struct fp_dev *dev); 82 ('close', 83 ctypes.CFUNCTYPE( 84 ctypes.c_void_p, # Returntype? 85 ctypes.POINTER(fp_dev), # dev 86 ), 87 ), 75 88 # int (*enroll_start)(struct fp_dev *dev); 89 ('enroll_start', 90 ctypes.CFUNCTYPE( 91 ctypes.c_int, # Returntype? 92 ctypes.POINTER(fp_dev) # dev 93 ), 94 ), 76 95 # int (*enroll_stop)(struct fp_dev *dev); 96 ('enroll_stop', 97 ctypes.CFUNCTYPE( 98 ctypes.c_int, # Returntype? 99 ctypes.POINTER(fp_dev), # dev 100 ), 101 ), 77 102 # int (*verify_start)(struct fp_dev *dev); 103 ('verify_start', 104 ctypes.CFUNCTYPE( 105 ctypes.c_int, # Returntype? 106 ctypes.POINTER(fp_dev), # dev 107 ), 108 ), 78 109 # int (*verify_stop)(struct fp_dev *dev, gboolean iterating); 110 ('verify_stop', 111 ctypes.CFUNCTYPE( 112 ctypes.c_int, # Returntype? 113 ctypes.POINTER(fp_dev), # dev 114 ctypes.c_int, # iterating (glib.h gboolean=gint=int) 115 ), 116 ), 79 117 # int (*identify_start)(struct fp_dev *dev); 118 ('identify_start', 119 ctypes.CFUNCTYPE( 120 ctypes.c_int, # Returntype? 121 ctypes.POINTER(fp_dev), # dev 122 ), 123 ), 80 124 # int (*identify_stop)(struct fp_dev *dev, gboolean iterating); 81 # }; 82 125 ('identify_stop', 126 ctypes.CFUNCTYPE( 127 ctypes.c_int, # Returntype? 128 ctypes.POINTER(fp_dev), # dev 129 ctypes.c_int, # iterating (glib.h gboolean=gint=int) 130 ), 131 ), 83 132 ] 133 84 134 fp_print_data = None 85 135 fp_img = None
Note: See TracChangeset for help on using the changeset viewer.