(self, added_cb=None, removed_cb=None,
            user_data=None)
Give libusb1 methods to call when it should add/remove file descriptor
        for polling.
        You should not have to call this method, unless you are integrating
        this class with a polling mechanism.
Give libusb1 methods to call when it should add/remove file descriptor
        for polling.
        You should not have to call this method, unless you are integrating
        this class with a polling mechanism.
Give libusb1 methods to call when it should add / remove file descriptor for polling . You should not have to call this method unless you are integrating this class with a polling mechanism .
def setPollFDNotifiers(self, added_cb=None, removed_cb=None,
            user_data=None):
        """
        Give libusb1 methods to call when it should add/remove file descriptor
        for polling.
        You should not have to call this method, unless you are integrating
        this class with a polling mechanism.
        """
        if added_cb is None:
            added_cb = POINTER(None)
        else:
            added_cb = libusb1.libusb_pollfd_added_cb_p(added_cb)
        if removed_cb is None:
            removed_cb = POINTER(None)
        else:
            removed_cb = libusb1.libusb_pollfd_removed_cb_p(removed_cb)
        self.__added_cb = added_cb
        self.__removed_cb = removed_cb
        self.__libusb_set_pollfd_notifiers(self.__context_p, added_cb,
                                            removed_cb, user_data)
def setPollFDNotifiers ( self , added_cb = None , removed_cb = None , user_data = None ) : if added_cb is None : added_cb = POINTER ( None ) else : added_cb = libusb1 . libusb_pollfd_added_cb_p ( added_cb ) if removed_cb is None : removed_cb = POINTER ( None ) else : removed_cb = libusb1 . libusb_pollfd_removed_cb_p ( removed_cb ) self . __added_cb = added_cb self . __removed_cb = removed_cb self . __libusb_set_pollfd_notifiers ( self . __context_p , added_cb , removed_cb , user_data )