This patch merges hog_device.h code into hog_device.c and removes
hog_device.h file. As long as hog_manager.c was merged into hog_
device.c, there is no need to have a header for hog_device.
This patch also adds the static modifier to functions which are
now used only in hog_device.c.
This patch merges hog_manager.c code into hog_device.c and removes
hog_manager.c file. hog_manager.c is a very small file, so there is
no need to keep it separated.
char can be signed or unsigned depending on architecture. This fix
following compilation error on ARM:
src/adapter.c: In function 'convert_primaries_entry`:
src/adapter:2272:2: error: comparison is always true due to limited
range of data type [-Werror=type-limits]
cc1: all warnings being treated as errors
make[1]: *** [src/adapter.o] Error 1
Use bt_get_le* helper functions to access unaligned memory. This fix
number of compilation errors on ARM similar to:
CC tools/parser/hci.o
tools/parser/hci.c: In function ‘ext_inquiry_data_dump’:
tools/parser/hci.c:797:10 error: cast increases required alignment of
target type [-Werror=cast-align]
tools/parser/hci.c:797:10: error: cast increases required alignment of
target type [-Werror=cast-align]
cc1: all warnings being treated as errors
make[1]: *** [tools/parser/hci.o] Error 1
The method org.bluez.Device.Pair() doesn't have arguments anymore. This
commit fixes the following error:
$ test/simple-agent hci0 4C:B1:99:F1:BC:E9
Agent registered
ERROR:dbus.connection:Unable to set arguments (u'/test/agent', u'Keybo
ardDisplay') according to signature '': <type 'exceptions.TypeError'>:
Fewer items found in D-Bus signature than in Python arguments
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/dbus/connection.py", line 586
, in msg_reply_handler
reply_handler(*message.get_args_list(**get_args_opts))
File "/usr/lib/python2.7/site-packages/dbus/proxies.py", line 391, i
n _introspect_reply_handler
self._introspect_execute_queue()
File "/usr/lib/python2.7/site-packages/dbus/proxies.py", line 378, i
n _introspect_execute_queue
proxy_method(*args, **keywords)
File "/usr/lib/python2.7/site-packages/dbus/proxies.py", line 132, i
n __call__
**keywords)
File "/usr/lib/python2.7/site-packages/dbus/connection.py", line 566
, in call_async
message.append(signature=signature, *args)
TypeError: Fewer items found in D-Bus signature than in Python argumen
ts