Changeset 11530 for main/pyfprint/trunk


Ignore:
Timestamp:
19 Mar 2014, 18:25:01 (11 years ago)
Author:
uli
Message:

Make fp_driver definition more complete.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/pyfprint/trunk/src/fprint.py

    r11529 r11530  
    6565        ('priv', ctypes.c_void_p),
    6666        #  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)),
    7173         ),
    72         # int (*discover)(struct libusb_device_descriptor *dsc, uint32_t *devtype);
    7374        # 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         ),
    7481        # 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         ),
    7588        # 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         ),
    7695        # 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         ),
    77102        # 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         ),
    78109        # 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         ),
    79117        # 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         ),
    80124        # 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         ),
    83132        ]
     133
    84134fp_print_data = None
    85135fp_img = None
Note: See TracChangeset for help on using the changeset viewer.