aboutsummaryrefslogtreecommitdiffstats
path: root/fbi.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2019-01-18 10:27:56 +0100
committerGerd Hoffmann <kraxel@redhat.com>2019-01-18 10:34:42 +0100
commit4f83229c9b7ff9d267968a85f8f7c5ef3d18e11d (patch)
tree34ad9034843cbe7df1f0858f51f626495232de46 /fbi.c
parent46bb435f530a72dc3e140e1dc506ad4c60969a06 (diff)
downloadfbida-4f83229c9b7ff9d267968a85f8f7c5ef3d18e11d.tar.gz
drop lirc support
Diffstat (limited to 'fbi.c')
-rw-r--r--fbi.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/fbi.c b/fbi.c
index 712e236..8abb864 100644
--- a/fbi.c
+++ b/fbi.c
@@ -32,11 +32,6 @@
#include <libexif/exif-data.h>
-#ifdef HAVE_LIBLIRC
-# include "lirc/lirc_client.h"
-# include "lirc.h"
-#endif
-
#include "readers.h"
#include "vt.h"
#include "kbd.h"
@@ -60,9 +55,6 @@
/* ---------------------------------------------------------------------- */
-/* lirc fd */
-int lirc = -1;
-
/* variables for read_image */
int32_t lut_red[256], lut_green[256], lut_blue[256];
int pcd_res = 3;
@@ -846,12 +838,6 @@ svga_show(struct flist *f, struct flist *prev,
FD_ZERO(&set);
FD_SET(0, &set);
fdmax = 1;
-#ifdef HAVE_LIBLIRC
- if (-1 != lirc) {
- FD_SET(lirc,&set);
- fdmax = lirc+1;
- }
-#endif
limit.tv_sec = timeout;
limit.tv_usec = 0;
rc = select(fdmax, &set, NULL, NULL,
@@ -871,17 +857,6 @@ svga_show(struct flist *f, struct flist *prev,
}
key[rc] = 0;
}
-#ifdef HAVE_LIBLIRC
- if (lirc != -1 && FD_ISSET(lirc,&set)) {
- /* lirc input */
- if (-1 == lirc_fbi_havedata(&rc,key)) {
- fprintf(stderr,"lirc: connection lost\n");
- close(lirc);
- lirc = -1;
- }
- key[rc] = 0;
- }
-#endif
keycode = kbd_parse(key, &keymod);
switch (keycode) {
case KEY_SPACE:
@@ -1379,9 +1354,6 @@ int main(int argc, char *argv[])
#endif
setlocale(LC_ALL,"");
-#ifdef HAVE_LIBLIRC
- lirc = lirc_fbi_init();
-#endif
fbi_read_config(".fbirc");
cfg_parse_cmdline(&argc,argv,fbi_cmd);
cfg_parse_cmdline(&argc,argv,fbi_cfg);