#NEWLINE# @ ffi . callback ( 'void(sp_search *, void *)' ) #NEWLINE# @ serialized #NEWLINE# def _search_complete_callback( sp_search , handle ) : #NEWLINE# #INDENT# logger . debug ( 'search_complete_callback called' ) #NEWLINE# if ( handle == ffi . NULL ) : #NEWLINE# #INDENT# logger . warning ( 'pyspotify search_complete_callback called without userdata' ) #NEWLINE# return #NEWLINE# #UNINDENT# ( session , search_result , callback ) = ffi . from_handle ( handle ) #NEWLINE# session . _callback_handles . remove ( handle ) #NEWLINE# search_result . loaded_event . set ( ) #NEWLINE# if ( callback is not None ) : #NEWLINE# #INDENT# callback ( search_result )