def __get_hooks_for_dll(self, event):
        """
        Get the requested API hooks for the current DLL.

        Used by L{__hook_dll} and L{__unhook_dll}.
        """
        result = []
        if self.__apiHooks:
            path = event.get_module().get_filename()
            if path:
                lib_name = PathOperations.pathname_to_filename(path).lower()
                for hook_lib, hook_api_list in compat.iteritems(self.__apiHooks):
                    if hook_lib == lib_name:
                        result.extend(hook_api_list)
        return result
def __get_hooks_for_dll ( self , event ) : result = [ ] if self . __apiHooks : path = event . get_module ( ) . get_filename ( ) if path : lib_name = PathOperations . pathname_to_filename ( path ) . lower ( ) for hook_lib , hook_api_list in compat . iteritems ( self . __apiHooks ) : if hook_lib == lib_name : result . extend ( hook_api_list ) return result
Get the requested API hooks for the current DLL.

        Used by L{__hook_dll} and L{__unhook_dll}.