tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: wstablet API proposal
On Sat, 12 Jul 2008, Jason Beaudoin wrote:
> Current Tablet Capabilities:
> (what do we need to support)
Just out of interest, would wstablet also encompass touchscreen support?
> Adding a field to wscons_event will break any code using the structure,
> and require a rebuild (including the Xserver and various packages that
> utilize wscons_event).
Is there any other place that it is used by userland that would cause
incompatibilities than ioctl(WSMUXIO_INJECTEVENT)? If its just that, its
not so difficult to version the ioctl so that old and new code works
fine with a new field added..
#define WSMUXIO_INJECTEVENT_OLD _IOW('W', 96, struct wscons_event_old)
#define WSMUXIO_INJECTEVENT _IOW('W', 96, struct wscons_event)
struct wscons_event ev;
switch(cmd) {
case WSMUXIO_INJECTEVENT_OLD:
memset(&ev, 0, sizeof(ev));
/* fall through */
case WSMUXIO_INJECTEVENT:
copyin(data, &ev, IOCPARM_LEN(cmd));
[...]
?
iain
Home |
Main Index |
Thread Index |
Old Index