#include "geis_config.h"
#include <errno.h>
#include <stdio.h>
#include <string.h>
#include <sys/select.h>
void print_attr(GeisAttr attr)
{
{
printf(" \"%s\": %s\n", attr_name,
break;
break;
break;
break;
default:
break;
}
}
void
{
GeisAttr attr;
GeisSize i;
printf("device %02d \"%s\"\n",
{
}
}
void
{
GeisSize i;
GeisAttr attr;
printf("gesture\n");
{
GeisSize j;
{
GeisSize k;
for (k = 0; k < attr_count; ++k)
{
}
{
GeisSize n;
printf("+touch %u\n", (unsigned)k);
{
}
}
}
}
}
void
{
NULL);
{
fprintf(stderr, "error adding filter\n");
}
}
int
main(int argc GEIS_UNUSED, char* argv[] GEIS_UNUSED)
{
int fd;
NULL);
while(1)
{
fd_set read_fds;
FD_ZERO(&read_fds);
FD_SET(0, &read_fds);
FD_SET(fd, &read_fds);
int sstat = select(fd+1, &read_fds, NULL, NULL, NULL);
if (sstat < 0)
{
fprintf(stderr, "error %d in select(): %s\n", errno, strerror(errno));
break;
}
if (FD_ISSET(fd, &read_fds))
{
{
{
case GEIS_EVENT_INIT_COMPLETE:
target_subscription(geis, subscription);
break;
case GEIS_EVENT_DEVICE_AVAILABLE:
case GEIS_EVENT_DEVICE_UNAVAILABLE:
dump_device_event(event);
break;
case GEIS_EVENT_GESTURE_BEGIN:
case GEIS_EVENT_GESTURE_UPDATE:
case GEIS_EVENT_GESTURE_END:
dump_gesture_event(event);
break;
default:
break;
}
}
}
if (FD_ISSET(0, &read_fds))
{
break;
}
}
}