lirc  0.9.4c
About: LIRC (Linux Infrared Remote Control) is a package to decode and send infra-red signals of many commonly used remote controls.
  Fossies Dox: lirc-0.9.4c.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

lirc Documentation

The LIRC lib/ directory is indeed code used in various places. It offers three views:

  • External applications which neds to receive or send IR signals uses the lirc_client.h header file and links to using -llirc. This is a mature, reasonably stable interface. See Client API and Client API manual excerpt..
  • User space drivers includes the lirc_driver.h header and links to using -llirc_driver. The other way around lirc accesses the driver as defined in the driver.h file (struct driver) This interface is new and willl probably need some time to stabilize. See User-space driver API and Driver API manual excerpt.
  • Internal lirc applications includes the lirc_private.h header file and links to using -llirc_private. This interface is subject to change without notice.

For build and configuration there are two pkg-config .pc files: lirc.pc and lirc_client.pc. These provides the proper compilation and link flags. See drivers/default/Makefile for an example how to use.

The bundled excerpts from the manual are the same as in the LIRC manual, but also here to be readily available and linked by doxygen in the API context.