anchor.diff:  -behaviour(playdar_resolver).
   
   %% API
  --export([start_link/0, resolve/3, weight/1, targettime/1, name/1]).
  +-export([start_link/0, resolve/2, weight/1, targettime/1, name/1]).
   -export([ stats/1, parse/2, check_index/2 ]).
   
   %% gen_server callbacks
  
positive.code: 	spawn(fun()->check_index(Mpid, LibPid)end),
      {ok, #state{libpid=LibPid}}.
  
  handle_cast({resolve, Q, Qpid}, State) ->
  	library_dets:resolve(State#state.libpid, Q, Qpid),
  	{noreply, State}.
  
  handle_call(stats, _From, State) ->
  
negative.code: 
  start_link()            -> gen_server:start_link(?MODULE, [], []).
    
  resolve(Pid, Qry)       -> gen_server:cast(Pid, {resolve, Qry}).
  weight(_Pid)            -> 100.
  targettime(_Pid)        -> 20.
  name(_Pid)              -> "Magnatune index".
  