Lines Matching defs:ih
352 IHPtr ih;
370 for (ih = InputHandlers; ih; ih = ih->next) {
371 if (ih->is_input)
372 xf86DisableInputHandler(ih);
374 xf86DisableGeneralHandler(ih);
430 for (ih = InputHandlers; ih; ih = ih->next) {
431 if (ih->is_input)
432 xf86EnableInputHandler(ih);
434 xf86EnableGeneralHandler(ih);
444 IHPtr ih;
478 for (ih = InputHandlers; ih; ih = ih->next) {
479 if (ih->is_input)
480 xf86EnableInputHandler(ih);
482 xf86EnableGeneralHandler(ih);
527 IHPtr ih = data;
529 if (ih->enabled && ih->fd >= 0 && ih->ihproc) {
530 ih->ihproc(ih->fd, ih->data);
537 IHPtr ih;
542 ih = calloc(sizeof(*ih), 1);
543 if (!ih)
546 ih->fd = fd;
547 ih->ihproc = proc;
548 ih->data = data;
549 ih->enabled = TRUE;
551 if (!SetNotifyFd(fd, xf86InputHandlerNotify, X_NOTIFY_READ, ih)) {
552 free(ih);
556 ih->next = InputHandlers;
557 InputHandlers = ih;
559 return ih;
565 IHPtr ih = addInputHandler(fd, proc, data);
567 if (ih)
568 ih->is_input = TRUE;
569 return ih;
575 IHPtr ih = addInputHandler(fd, proc, data);
577 return ih;
602 removeInputHandler(IHPtr ih)
606 if (ih->fd >= 0)
607 RemoveNotifyFd(ih->fd);
608 if (ih == InputHandlers)
609 InputHandlers = ih->next;
612 while (p && p->next != ih)
614 if (ih)
615 p->next = ih->next;
617 free(ih);
623 IHPtr ih;
629 ih = handler;
630 fd = ih->fd;
632 removeInputHandler(ih);
640 IHPtr ih;
646 ih = handler;
647 fd = ih->fd;
649 removeInputHandler(ih);
657 IHPtr ih;
662 ih = handler;
663 ih->enabled = FALSE;
664 if (ih->fd >= 0)
665 RemoveNotifyFd(ih->fd);
671 IHPtr ih;
676 ih = handler;
677 ih->enabled = FALSE;
678 if (ih->fd >= 0)
679 RemoveNotifyFd(ih->fd);
685 IHPtr ih;
690 ih = handler;
691 ih->enabled = TRUE;
692 if (ih->fd >= 0)
693 SetNotifyFd(ih->fd, xf86InputHandlerNotify, X_NOTIFY_READ, ih);
699 IHPtr ih;
704 ih = handler;
705 ih->enabled = TRUE;
706 if (ih->fd >= 0)
707 SetNotifyFd(ih->fd, xf86InputHandlerNotify, X_NOTIFY_READ, ih);