Commit Graph

18 Commits

Author SHA1 Message Date
Peter Wu
ab928522b1 ltunify: alias args to avoid constructs like (*args)[0]
(*args)[0] is not very obvious, introduce a new variable to avoid one
indirection.
2013-04-25 22:56:35 +02:00
Peter Wu
2cc2f450de ltunify: remove unused signal handler and debugging loop 2013-04-25 22:55:03 +02:00
Peter Wu
3d95661a79 ltunify: version 0.1 2013-04-25 12:25:34 +02:00
Peter Wu
7a1643e6fa ltunify: fix device type validation 2013-04-25 12:25:14 +02:00
Peter Wu
f600f9ea3f ltunify: fix spelling errors and outdated comment 2013-04-25 12:02:43 +02:00
Peter Wu
fc791074d9 ltunify: print device type that got unpaired 2013-04-24 23:29:24 +02:00
Peter Wu
fefd502517 ltunify: allow friendly name as device index 2013-04-24 16:59:00 +02:00
Peter Wu
957ce488fc ltunify: fix copying one byte too much (caught by -fsanitze=address) 2013-04-24 16:52:22 +02:00
Peter Wu
26ea52e926 ltunify: put version info for receiver in "receiver-info" 2013-04-24 15:14:49 +02:00
Peter Wu
69aadeb0d7 ltunify: do not disable notifications if it was enabled before
Just in case there are other users of this notification system.
2013-04-24 14:56:22 +02:00
Peter Wu
42e144853f ltunify: support --device and do not always print full help
This changes the behavior of validate_args to return the number of command
arguments. The timeout value for "pair" is also validated and the version
number printed.
2013-04-24 14:49:43 +02:00
Peter Wu
bd0afb7f32 Support passing a custom hidraw device with -d 2013-04-24 12:54:44 +02:00
Peter Wu
32797bbe1d ltunify: remove DEBUG envvar, use getopt 2013-04-24 12:45:01 +02:00
Peter Wu
6f4b439a5f Fix compiler warnings
The memcpy bug is actually a real one-by-off. Since the msg_long struct is
contained in a union of hidpp_message, this does not lead to
write-past-boundaries (but it may read more than intended).

Some fields of version could be uninitialised (when the register query failed).
Explicitly clear the values to make clang happy.
2013-04-24 10:55:25 +02:00
Peter Wu
50dbefc2ae ltunify: suggest loading hid-logitech-dj 2013-04-24 10:22:39 +02:00
Peter Wu
d9fe85b6c9 Updated README with ltunify session 2013-04-08 18:27:45 +02:00
Peter Wu
515235530e ltunify: automatically detect hidraw device 2013-04-08 18:10:25 +02:00
Peter Wu
30f8961be0 Initial checking of pairing tool 2013-04-08 17:03:10 +02:00