version 1.18, 2022/12/26 19:16:03 |
version 1.19, 2023/01/31 21:38:01 |
|
|
/* |
/* |
* register a new knob/button, called from the poll() loop. this may be |
* register a new knob/button, called from the poll() loop. this may be |
* called when label string changes, in which case we update the |
* called when label string changes, in which case we update the |
* existing label widged rather than inserting a new one. |
* existing label widget rather than inserting a new one. |
*/ |
*/ |
void |
void |
ondesc(void *arg, struct sioctl_desc *d, int curval) |
ondesc(void *arg, struct sioctl_desc *d, int curval) |
|
|
exit(1); |
exit(1); |
} |
} |
for (;;) { |
for (;;) { |
fflush(stdout); |
fflush(stdout); |
nfds = sioctl_pollfd(hdl, pfds, POLLIN); |
nfds = sioctl_pollfd(hdl, pfds, POLLIN); |
if (nfds == 0) |
if (nfds == 0) |
break; |
break; |