anchor.diff:      end.
   
   
  +
   add_new_device(Directory, FileName, State) ->
       %% Dies the device already exist? If so just return.
       case lists:keyfind(FileName,
  
positive.code: %%%===================================================================
  %%% Internal functions
  %%%===================================================================
  
  convert_return_value(Bits) ->
      if Bits =:= ?IEDRV_RES_OK -> ok;
  
negative.code: handle_call({ get_devices }, _From, State) ->
      get_devices(State);
  
  handle_call({ get_devices, CapKey }, _From, State) ->
      get_devices(State, CapKey);
  
  handle_call({ get_devices, CapKey, CapSpec }, _From, State) ->
      get_devices(State, CapKey, CapSpec);
  
  handle_call({ add_device, FileName }, _From, State) ->
      io:fwrite("FileName: ~p~n", [FileName]),
      add_new_device(filename:dirname(FileName),
  		   filename:basename(FileName),
  		   State);
  
  
  
  %%--------------------------------------------------------------------
  