Lines Matching refs:ih

274 	IHPtr ih;   /* returned with an error condition, do we?      */
276 for (ih = InputHandlers; ih; ih = ih->next) {
277 if (ih->enabled && ih->fd >= 0 && ih->ihproc &&
278 (FD_ISSET(ih->fd, ((fd_set *)pReadmask)) != 0)) {
279 ih->ihproc(ih->fd, ih->data);
420 IHPtr ih;
451 for (ih = InputHandlers; ih; ih = ih->next)
452 xf86DisableInputHandler(ih);
492 for (ih = InputHandlers; ih; ih = ih->next)
493 xf86EnableInputHandler(ih);
545 for (ih = InputHandlers; ih; ih = ih->next)
546 xf86EnableInputHandler(ih);
558 IHPtr ih;
563 ih = calloc(sizeof(*ih), 1);
564 if (!ih)
567 ih->fd = fd;
568 ih->ihproc = proc;
569 ih->data = data;
570 ih->enabled = TRUE;
572 ih->next = InputHandlers;
573 InputHandlers = ih;
575 return ih;
581 IHPtr ih = addInputHandler(fd, proc, data);
583 if (ih)
585 return ih;
591 IHPtr ih = addInputHandler(fd, proc, data);
593 if (ih)
595 return ih;
618 removeInputHandler(IHPtr ih)
622 if (ih == InputHandlers)
623 InputHandlers = ih->next;
626 while (p && p->next != ih)
628 if (ih)
629 p->next = ih->next;
631 free(ih);
637 IHPtr ih;
643 ih = handler;
644 fd = ih->fd;
646 if (ih->fd >= 0)
647 RemoveEnabledDevice(ih->fd);
648 removeInputHandler(ih);
656 IHPtr ih;
662 ih = handler;
663 fd = ih->fd;
665 if (ih->fd >= 0)
666 RemoveGeneralSocket(ih->fd);
667 removeInputHandler(ih);
675 IHPtr ih;
680 ih = handler;
681 ih->enabled = FALSE;
682 if (ih->fd >= 0)
683 RemoveEnabledDevice(ih->fd);
689 IHPtr ih;
694 ih = handler;
695 ih->enabled = FALSE;
696 if (ih->fd >= 0)
697 RemoveGeneralSocket(ih->fd);
703 IHPtr ih;
708 ih = handler;
709 ih->enabled = TRUE;
710 if (ih->fd >= 0)
711 AddEnabledDevice(ih->fd);
717 IHPtr ih;
722 ih = handler;
723 ih->enabled = TRUE;
724 if (ih->fd >= 0)
725 AddGeneralSocket(ih->fd);