dbus: use correct types for edge events
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Tue, 1 Oct 2024 12:54:17 +0000 (14:54 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Tue, 1 Oct 2024 18:07:47 +0000 (20:07 +0200)
commit2df6347c0859c12edd3cdd98f1611c72d9698a8f
tree3c5750dde0c4fde138daab18b5282f61add63b5c
parentf6c8c3321d8f30979fa593a4f6546ff3dccd2549
dbus: use correct types for edge events

On 32-bit architectures the size of a gulong will typically be 4 bytes
while we try to package an 8-byte integer when creating the edge event
variant. The client also expects wrong types and crashes. Use strict
type sizes for sending the events.

Closes: https://github.com/brgl/libgpiod/issues/103
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
dbus/client/monitor.c
dbus/manager/daemon.c