module Lirc: sig end
exception Lirc of string
exception DaemonDown
High level function
|
val connect : string ->
?config:string -> ?check:(string -> bool) -> (string -> bool) -> unitconnect prog handler initialize a client with name prog
then call handler each time a code is received, until it return falseconfig : path to the configuration file (defaults to ~/.lircrc)check : allow to check each code found in the configuration file (defaults to the constant true function)
Low level functions
|
type t
val init : string -> unitinit prog initialize the lirc client with name progval deinit : unit -> unitval readconfig : ?check:(string -> bool) -> ?config:string -> unit -> tLirc"readconfig" if config does not exists or check return false.check : allow to check each code found in the configuration file (defaults to the constant true function)config : path to the configuration file (defaults to ~/.lircrc)val freeconfig : t -> unitval nextcode : t -> string listnextcode t return the list of the codes received
since the last call. If no codes were received, wait for a code.