EV_GINDEV(S) UNIX System V EV_GINDEV(S)
Name
ev_gindev - include/exclude devices for event input
Syntax
#include <types.h>
#include <param.h>
#include <sysmacros.h>
#include <page.h>
#include <event.h>
#include <mouse.h>
int ev_gindev(devinfop, action)
struct devinfo *devinfop;
char action;
Description
ev_gindev is used in concert with ev_getdev to exclude or
later re-include devices from feeding the event queue. The
argument devinfop contains the pointer to the device to be
included or excluded. The arguments are a pointer to the
device and EXCLUDE. The pointer is obtained through the
getdev function.
EXCLUDE is defined in <mouse.h>.
Diagnostics
This routine returns 0 if it succeeds. It returns -1 if
there is no active event queue. It returns -2 if the devinfo
argument does not point to a valid device. It returns -3 on
attempts to exclude an excluded device, or attempts to
reinclude an included device. It returns -4 if the action
argument is invalid.
See Also
ev_block(S), ev_close(S), ev_count(S), ev_flush(S),
ev_getdev(S), ev_getemask(S), ev_init(S), ev_open(S),
ev_pop(S), ev_read(S), ev_resume(S), ev_setemask(S),
ev_suspend(S)
Notes
This routine must be linked in with the -levent linker
option.
(printed 6/20/89)