MCPcopy Create free account
hub / github.com/kiibohd/controller / callback

Function callback

Lib/host.py:656–672  ·  view source on GitHub ↗

libkiibohd callback function

( command, args )

Source from the content-addressed store, hash-verified

654
655
656def callback( command, args ):
657 '''
658 libkiibohd callback function
659 '''
660 if control.debug:
661 logger.debug("Callback: {} {}", command, args)
662
663 # Lookup function in callback dictionary
664 # Every function must taken a single argument
665 # Must convert byte string to utf-8 first
666 ret = control.callback_dict[ command.decode('utf-8') ]( args )
667
668 # Refresh callback interface
669 refresh_callback()
670
671 # If returning None (default), change out to 1, C default
672 return ret is None and 1 or ret
673
674
675

Callers 2

udd_ep_wait_stall_clearFunction · 0.85
Output_callbackFunction · 0.85

Calls 1

refresh_callbackFunction · 0.85

Tested by 1

Output_callbackFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…