anchor.diff:  -module(grisp_devices).
   
   -behavior(gen_server).
  -
  --include("grisp.hrl").
   
   % API
   -export([start_link/0]).
  
positive.code: -export([code_change/3]).
  -export([terminate/2]).
  
  %--- API -----------------------------------------------------------------------
  
  start_link() -> gen_server:start_link({local, ?MODULE}, ?MODULE, undefined, []).
  
negative.code:     ok.
  
  add_device(Slot, Driver) ->
      grisp_devices_sup:start_child(Slot, Driver),
      slot(Slot).
  
  remove_device(Device) ->
      grisp_devices_sup:terminate_child(Device).
  