xwiikeymap: remove

It's no longer maintained and it's recommended to use the xf86 or other
drivers instead.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
lib: remove old deprecated API

We break backwards-compatiblity with the next release so use this to also
drop old API entry-points and constants.

With the rewrite of the kernel driver we get a fully-hotplug capable
infrastructure so applications will have to adopt to it. But we still
support the old kernel driver the same way we did before! The API that
is now removed was never really used.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
lib: open ifaces in a row regardless of errors

If multiple interfaces are opened in a single call, we shouldn't stop
on a single error. Instead, users are inclined to call xwii_iface_opened
to get a list of opened devices if xwii_iface_open() returned an error.

This avoids hard-coding the iface-order into the semantics of
xwii_iface_open() and handles them regardless of the type.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
lib: include headers before marking them as extern "C"

Headers shouldn't be forced to 'extern "C"' as we have no control on the
surrounding environment.

Fixes a bug where system-headers are incorrectly included in C++ based
applications.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
lib: document xwiimote interface

Add doxygen comments which document the libxwiimote interface.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
lib: introduce xwii_iface_dispatch()

Introduce xwii_iface_poll() successor. It takes an additional "size"
argument so we can provide backwards-compatiblity without additional
reserved space in xwii_event.

Furthermore, the name _poll() was misleading. We actually only dispatch
events so the new name is a lot more descriptive.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
xwiishow: use new xwii_iface_dispatch

Use new dispatch function to avoid using deprecated "to be removed" API
functions.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>