Lines Matching defs:dmxInput

68     DMXInputInfo *dmxInput;
70 for (i = 0, dmxInput = &dmxInputs[0]; i < dmxNumInputs; i++, dmxInput++) {
71 if (dmxInput->sigioState == DMX_ACTIVESIGIO) {
72 for (j = 0; j < dmxInput->numDevs; j++) {
73 DMXLocalInputInfoPtr dmxLocal = dmxInput->devs[j];
133 static void dmxSigioAdd(DMXInputInfo *dmxInput)
138 switch (dmxInput->sigioState) {
140 case DMX_USESIGIO: dmxInput->sigioState = DMX_ACTIVESIGIO; break;
144 for (i = 0; i < dmxInput->sigioFdCount; i++) {
145 if (!dmxInput->sigioAdded[i]) {
146 int fd = dmxInput->sigioFd[i];
154 dmxInput->sigioAdded[i] = TRUE;
161 static void dmxSigioRemove(DMXInputInfo *dmxInput)
166 switch (dmxInput->sigioState) {
169 case DMX_ACTIVESIGIO: dmxInput->sigioState = DMX_USESIGIO; break;
172 for (i = 0; i < dmxInput->sigioFdCount; i++) {
173 if (dmxInput->sigioAdded[i]) {
174 int fd = dmxInput->sigioFd[i];
176 dmxInput->sigioAdded[i] = FALSE;
192 DMXInputInfo *dmxInput;
195 for (i = 0, dmxInput = &dmxInputs[0]; i < dmxNumInputs; i++, dmxInput++)
196 dmxSigioAdd(dmxInput);
203 DMXInputInfo *dmxInput;
206 for (i = 0, dmxInput = &dmxInputs[0]; i < dmxNumInputs; i++, dmxInput++)
207 dmxSigioRemove(dmxInput);
210 /** Make a note that the input device described in \a dmxInput will be
214 void dmxSigioRegister(DMXInputInfo *dmxInput, int fd)
216 dmxInput->sigioState = DMX_USESIGIO;
217 if (dmxInput->sigioFdCount >= DMX_MAX_SIGIO_FDS)
219 dmxInput->sigioFdCount, DMX_MAX_SIGIO_FDS);
221 dmxInput->sigioFd[dmxInput->sigioFdCount++] = fd;
222 if (dmxInputEnabled) dmxSigioAdd(dmxInput);
225 /** Remove the notes that \a dmxInput is using any file descriptors for
227 void dmxSigioUnregister(DMXInputInfo *dmxInput)
229 if (dmxInput->sigioState == DMX_NOSIGIO) return;
230 dmxSigioRemove(dmxInput);
231 dmxInput->sigioState = DMX_NOSIGIO;
232 dmxInput->sigioFdCount = 0;